You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xmo-odoo 001970d4a8
Improve signature of Repository.create_repo (#2118)
9 months ago
.github Add support for Python 3.10 (#2073) 12 months ago
doc Add comment on issue example (#2081) 11 months ago
github Improve signature of Repository.create_repo (#2118) 9 months ago
scripts Allow adding attributes at the end of the list (#1807) 2 years ago
tests Improve signature of Repository.create_repo (#2118) 9 months ago
.git-blame-ignore-revs Ignore pyupgrade commit for git blame (#1785) 2 years ago
.gitignore Turn on coverage reporting for codecov (#1522) 2 years ago
.isort.cfg Adding github actions secrets (#1681) 2 years ago
.pre-commit-config.yaml Remove language_version for black (#1968) 1 year ago
.readthedocs.yml Move lint and docs to Python 3.8 (#2077) 11 months ago
CONTRIBUTING.md Reuse pre-commit checks in CI (#1442) 3 years ago
COPYING Add a copyright and license notice (issue #16) 10 years ago
COPYING.LESSER Add a copyright and license notice (issue #16) 10 years ago
DEPLOY.md Drop Travis in favor of Github workflow (#1488) 2 years ago
MAINTAINERS Add myself to funding and maintainers (#1435) 3 years ago
MANIFEST.in update project files 6 years ago
README.md Update most URLs to docs.github.com (#1896) 2 years ago
codecov.yml Manually fixing paths for codecov.io to cover all project files (#1813) 2 years ago
manage.sh Switch to using pytest (#1423) 3 years ago
pytest.ini Switch to using pytest (#1423) 3 years ago
requirements.txt Update sphinx-rtd-theme requirement from <0.6 to <1.1 (#2059) 12 months ago
setup.py Add support for Python 3.10 (#2073) 12 months ago
test-requirements.txt Revert "Pin requests to <2.25 as well (#1757)" (#1763) 2 years ago
tox.ini Move lint and docs to Python 3.8 (#2077) 11 months ago

README.md

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

# First create a Github instance:

# using an access token
g = Github("access_token")

# Github Enterprise with custom hostname
g = Github(base_url="https://{hostname}/api/v3", login_or_token="access_token")

# Then play with your Github objects:
for repo in g.get_user().get_repos():
    print(repo.name)

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.