==========
GerritREST
==========

GerritREST is a simple library to manipulate with Gerrit objects via REST API.

Quick start
-----------

1. Define URL of your server

    gerrit_url = "https://mygerrit.example.com/gerrit/"

2. Get credentials from ~/.netrc for that URL

    import netrc
    user, _, pass = netrc.netrc().hosts[urlparse.urlparse(gerrit_url).netloc]

3. Create GerritREST instance with those parameters

    from gerritrest import GerritREST
    gerrit=GerritREST(gerrit_url, user, pass)

4. Get list of projects with descriptions and parent information from Gerrit

    projects = gerrit.get_projects(description=True, parents=True)

5. Use obtained information for something useful :)
