稍微修改了Pygithub的版本,同时我们正在进行公关审查。增加了与发布资源交互的能力。
KPyGithub的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()