pygithub

Typed interactions with the GitHub API v3

Latest version: 2.5.0 registry icon
Maintenance score
100
Safety score
100
Popularity score
100
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
2.5.0 0 0 0 0 0
2.4.0 0 0 0 0 0
2.3.0 0 0 0 0 0
2.2.0 0 0 0 0 0
2.1.1 0 0 0 0 0
2.1.0.post0 0 0 0 0 0
2.0.1rc0 0 0 0 0 0
2.0.0rc1 0 0 0 0 0
2.0.0rc0 0 0 0 0 0
1.59.1 0 0 0 0 0
1.59.0 0 0 0 0 0
1.58.2 0 0 0 0 0
1.58.1 0 0 0 0 0
1.58.0 0 0 0 0 0
1.57 0 0 0 0 0
1.56 0 0 0 0 0
1.55 0 0 0 0 0
1.54.1 0 0 0 0 0
1.54.0.1 0 0 0 0 0
1.54 0 0 0 0 0
1.53 0 0 0 0 0
1.52 0 0 0 0 0
1.51 0 0 0 0 0
1.50 0 0 0 0 0
1.47 0 0 0 0 0
1.46 0 0 0 0 0
1.45 0 0 0 0 0
1.44.1 0 0 0 0 0
1.44 0 0 0 0 0
1.43.8 0 0 0 0 0
1.43.7 0 0 0 0 0
1.43.6 0 0 0 0 0
1.43.5 0 0 0 0 0
1.43.4 0 0 0 0 0
1.43.3 0 0 0 0 0
1.43.2 0 0 0 0 0
1.43.1 0 0 0 0 0
1.43 0 0 0 0 0
1.40 0 0 0 0 0
1.40a4 0 0 0 0 0
1.40a3 0 0 0 0 0
1.40a2 0 0 0 0 0
1.40a1 0 0 0 0 0
1.39 0 0 0 0 0
1.38 0 0 0 0 0
1.37 0 0 0 0 0
1.36 0 0 0 0 0
1.35 0 0 0 0 0
1.34 0 0 0 0 0
1.33 0 0 0 0 0
1.32 0 0 0 0 0
1.31 0 0 0 0 0
1.30 0 0 0 0 0
1.29 0 0 0 0 0
1.28 0 0 0 0 0
1.27.1 0 0 0 0 0
1.26.0 0 0 0 0 0
1.25.2 0 0 0 0 0
1.25.1 0 0 0 0 0
1.25.0 0 0 0 0 0
1.24.1 0 0 0 0 0
1.24.0 0 0 0 0 0
1.23.0 0 0 0 0 0
1.22.0 0 0 0 0 0
1.21.0 0 0 0 0 0
1.20.0 0 0 0 0 0
1.19.0 0 0 0 0 0
1.18.0 0 0 0 0 0
1.17.0 0 0 0 0 0
1.16.0 0 0 0 0 0
1.15.0 0 0 0 0 0
1.14.2 0 0 0 0 0
1.14.1 0 0 0 0 0
1.14.0 0 0 0 0 0
1.13.1 0 0 0 0 0
1.13.0 0 0 0 0 0
1.12.2 0 0 0 0 0
1.12.1 0 0 0 0 0
1.11.1 0 0 0 0 0
1.11.0 0 0 0 0 0
1.10.0 0 0 0 0 0
1.9.1 0 0 0 0 0
1.9.0 0 0 0 0 0
1.8.1 0 0 0 0 0
1.8.0 0 0 0 0 0
1.7 0 0 0 0 0
1.6 0 0 0 0 0
1.5 0 0 0 0 0
1.4 0 0 0 0 0
1.3 0 0 0 0 0
1.2 0 0 0 0 0
1.1 0 0 0 0 0
1.0 0 0 0 0 0
0.7 0 0 0 0 0
0.6 0 0 0 0 0
0.5 0 0 0 0 0
0.4 0 0 0 0 0
0.3 0 0 0 0 0
0.2 0 0 0 0 0
0.1 0 0 0 0 0
0.0.0 0 0 0 0 0

Stability
Latest release:

2.5.0 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

LGPL-2.0-only   -   GNU Library General Public License v2 only

Not a wildcard

Not proprietary

OSI Compliant



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.