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.1.0.post0.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
File details
Details for the file PyGithub-2.1.0.post0.tar.gz.
File metadata
- Download URL: PyGithub-2.1.0.post0.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51dbe852cb553a0b96a62ca270613f64d55de2e8ff2670bb9e3838951ae67822
|
|
| MD5 |
f595d7fa690e3a117ea3453bcecccf69
|
|
| BLAKE2b-256 |
7c383b330cfc2233eace9b284700156bbdcc0caacb873f12ff1ec7c2226fbbf3
|
File details
Details for the file PyGithub-2.1.0.post0-py3-none-any.whl.
File metadata
- Download URL: PyGithub-2.1.0.post0-py3-none-any.whl
- Upload date:
- Size: 303.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff71016073f124ecb3fc2a756f0365180f88f40ff1c753107b0e115e94bd0493
|
|
| MD5 |
e9469056ad036dc0ba553f305173ee71
|
|
| BLAKE2b-256 |
d1fefef8795433b3d0752b3fb764a833574b49aa49fce0ed1cd3e10150c5ac25
|