This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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")
Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_gerrit-0.0.2-py27-none-any.whl (6.4 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jan 7, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting