# PyGithub/PyGithub

Typed interactions with the GitHub API v3

Repository: https://github.com/PyGithub/PyGithub
Canonical: https://ross.abutalabs.com/products/pygithub
Homepage: https://pygithub.readthedocs.io/
Language: Python
License: LGPL-3.0
License Family: copyleft
Topics: pygithub, python, github, github-api
Last push: 2026-08-26T20:01:47+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 5303, "days_push": 7, "days_rel": 13, "gap_med": 66.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7765, forks 1892 (observed 2026-08-28T04:10:04.855826+00:00)

## What it is
PyGithub is a Python library providing typed, object-oriented access to the full GitHub REST API v3. It lets Python applications manage GitHub resources such as repositories, users, and organizations, including GitHub Enterprise instances.

## Use cases
- manage github repositories from python
- automate github workflows with a script
- list a user's repos via the github api
- query github organizations and pull requests programmatically
- build a bot that reacts to github events
- access github enterprise api from python

## When to choose
- you need comprehensive, typed coverage of the GitHub REST API in Python
- you want a mature, well-documented library with active maintenance
- you need GitHub Enterprise support with a custom hostname

## When to avoid
- you only need raw HTTP calls and prefer lightweight requests-based scripts
- you need GraphQL API access rather than REST v3
- you work in a non-Python stack

## Facets
- artifact type: library
- maturity: active
- function: http-client, sdk, developer-tools
- domain: apis, developer-tools
- platform: python, cross-platform
- tags: github-api, rest-api, api-wrapper, github-automation, automation

## Member repositories
- PyGithub/PyGithub (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:04.855826+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:35:05.651522+00:00, confidence not recorded.
  - readme: https://github.com/PyGithub/PyGithub (fetched 2026-08-28T04:10:04.855826+00:00, sha 287cf0ad0d15)
  - registry_pypi: https://pypi.org/pypi/pygithub/json (fetched 2026-08-29T08:31:37.175783+00:00, sha 2f4b9bca7ce5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
