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-2.0.0rc0.tar.gz
(3.3 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
PyGithub-2.0.0rc0-py3-none-any.whl
(346.0 kB
view details)
File details
Details for the file PyGithub-2.0.0rc0.tar.gz.
File metadata
- Download URL: PyGithub-2.0.0rc0.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e7ddf3eb9f4551a79ccbee08cce4beeb5bc212a525f2dce8ae4260e74014763
|
|
| MD5 |
ef7f77221f9f6592d58a4796ad1b30c0
|
|
| BLAKE2b-256 |
87480a7da7ad1c438eadaee370d9a964a30026291e8cc0f893f625c927d6a763
|
File details
Details for the file PyGithub-2.0.0rc0-py3-none-any.whl.
File metadata
- Download URL: PyGithub-2.0.0rc0-py3-none-any.whl
- Upload date:
- Size: 346.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e325309851bbaf348c8b7948de923754fa25257c3093fb53a750bf6a0be89590
|
|
| MD5 |
548fc5c714032dc7d82d34b9b48a30f5
|
|
| BLAKE2b-256 |
f57d5c2157e722fcd784885bc702666aa8a4716d4839330ab579d20eddb2df67
|