Use the full Github API v3
Project description
(Very short) Tutorial
First create a Github instance:
from github import Github # Authentication is defined via github.Auth from github import Auth # using an access token auth = Auth.Token("access_token") # Public Web Github g = Github(auth=auth) # Github Enterprise with custom hostname g = Github(auth=auth, base_url="https://{hostname}/api/v3")
Then play with your Github objects:
for repo in g.get_user().get_repos(): print(repo.name) repo.edit(has_wiki=False) # to see all the available attributes and methods print(dir(repo))
Reference documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyGithub-1.59.1.tar.gz
(3.3 MB
view hashes)
Built Distribution
PyGithub-1.59.1-py3-none-any.whl
(342.2 kB
view hashes)
Close
Hashes for PyGithub-1.59.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d87a822e6c868142f0c2c4bf16cce4696b5a7a4d142a7bd160e1bdf75bc54a9 |
|
MD5 | bc2743344fe6bd0692314eead891dc43 |
|
BLAKE2b-256 | 2c71aff5465d9e3d448a5d4beab1dc7c8dec72037e3ae7e0d856ee08538dc934 |