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.1rc0.tar.gz
(3.3 MB
view details)
Built Distribution
PyGithub-2.0.1rc0-py3-none-any.whl
(346.1 kB
view details)
File details
Details for the file PyGithub-2.0.1rc0.tar.gz
.
File metadata
- Download URL: PyGithub-2.0.1rc0.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 | b1866180333a120f0937613476e8f5fd51f0a49622b207afdebfe1f2f3c090e9 |
|
MD5 | f049d9c2487cdddf2c03d7ebe855405c |
|
BLAKE2b-256 | 77ebdadd97d98d390b4096a935f4395c4c713a2921098602a4958745cfec3958 |
File details
Details for the file PyGithub-2.0.1rc0-py3-none-any.whl
.
File metadata
- Download URL: PyGithub-2.0.1rc0-py3-none-any.whl
- Upload date:
- Size: 346.1 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 | dcb63448cf40ba726984457f8e7979d3ae523616f90ae1e4c190294bcf169338 |
|
MD5 | 71865411d8098068e5776653d3f57bd3 |
|
BLAKE2b-256 | 14a1f2547e0233b08e4d03586eff0a1ac85d637900591e555a85bf3d69165026 |