An asynchronous GitHub API library.
Important
As of v6.0.0 (September 25, 2026), this project is in maintenance-only mode. We welcome bug reports and will make a best-effort attempt at fixing them. We do not accept feature requests or pull requests from external contributors. See the Contributing and Maintenance Guide for details.
Gidgethub is available on PyPI.
python3 -m pip install gidgethub
Gidgethub requires Python version 3.10 and up.
The key goal is to provide a base library for the GitHub API which performs no I/O of its own (a sans-I/O library). This allows users to choose whatever HTTP library they prefer while parceling out GitHub-specific details to this library. This base library is then built upon to provide an abstract base class to a cleaner API to work with. Finally, implementations of the abstract base class are provided for asynchronous HTTP libraries to work with.
If you think you want a different approach to the GitHub API, GitHub maintains a list of libraries.
I couldn't think of a good name that was somehow a play on "GitHub" or somehow tied into Monty Python. And so I decided to play off of GitHub's octocat mascot and use my own cat's name, Gidget, in some way. Since "Gidget" somewhat sounds like "git", I decided to go with "gidgethub".
See the documentation for the full changelog.