Skip to main content

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.

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.10.0.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygithub-2.10.0-py3-none-any.whl (455.6 kB view details)

Uploaded Python 3

File details

Details for the file pygithub-2.10.0.tar.gz.

File metadata

  • Download URL: pygithub-2.10.0.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for pygithub-2.10.0.tar.gz
Algorithm Hash digest
SHA256 90ff24ef1cd1bd57124c2a3869cafee9d7b066909129ecdaba2c2d1903bc118d
MD5 ce9978d1651432192a15db60d6a1cf47
BLAKE2b-256 e19b195603d5371861005a3467c5e4afd02fd0698795a2aa36dc41498b9d879d

See more details on using hashes here.

File details

Details for the file pygithub-2.10.0-py3-none-any.whl.

File metadata

  • Download URL: pygithub-2.10.0-py3-none-any.whl
  • Upload date:
  • Size: 455.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for pygithub-2.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 192ada2a76e4afc7d6b37e500c9bfeba1731e6506697445a5ba1c4af8bf0b924
MD5 e9e2595be78c4cae7bd45e860e34979b
BLAKE2b-256 9171f314841697a1d52af3e1ea7c5e1c3f09685b64ae4c58ff16b605a866255d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.10.0 This release

2 files

2.9.1

2 files

2.9.0

2 files

2.8.1

2 files

2.8.0

2 files

2.7.0

2 files

2.6.1

2 files

2.6.0

2 files

2.5.0

2 files

2.4.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.1

2 files

2.1.0.post0

2 files

1.59.1

2 files

1.59.0

2 files

1.58.2

2 files

1.58.1

2 files

1.58.0

2 files

1.57

2 files

1.56

2 files

1.55

2 files

1.54.1

2 files

1.54.0.1

2 files

1.54

3 files

1.53

2 files

1.52

2 files

1.51

2 files

1.50

2 files

1.47

2 files

1.46

2 files

1.45

1 file

1.44.1

1 file

1.44

1 file

1.43.8

1 file

1.43.7

1 file

1.43.6

1 file

1.43.5

1 file

1.43.4

1 file

1.43.3

1 file

1.43.2

1 file

1.43.1

1 file

1.43

1 file

1.40

1 file

1.39

1 file

1.38

1 file

1.37

1 file

1.36

1 file

1.35

1 file

1.34

1 file

1.33

1 file

1.32

1 file

1.31

1 file

1.30

1 file

1.29

1 file

1.28

1 file

1.27.1

1 file

1.26.0

1 file

1.25.2

1 file

1.25.1

1 file

1.25.0

1 file

1.24.1

1 file

1.24.0

1 file

1.23.0

1 file

1.22.0

1 file

1.21.0

1 file

1.20.0

1 file

1.19.0

1 file

1.18.0

1 file

1.17.0

1 file

1.16.0

1 file

1.15.0

1 file

1.14.2

1 file

1.14.1

1 file

1.14.0

1 file

1.13.1

1 file

1.13.0

1 file

1.12.2

1 file

1.12.1

1 file

1.11.1

1 file

1.11.0

1 file

1.10.0

1 file

1.9.1

1 file

1.9.0

1 file

1.8.1

1 file

1.8.0

1 file

1.7

1 file

1.6

1 file

1.5

1 file

1.4

1 file

1.3

1 file

1.2

1 file

1.1

1 file

1.0

1 file

0.7

1 file

0.6

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

0.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page