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 details)
Built Distribution
PyGithub-1.59.1-py3-none-any.whl
(342.2 kB
view details)
File details
Details for the file PyGithub-1.59.1.tar.gz
.
File metadata
- Download URL: PyGithub-1.59.1.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 | c44e3a121c15bf9d3a5cc98d94c9a047a5132a9b01d22264627f58ade9ddc217 |
|
MD5 | 3f5e5d4ad61c3f036703c762fc65b66e |
|
BLAKE2b-256 | fb30203d3420960853e399de3b85d6613cea1cf17c1cf7fc9716f7ee7e17e0fc |
File details
Details for the file PyGithub-1.59.1-py3-none-any.whl
.
File metadata
- Download URL: PyGithub-1.59.1-py3-none-any.whl
- Upload date:
- Size: 342.2 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 | 3d87a822e6c868142f0c2c4bf16cce4696b5a7a4d142a7bd160e1bdf75bc54a9 |
|
MD5 | bc2743344fe6bd0692314eead891dc43 |
|
BLAKE2b-256 | 2c71aff5465d9e3d448a5d4beab1dc7c8dec72037e3ae7e0d856ee08538dc934 |