skillfed

pygerrit2

Client library for interacting with Gerrit's REST API

pygerrit2 v2.0.15 177.7K downloads/30d#10,208 on PyPI101
Permissive license The MIT License DORMANT released

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 pygerrit2

uv

uv add pygerrit2

poetry

poetry add pygerrit2

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: MacOSOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Libraries :: Python Modules

Tags

gerrit rest api clientgerrit code review pythongerrit automation librarygerrit rest clientcode review api integrationgerrit http client
gerritrest-api-clientcode-review

More Python Modules packages