
This change does the following: Update docs with more info Add an example usage of this library Add pbr versioning to docs Updates the requirements Rarrange the docs to look better on pypi Lots of the elements to do above were borrowed from python-jenkins and jenkins-job-builder projects. Change-Id: Idc7dfc88cc26e1147b027fd55d41229c4bf3910f
436 B
436 B
Usage
Example usage:
import gerritlib.gerrit as gerrit
g = gerrit.Gerrit('gerrit_host', 'username', keyfile='/home/username/.ssh/id_rsa.pub')
# manage projects
g.createProject('test', description='a test project')
projects = g.listProjects()
print(projects)
# manage groups
g.createGroup('testers')
groups = g.listGroups()
print(groups)
Look at the api
for
more details.