GitHub的Python開發包:githubpy

jopen 12年前發布 | 31K 次閱讀 Git 版本控制系統 Github

githubpy是專門為GitHub API編寫的Python SDK。根據GitHub的API文檔說明,就可以輕松調用API。

例如,獲取issues列表的API說明如下:

GET /repos/:owner/:repo/issues

參數:

milestone:Integer Milestone number none for Issues with no Milestone.

state:open, closed, default: open

...

 

調用代碼:

gh = GitHub(username='your-login-username', password='your-password')
r = gh.repos('michaelliao')('githubpy').issues.get(state='open', assignee='michaelliao')

項目主頁:http://www.baiduhome.net/lib/view/home/1350614359992

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!