Use the full Github API v3
Project Links
Meta
Author: Vincent Jacques
Requires Python: >=3.8
Classifiers
Development Status
- 5 - Production/Stable
Environment
- Web Environment
Intended Audience
- Developers
License
- OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
Topic
- Software Development
PyGitHub
PyGitHub is a Python library to access the GitHub REST API. This library enables you to manage GitHub resources such as repositories, user profiles, and organizations in your Python applications.
Install
pip install PyGithub
Simple Demo
from github import Github
# Authentication is defined via github.Auth
from github import Auth
# using an access token
auth = Auth.Token("access_token")
# First create a Github instance:
# Public Web Github
g = Github(auth=auth)
# Github Enterprise with custom hostname
g = Github(base_url="https://{hostname}/api/v3", auth=auth)
# Then play with your Github objects:
for repo in g.get_user().get_repos():
print(repo.name)
# To close connections after use
g.close()
Documentation
More information can be found on the PyGitHub documentation site.
Development
Contributing
Long-term discussion and bug reports are maintained via GitHub Issues. Code review is done via GitHub Pull Requests.
For more information read CONTRIBUTING.md.
Maintainership
We're actively seeking maintainers that will triage issues and pull requests and cut releases. If you work on a project that leverages PyGitHub and have a vested interest in keeping the code alive and well, send an email to someone in the MAINTAINERS file.
Feb 21, 2025
2.6.1
Feb 15, 2025
2.6.0
Nov 06, 2024
2.5.0
Aug 26, 2024
2.4.0
Mar 24, 2024
2.3.0
Jan 30, 2024
2.2.0
Sep 29, 2023
2.1.1
Sep 29, 2023
2.1.0.post0
Aug 03, 2023
2.0.1rc0
Jul 11, 2023
2.0.0rc1
Jul 04, 2023
2.0.0rc0
Aug 03, 2023
1.59.1
Jun 22, 2023
1.59.0
May 09, 2023
1.58.2
Mar 18, 2023
1.58.1
Feb 19, 2023
1.58.0
Nov 05, 2022
1.57
Oct 13, 2022
1.56
Apr 26, 2021
1.55
Dec 24, 2020
1.54.1
Apr 26, 2021
1.54.0.1
Nov 30, 2020
1.54
Aug 18, 2020
1.53
Aug 03, 2020
1.52
May 02, 2020
1.51
Apr 26, 2020
1.50
Mar 15, 2020
1.47
Feb 11, 2020
1.46
Dec 29, 2019
1.45
Nov 07, 2019
1.44.1
Oct 19, 2019
1.44
Jul 20, 2019
1.43.8
Apr 16, 2019
1.43.7
Apr 05, 2019
1.43.6
Jan 29, 2019
1.43.5
Dec 21, 2018
1.43.4
Oct 31, 2018
1.43.3
Sep 12, 2018
1.43.2
Sep 11, 2018
1.43.1
Sep 08, 2018
1.43
Jun 26, 2018
1.40
May 21, 2018
1.40a4
Apr 26, 2018
1.40a3
Apr 23, 2018
1.40a2
Apr 17, 2018
1.40a1
Apr 10, 2018
1.39
Mar 21, 2018
1.38
Mar 01, 2018
1.37
Feb 07, 2018
1.36
Jul 10, 2017
1.35
Apr 02, 2017
1.34
Mar 27, 2017
1.33
Feb 01, 2017
1.32
Jan 30, 2017
1.31
Jan 30, 2017
1.30
Oct 05, 2016
1.29
Sep 11, 2016
1.28
Aug 12, 2016
1.27.1
Nov 06, 2015
1.26.0
Oct 08, 2014
1.25.2
Sep 28, 2014
1.25.1
May 04, 2014
1.25.0
Mar 16, 2014
1.24.1
Mar 03, 2014
1.24.0
Dec 24, 2013
1.23.0
Dec 16, 2013
1.22.0
Nov 17, 2013
1.21.0
Oct 21, 2013
1.20.0
Sep 08, 2013
1.19.0
Aug 21, 2013
1.18.0
Jul 07, 2013
1.17.0
May 31, 2013
1.16.0
May 17, 2013
1.15.0
Apr 25, 2013
1.14.2
Apr 25, 2013
1.14.1
Apr 22, 2013
1.14.0
Mar 28, 2013
1.13.1
Mar 22, 2013
1.13.0
Mar 03, 2013
1.12.2
Feb 20, 2013
1.12.1
Feb 09, 2013
1.11.1
Feb 07, 2013
1.11.0
Dec 25, 2012
1.10.0
Nov 20, 2012
1.9.1
Nov 19, 2012
1.9.0
Oct 28, 2012
1.8.1
Sep 30, 2012
1.8.0
Sep 12, 2012
1.7
Sep 08, 2012
1.6
Sep 05, 2012
1.5
Aug 04, 2012
1.4
Jul 13, 2012
1.3
Jun 29, 2012
1.2
Jun 20, 2012
1.1
Jun 03, 2012
1.0
May 25, 2012
0.7
Apr 17, 2012
0.6
Mar 19, 2012
0.5
Mar 12, 2012
0.4
Feb 26, 2012
0.3
Feb 23, 2012
0.2
Feb 19, 2012
0.1
Apr 02, 2017
0.0.0
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
(>=1.4.0)
pynacl
(>=2.14.0)
requests
(>=2.4.0)
pyjwt[crypto]
(>=4.0.0)
typing-extensions
(>=1.26.0)
urllib3