--- id: ghapi version: "2.1.2" license: Apache-2.0 license_treatment: permissive maintenance: active --- # ghapi — A python client for the GitHub API License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install ghapi uv add ghapi poetry add ghapi ## Description # ghapi > **ghapi v2 (July 2026) is now async by default.** Every API call is now awaited: `res = await api.repos.get()`. Top-level `await` works directly in Jupyter and modern REPLs; in scripts, use [`asyncio.run`](https://docs.python.org/3/library/asyncio-runner.html#asyncio.run). For sync code (which should be largely compatible with v1), use `GhApi(sync=True)`. See the [Sync usage](https://ghapi.fast.ai/core.html#sync-usage) section of the docs for details. To stay on the old version, pin `ghapi<2`. [`ghapi`](https://ghapi.fast.ai/cli.html#ghapi) provides 100% always-updated coverage of the entire [GitHub API](https://docs.github.com/rest). Because we automatically convert the [OpenAPI spec](https://docs.github.com/rest/overview/openapi-description) to a Pythonic API, [`ghapi`](https://ghapi.fast.ai/cli.html#ghapi) is always up to date with the latest changes to GitHub APIs. Furthermore, because this is all built dynamically from a compact pre-parsed copy of the spec, the package stays small and is always up to date. Using [`ghapi`](https://ghapi.fast.ai/cli.html#ghapi), you can automate nearly anything that... ## AI interpretation — verify before relying ghapi provides complete, always-current coverage of the GitHub REST API through a dynamically generated Pythonic interface, letting you automate GitHub operations like managing issues, pull requests, releases, actions, and organizations. Verdict: ghapi is a well-maintained, low-friction client for the full GitHub REST API with no known vulnerabilities. Its async-first v2 design (released 2026-08-13) requires Python 3.10+ and familiarity with async/await, but the permissive Apache-2.0 license and minimal dependencies make it a solid choice for GitHub automation. [View on SkillFed](https://skillfed.io/packages/ghapi) · [View on PyPI](https://pypi.org/project/ghapi/)