这个pygithub分支提供了对只读部署密钥的支持
PyGithub-ReadOnl的Python项目详细描述
(非常简短)教程
首先创建一个github实例:
from github import Github g = Github("user", "password")
然后播放github对象:
for repo in g.get_user().get_repos(): print repo.name repo.edit(has_wiki=False)
您还可以使用OAuth令牌创建Github实例:
g = Github(token)
或未经验证:
g = Github()