File: python3-github.README.Debian

package info (click to toggle)
pygithub 1.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,432 kB
  • ctags: 1,780
  • sloc: python: 10,689; makefile: 6
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)