Asynchronous Python client for the GitHub API
This is not a full client for the API (Have you seen it, it's huge), and will probably never be. Things are added when needed or requested.
If something you need is missing please raise a feature request to have it added or create a PR 🎉.
For examples on how to use it see the tests directory.
python3 -m pip install aiogithubapiNote: This project is currently in a transition phase.
In August 2021 a new API interface was introduced (in #42). With that addition, all parts of the old interface are now considered deprecated. Which includes:
- The
aiogithubapi.commonmodule - The
aiogithubapi.legacymodule - The
aiogithubapi.objectsmodule - All classes starting with
AIOGitHub - The
async_call_apifunction in theaiogithubapi/helpers.pyfile - The
GitHubDeviceclass inaiogithubapi, replaced withGitHubDeviceAPI - The
GitHubclass inaiogithubapi, replaced withGitHubAPI
Warning: The deprecated code will be removed in a future release. Please migrate to the new API interface.
All contributions are welcome!
- Fork the repository
- Clone the repository locally and open the devcontainer or use GitHub codespaces
- Do your changes
- Lint the files with
scripts/lint - Ensure all tests pass with
scripts/test - Ensure 100% coverage with
scripts/coverage - Commit your work, and push it to GitHub
- Create a PR against the
mainbranch
This project follows Semantic Versioning.
Early releases used semver (0.1.0–2.0.0), followed by a period of calendar versioning (21.1.0–25.5.0). Starting with 26.0.0, the project returns to semver — using 26.x.x as the starting point to stay above the last calver release and avoid confusing package managers.
Version bumps are determined automatically by PR labels:
breaking-change→ majorfeature/enhancement→ minor- All other changes → patch
Releases are automated via GitHub Actions. The flow works as follows:
- PRs are merged to
mainwith appropriate labels - On every merge, release-drafter automatically maintains a draft GitHub Release with categorized changelog entries built from PR titles and authors
- Changelog entries are grouped into: Breaking changes, New features, Enhancements, Bug fixes, Maintenance, Documentation, and Dependencies
- A maintainer reviews the draft and publishes the release via the GitHub Releases UI
- Publishing the GitHub Release for a tag (creating or selecting the tag in the UI) triggers the release workflow, which stamps the version into
pyproject.toml, builds the package, and publishes it to PyPI via OIDC trusted publishing