Skip to main content

Client library for interacting with Gerrit

Project description

Pygerrit is a Python library to interact with the Gerrit Code Review system over ssh.

Installation

To install pygerrit, simply:

$ pip install pygerrit

Prerequisites

Pygerrit runs on Ubuntu 10.4 and Mac OSX 10.8.4 with Python 2.6.x and 2.7.x. Support for other platforms and Python versions is not guaranteed.

To connect to the review server, pygerrit requires the ssh connection parameters (hostname, port, username) to be present in the .ssh/config file for the current user:

Host review
  HostName review.example.net
  Port 29418
  User username

Event Stream

Gerrit offers a stream-events command that is run over ssh, and returns back a stream of events (new change uploaded, change merged, comment added, etc) as JSON text.

This library handles the parsing of the JSON text from the event stream, encapsulating the data in event objects (Python classes), and allowing the client to fetch them from a queue. It also allows users to easily add handling of custom event types, for example if they are running a customised Gerrit installation with non-standard events.

Refer to the example script for a brief example of how the interface works.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygerrit-0.1.1.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file pygerrit-0.1.1.tar.gz.

File metadata

  • Download URL: pygerrit-0.1.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygerrit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b0e36ae6f8bffb3282b36c45b2d18311096b159f65e83f717503334fcc5fa09
MD5 61cbeefac9d1b4259b72d7d17769471b
BLAKE2b-256 594171240bec3d3808433db38007efc871140918fe410e1edbe4ac75d8ed2e80

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page