

def starball(self, user, repo, archive='tar', ref='master'):
    'Get link for archive download.\n\n        :param str user: GitHub user name\n        :param str repo: GitHub repo name\n        :param str archive: Archive format [tar|zip]\n        :param str ref: Git reference\n        :returns: tuple: Tuple of headers and file location\n        '
    repository = self.repo(user, repo)
    url = repository._build_url((archive + 'ball'), ref, base_url=repository._api)
    resp = repository._get(url, allow_redirects=True, stream=True)
    return (resp.headers, resp.content)

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/github/api.py GitHubClient.starball/original