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")
=============
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")
Release files for python-gerrit 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-gerrit-0.0.1.tar.gz | 7.2 kB | Details |
Release files / python-gerrit-0.0.1.tar.gz
| Download URL | python-gerrit-0.0.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a220866d32637e166c5dd752037733c5da58a5df6d6aa1bbb63095c4b9ce4e9
|
|
BLAKE2b-256 checksum How to use checksums |
91e909d45b62586cf9291f0474b2f5bdfa8b12599474e3e3fbf960b64b5c5a8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |