/gerrit.py

A Python Wrapper for the Gerrit REST API

Primary LanguagePythonApache License 2.0Apache-2.0

gerrit.py --- A Python Wrapper for the Gerrit REST API

License Python Build Status Coverage Status

🚧 [WIP] This project is still under development.

gerrit.py provides a simple interface to interact with Gerrit Code Review via the REST API.

Gerrit Version Compatibility

Install

Install from source code

python setup.py install

Usage

from gerrit.gerrit import Gerrit
from gerrit.config import Config

g = Gerrit('gerrit.example.com', 'username', 'password')
config = Config(g)
success, version = config.get_version()
print success
# True
print version
# 2.11.10

Acknowledgements

This project is inspired by CBitLabs/BitBucket-api.