File: python3-github.README.Debian

package info (click to toggle)
pygithub 1.40-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 21,192 kB
  • sloc: python: 13,109; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 (Very short) Tutorial
 =====================

 First create a Github instance::

     from github import Github

     g = Github("user", "password")

 Then play with your Github objects::

     for repo in g.get_user().get_repos():
         print repo.name
         repo.edit(has_wiki=False)

 You can also create a Github instance with an OAuth token::

     g = Github(token)