Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嘿,我一直在阅读 github3.py,但找不到关于如何检索用户存储库列表的清晰解释。
似乎应该有一个简单的解决方案,例如用户对象的方法或属性。我似乎无法在文档中找到它,有人可以帮忙吗?
谢谢,范
使用GitHub.iter_user_repos:
GitHub.iter_user_repos
iter_user_repos(login, type=None, sort=None, direction=None, number=-1, etag=None) 列出指定登录名的公共存储库。 0.6 版中的新功能。
iter_user_repos(login, type=None, sort=None, direction=None, number=-1, etag=None)
列出指定登录名的公共存储库。
0.6 版中的新功能。
这不是 User 对象的方法有点奇怪 - 您可能希望提交一个问题以将其添加到 API。