Skip to main content

Gerrit SSH Lib

Project description


Python library for managing Gerrit through ssh

Getting Started


from gerrit import filters
from gerrit import reviews

project = filters.OrFilter()
project.add_items('project', ['openstack/glance', 'openstack/python-glanceclient'])

other = filters.Items()
other.add_items('is', 'open')
other.add_items('limit', 100)

query = reviews.Query('')
for review in query.filter(project, other):
# do something with the review


from gerrit import reviews

rev = reviews.Review('23424,12', host='')

# Set the patch as WIP

# Set the patch as ready for review
rev.commit("Ok, it is ready for review")

# Code-review -2
rev.commit("Erm, I don't like this patch at all")

# Code-review -2
rev.commit("Cool, LGTM, approved")

Project details

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

python_gerrit-0.0.2-py27-none-any.whl (6.4 kB view hashes)

Uploaded Python 2.7

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