GitHubKit
GitHub SDK for Python
What it is and what it does
GitHubKit is a modern Python SDK for interacting with GitHub's APIs. It wraps GitHub's REST and GraphQL endpoints with full type hints, making it easier to write IDE-friendly code that catches errors at development time rather than runtime. The package handles authentication (including OAuth flows), pagination, webhook event validation via Pydantic, and HTTP caching automatically.
You create a GitHub instance with a token, then call methods like `github.rest.repos.get()` to fetch data with full type information. It supports both synchronous and asynchronous calls, so you can use it in blocking scripts or async applications. The SDK stays current with GitHub's API through generated schemas and includes optional data validation for webhook events and API responses.
Use it for:
- Automating repository management tasks like creating issues, managing pull requests, or updating repository settings.
- Building GitHub-integrated bots or CI/CD tools that need to query repository data or post status updates.
- Fetching and processing webhook events from GitHub with automatic type validation and deserialization.
- Writing async applications that interact with multiple GitHub repositories or organizations concurrently.
- Building internal tools that need to query GitHub's REST API with full IDE autocomplete and type safety.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A fully typed Python SDK for GitHub's REST and GraphQL APIs with support for both sync and async calls, built-in caching, pagination, and webhook validation.
Yes. GitHubKit is actively maintained, has no known vulnerabilities, installs with low friction, and provides a modern, fully typed interface to GitHub's APIs. It's a solid choice if you're building Python tools that interact with GitHub and want type safety and async support. The MIT license poses no restrictions.
Install
githubkit on PyPI
pip
pip install githubkituv
uv add githubkitpoetry
poetry add githubkitInstalling GitHubKit
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a release on 2026-08-14 and 341 repository stars. Depends on six runtime packages including httpx, pydantic, and hishel, all of which are well-maintained.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install githubkit
from githubkit import GitHub
from githubkit_schemas.latest.models import FullRepository
github = GitHub("<your_token_here>")
resp = github.rest.repos.get("owner", "repo")
repo: FullRepository = resp.parsed_data
print(repo.full_name)
Requires Python 3.10 or later. You must provide a GitHub Personal Access Token (PAT) to authenticate.
Verify before relying
- Whether the built-in HTTP cache and auto-retry behavior can be configured or disabled for specific use cases.
- Performance characteristics when handling large numbers of paginated API calls.
- Compatibility with GitHub Enterprise Cloud (GHEC) versioning in practice.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — anyio, httpx, hishel, typing-extensions, pydantic, githubkit-schemas |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,024,752/month — #4,484 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: githubkit-0.16.1-py3-none-any.whl
Keywords: github, octokit
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
GitHubKit-schemasProvides GitHub API schemas and models for…
permissive · top 15,000 on PyPI
GitHubKit-schemas-2026-03-10Provides type-safe GitHub API models and…
permissive · top 15,000 on PyPI
polar-sdkPython SDK for interacting with the Polar API,…
permissive · top 15,000 on PyPI
python-upwork-oauth2Python bindings for the Upwork API using OAuth…
permissive · top 15,000 on PyPI
ghapighapi provides a complete, always-current…
permissive · top 1,000 on PyPI
types-requests-oauthlibProvides type hints for requests-oauthlib,…
permissive · top 15,000 on PyPI
enigma-api-clientPython SDK for querying Enigma's GraphQL…
permissive · top 15,000 on PyPI
django-graphql-jwtAdds JSON Web Token (JWT) authentication to…
permissive · top 15,000 on PyPI
python-graphql-clientSends GraphQL queries, mutations, and…
permissive · top 15,000 on PyPI
gqlA GraphQL client for Python that executes…
permissive · top 1,000 on PyPI