An open API service indexing awesome lists of open source software.

https://github.com/ryzn0518/gerritPython

gerritpy library
https://github.com/ryzn0518/gerritPython

ci gerrit python

Last synced: 5 months ago
JSON representation

gerritpy library

Awesome Lists containing this project

README

          

## gerrit-python

Gerrit Rest Api Library (not official)

## Installation

```
pip install gerritpy
```

## How to use

```
import gerritpy
import json

username = "{username}"

password = "{http password}"

url = "{url}"

path = "/projects/{project-name}}"

response = gerritpy.get_http(url, path, username, password)

print json.dumps(response, indent=4)
```
You can get `http password` from your gerrit account,`settings`-`HTTP Password`,and then generate your password.

## TODO

```
POST api
PUT api
```

## Contributors

junxiandiao@gmail.com

## LICENSE

[MIT](https://github.com/diaojunxian/gerritPython/blob/master/LICENSE)