Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Build Status Documentation Status

python-gerritclient

CLI tool and Python API wrapper for Gerrit Code Review

Quick Start

Command Line Tool

  1. Clone python-gerritclient repository: git clone https://github.com/tivaliy/python-gerritclient.git.

  2. Configure settings.yaml file (in gerritclient/settings.yaml) to meet your requirements.

    url: http://review.example.com
    auth_type: basic
    username: admin
    password: "1234567890aaWmmflSl+ZlOPs23Dffn"
    • url can be specified according to the following format <scheme>://<host>:<port>, e.g. https://review.openstack.org

    • auth_type specifies HTTP authentication scheme (basic or digest), can be omitted, then all requests will be anonymous with respective restrictions

    • username and password - user credentials from Gerrit system (Settings → HTTP Password)

  3. Create isolated Python environment virtualenv gerritclient_venv and activate it source gerritclient_venv/bin/activate.

  4. Install python-gerritclient with all necessary dependencies: pip install python-gerritclient/..

  5. (Optional) Add gerrit command bash completion gerrit complete | sudo tee /etc/bash_completion.d/gc.bash_completion > /dev/null

  6. Run gerrit command with required options, e.g. gerrit plugin list. To see all available commands run gerrit --help.

Library

  1. Clone python-gerritclient repository: git clone https://github.com/tivaliy/python-gerritclient.git.

  2. Create isolated Python environment virtualenv gerritclient_venv and activate it source gerritclient_venv/bin/activate.

  3. Install python-gerritclient with all necessary dependencies: pip install python-gerritclient/..

from gerritclient import client

connection = client.connect("review.openstack.org", auth_type="digest" username="user-name", password="password")
group_client = client.get_client('group', connection=connection)
members = group_client.get_group_members('swift-core')  # or get_group_members(24)
print(', '.join(member['name'] for member in members))

Output result: Alistair Coles, Christian Schwede, Clay Gerrard, Darrell Bishop, David Goetz, Greg Lange, Janie Richling, John Dickinson, Kota Tsuyuzaki, Mahati Chamarthy, Matthew Oliver, Michael Barton, Pete Zaitcev, Samuel Merritt, Thiago da Silva, Tim Burke

Metadata

Release files for python-gerritclient 0.0.1.dev137

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for python-gerritclient 0.0.1.dev137
File Interpreter ABI Platform
python_gerritclient-0.0.1.dev137-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / python_gerritclient-0.0.1.dev137-py2.py3-none-any.whl

Download URL python_gerritclient-0.0.1.dev137-py2.py3-none-any.whl
Size 74.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e98142380d89cbc5f5af0deb0e812307c264a067a5fe34b29d0a7d41a4b66acd
BLAKE2b-256 checksum
How to use checksums
479aa3d8c309a96193e4f4c90826443a0749b5e560a64f80c412c4a36c165dfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-gerritclient 0.0.1.dev137

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page