Vangogh500
Vangogh500

Reputation: 959

List repos of a user

Hey I've been reading up on the github3.py, but can't find a clear explanation of how to retrieve a list of a user's repositories.

It seems that there should be a simple solution like a method or a attribute to the user object. I just can't seem to find it on the docs, can anyone help?

Thanks, Van

Upvotes: 2

Views: 167

Answers (1)

nneonneo
nneonneo

Reputation: 179422

Use GitHub.iter_user_repos:

iter_user_repos(login, type=None, sort=None, direction=None, number=-1, etag=None)

List public repositories for the specified login.

New in version 0.6.

It's a bit odd that this isn't a method of the User object - you might want to submit an issue to have that added to the API.

Upvotes: 1

Related Questions