Skip to main content

Gerrit SSH Lib

Project description

python-gerrit
=============

Python library for managing Gerrit through ssh


Getting Started
===============


Queries
-------

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('review.openstack.org')
for review in query.filter(project, other):
# do something with the review

Reviews
-------

from gerrit import reviews

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

# Set the patch as WIP
rev.status('workinprogress')
rev.commit()

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

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

# Code-review -2
rev.review(2)
rev.verify(1)
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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2.7

File details

Details for the file python_gerrit-0.0.2-py27-none-any.whl.

File metadata

File hashes

Hashes for python_gerrit-0.0.2-py27-none-any.whl
Algorithm Hash digest
SHA256 2cbd7be7548660e4b1ae4d13d1e26046d2f936fc50b40254870f0717ecbfcf2b
MD5 1ac5935ad798aecccb1b67d5863d391c
BLAKE2b-256 469f10dc90d1a1eccccfa225e0977ea5c0949d456177b07b6b97f42236efc1e4

See more details on using hashes here.

Supported by

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