pygerrit2
Client library for interacting with Gerrit's REST API
What it is and what it does
Pygerrit2 is a Python client library that wraps Gerrit Code Review's REST API, allowing developers to programmatically query and interact with Gerrit instances. It provides a straightforward interface for common operations like retrieving projects, changes, and reviews without having to construct raw HTTP requests.
The library has no runtime dependencies, making it lightweight to install. However, it is in a dormant maintenance state—the last release was in June 2021, and while the repository received a commit in late 2023, there has been no active development for several years. It is classified as Production/Stable and supports Python 3.6 through 3.8, though actual compatibility with newer Python versions is unclear.
Use it for:
- Automate code review workflows by querying Gerrit changes and their status programmatically.
- Build CI/CD integration tools that interact with Gerrit to fetch change metadata or post reviews.
- Generate reports on Gerrit projects, changes, and review metrics for analysis.
- Create custom tooling to manage Gerrit repositories and automate administrative tasks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pygerrit2 is a client library for interacting with Gerrit Code Review's REST API, enabling programmatic access to Gerrit instances from Python.
Yes, if you need to interact with Gerrit's REST API from Python and can accept dormant maintenance. The library is stable, has no dependencies, and carries no known vulnerabilities. However, verify compatibility with your Gerrit version and Python release before adopting, and be prepared to maintain a fork if upstream does not respond to issues.
Install
pygerrit2 on PyPI
pip
pip install pygerrit2uv
uv add pygerrit2poetry
poetry add pygerrit2Installing pygerrit2
Before you install
High install friction with no runtime dependencies. The package is dormant—last release was 2021-06-03, over 1898 days ago, and the last commit was 2023-11-29. While the repository is not archived, the lack of recent activity suggests limited ongoing maintenance.
License in practice
Licensed under the MIT License (permissive). You can use, modify, and distribute this package freely with minimal restrictions, provided you retain the license notice.
Quickstart
pip install pygerrit2
from pygerrit2.rest import GerritRestAPI
api = GerritRestAPI(url='https://gerrit.example.com')
projects = api.get('/projects/')
Verify before relying
- Whether the package works with Python versions beyond 3.8, given classifiers list only up to 3.8 but requires_python is unspecified.
- Current compatibility with recent Gerrit REST API versions, given the dormant maintenance status since mid-2021.
Package facts
| License | The MIT License (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | dormant — 1,898 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 177,680/month — #10,208 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pygerrit2-2.0.15.tar.gz
Keywords: gerrit, rest, http, api, client
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
python-gerrit-apiProvides a Python client library for…
permissive · top 15,000 on PyPI
git-reviewgit-review is a command-line tool that…
permissive · top 15,000 on PyPI
python-upwork-oauth2Python bindings for the Upwork API using OAuth…
permissive · top 15,000 on PyPI
python-sonarqube-apiProvides a Python client library for…
agpl · top 15,000 on PyPI
coreapiA Python client library for interacting with…
permissive · top 5,000 on PyPI
evergreen.pyA Python client library for the Evergreen API…
permissive · top 5,000 on PyPI
pagerdutyLightweight Python client library for…
unclear · top 5,000 on PyPI
prawPRAW provides a Python interface to Reddit's…
permissive · top 5,000 on PyPI
thriftpy2ThriftPy2 is a pure Python implementation of…
permissive · top 5,000 on PyPI
groqProvides a Python client library for accessing…
permissive · top 1,000 on PyPI