breq 0.7 documentation

GitHub

«  Breq: Browse requests   ::   Contents   ::   Reddit  »

GitHub

Get a list of all GitHub repositories for a user.

from breq.github import Github
url = 'https://api.github.com/users/yaph/repos'

repos = []
pages = Github(url)
for page in pages:
    for repo in page:
        repos.append(repo)

«  Breq: Browse requests   ::   Contents   ::   Reddit  »