使用完整的github api v3
PyGithub的Python项目详细描述
(非常简短)教程
首先创建一个github实例:
from github import Github # using username and password g = Github("user", "password") # or using an access token g = Github("access_token")
然后播放github对象:
for repo in g.get_user().get_repos(): print(repo.name) repo.edit(has_wiki=False)