pygithub 2.6.1


pip install pygithub

  Latest version

Released: Feb 21, 2025


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

PyPI CI readthedocs License Slack Open Source Helpers codecov Code style: black

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.

2.6.1 Feb 21, 2025
2.6.0 Feb 15, 2025
2.5.0 Nov 06, 2024
2.4.0 Aug 26, 2024
2.3.0 Mar 24, 2024
2.2.0 Jan 30, 2024
2.1.1 Sep 29, 2023
2.1.0.post0 Sep 29, 2023
2.0.1rc0 Aug 03, 2023
2.0.0rc1 Jul 11, 2023
2.0.0rc0 Jul 04, 2023
1.59.1 Aug 03, 2023
1.59.0 Jun 22, 2023
1.58.2 May 09, 2023
1.58.1 Mar 18, 2023
1.58.0 Feb 19, 2023
1.57 Nov 05, 2022
1.56 Oct 13, 2022
1.55 Apr 26, 2021
1.54.1 Dec 24, 2020
1.54.0.1 Apr 26, 2021
1.54 Nov 30, 2020
1.53 Aug 18, 2020
1.52 Aug 03, 2020
1.51 May 02, 2020
1.50 Apr 26, 2020
1.47 Mar 15, 2020
1.46 Feb 11, 2020
1.45 Dec 29, 2019
1.44.1 Nov 07, 2019
1.44 Oct 19, 2019
1.43.8 Jul 20, 2019
1.43.7 Apr 16, 2019
1.43.6 Apr 05, 2019
1.43.5 Jan 29, 2019
1.43.4 Dec 21, 2018
1.43.3 Oct 31, 2018
1.43.2 Sep 12, 2018
1.43.1 Sep 11, 2018
1.43 Sep 08, 2018
1.40 Jun 26, 2018
1.40a4 May 21, 2018
1.40a3 Apr 26, 2018
1.40a2 Apr 23, 2018
1.40a1 Apr 17, 2018
1.39 Apr 10, 2018
1.38 Mar 21, 2018
1.37 Mar 01, 2018
1.36 Feb 07, 2018
1.35 Jul 10, 2017
1.34 Apr 02, 2017
1.33 Mar 27, 2017
1.32 Feb 01, 2017
1.31 Jan 30, 2017
1.30 Jan 30, 2017
1.29 Oct 05, 2016
1.28 Sep 11, 2016
1.27.1 Aug 12, 2016
1.26.0 Nov 06, 2015
1.25.2 Oct 08, 2014
1.25.1 Sep 28, 2014
1.25.0 May 04, 2014
1.24.1 Mar 16, 2014
1.24.0 Mar 03, 2014
1.23.0 Dec 24, 2013
1.22.0 Dec 16, 2013
1.21.0 Nov 17, 2013
1.20.0 Oct 21, 2013
1.19.0 Sep 08, 2013
1.18.0 Aug 21, 2013
1.17.0 Jul 07, 2013
1.16.0 May 31, 2013
1.15.0 May 17, 2013
1.14.2 Apr 25, 2013
1.14.1 Apr 25, 2013
1.14.0 Apr 22, 2013
1.13.1 Mar 28, 2013
1.13.0 Mar 22, 2013
1.12.2 Mar 03, 2013
1.12.1 Feb 20, 2013
1.11.1 Feb 09, 2013
1.11.0 Feb 07, 2013
1.10.0 Dec 25, 2012
1.9.1 Nov 20, 2012
1.9.0 Nov 19, 2012
1.8.1 Oct 28, 2012
1.8.0 Sep 30, 2012
1.7 Sep 12, 2012
1.6 Sep 08, 2012
1.5 Sep 05, 2012
1.4 Aug 04, 2012
1.3 Jul 13, 2012
1.2 Jun 29, 2012
1.1 Jun 20, 2012
1.0 Jun 03, 2012
0.7 May 25, 2012
0.6 Apr 17, 2012
0.5 Mar 19, 2012
0.4 Mar 12, 2012
0.3 Feb 26, 2012
0.2 Feb 23, 2012
0.1 Feb 19, 2012
0.0.0 Apr 02, 2017

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
pynacl (>=1.4.0)
requests (>=2.14.0)
pyjwt[crypto] (>=2.4.0)
typing-extensions (>=4.0.0)
urllib3 (>=1.26.0)
Deprecated