{ "info": { "author": "Vitalii Kulanov.", "author_email": "vitaliy@kulanov.org.ua", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5" ], "description": "[![PyPI](https://img.shields.io/pypi/v/python-gerritclient.svg)](https://pypi.python.org/pypi/python-gerritclient)\n[![Build Status](https://travis-ci.org/tivaliy/python-gerritclient.svg?branch=master)](https://travis-ci.org/tivaliy/python-gerritclient)\n[![Documentation Status](https://readthedocs.org/projects/python-gerritclient/badge/?version=latest)](http://python-gerritclient.readthedocs.io/en/latest/?badge=latest)\n\n# python-gerritclient\nCLI tool and Python API wrapper for Gerrit Code Review\n\n## Quick Start\n\n### Command Line Tool\n1. Clone `python-gerritclient` repository: `git clone https://github.com/tivaliy/python-gerritclient.git`.\n2. Configure `settings.yaml` file (in `gerritclient/settings.yaml`) to meet your requirements.\n\n ```yaml\n url: http://review.example.com\n auth_type: basic\n username: admin\n password: \"1234567890aaWmmflSl+ZlOPs23Dffn\"\n ```\n\n * `url` can be specified according to the following format `://:`, e.g. `https://review.openstack.org`\n * `auth_type` specifies HTTP authentication scheme (`basic` or `digest`), can be omitted, then all requests will be anonymous with respective restrictions\n * `username` and `password` - user credentials from Gerrit system (Settings → HTTP Password)\n\n3. Create isolated Python environment `virtualenv gerritclient_venv` and activate it `source gerritclient_venv/bin/activate`.\n4. Install `python-gerritclient` with all necessary dependencies: `pip install python-gerritclient/.`.\n5. (Optional) Add gerrit command bash completion `gerrit complete | sudo tee /etc/bash_completion.d/gc.bash_completion > /dev/null`\n6. Run `gerrit` command with required options, e.g. `gerrit plugin list`. To see all available commands run `gerrit --help`.\n\n### Library\n1. Clone `python-gerritclient` repository: `git clone https://github.com/tivaliy/python-gerritclient.git`.\n2. Create isolated Python environment `virtualenv gerritclient_venv` and activate it `source gerritclient_venv/bin/activate`.\n3. Install `python-gerritclient` with all necessary dependencies: `pip install python-gerritclient/.`.\n\n```python\nfrom gerritclient import client\n\nconnection = client.connect(\"review.openstack.org\", auth_type=\"digest\" username=\"user-name\", password=\"password\")\ngroup_client = client.get_client('group', connection=connection)\nmembers = group_client.get_group_members('swift-core') # or get_group_members(24)\nprint(', '.join(member['name'] for member in members))\n```\n\nOutput result: `Alistair Coles, Christian Schwede, Clay Gerrard, Darrell Bishop, David Goetz, Greg Lange, Janie Richling, John Dickinson, Kota Tsuyuzaki, Mahati Chamarthy, Matthew Oliver, Michael Barton, Pete Zaitcev, Samuel Merritt, Thiago da Silva, Tim Burke`", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tivaliy/python-gerritclient", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-gerritclient", "package_url": "https://pypi.org/project/python-gerritclient/", "platform": "", "project_url": "https://pypi.org/project/python-gerritclient/", "project_urls": { "Homepage": "https://github.com/tivaliy/python-gerritclient" }, "release_url": "https://pypi.org/project/python-gerritclient/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "CLI tool and Python API wrapper for Gerrit Code Review.", "version": "0.1.0" }, "last_serial": 3459240, "releases": { "0.0.1.dev137": [ { "comment_text": "", "digests": { "md5": "659cb557848416e15711ae10872cd65f", "sha256": "e98142380d89cbc5f5af0deb0e812307c264a067a5fe34b29d0a7d41a4b66acd" }, "downloads": -1, "filename": "python_gerritclient-0.0.1.dev137-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "659cb557848416e15711ae10872cd65f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 74255, "upload_time": "2017-08-28T05:34:28", "url": "https://files.pythonhosted.org/packages/47/9a/a3d8c309a96193e4f4c90826443a0749b5e560a64f80c412c4a36c165dfc/python_gerritclient-0.0.1.dev137-py2.py3-none-any.whl" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "43b31e1cfdae09862240c471df38966a", "sha256": "1680c43816e8263619377a0da6da78ba3748305ad64e54bcc5f805e089566de3" }, "downloads": -1, "filename": "python-gerritclient-0.1.0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "43b31e1cfdae09862240c471df38966a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106529, "upload_time": "2018-01-03T15:27:02", "url": "https://files.pythonhosted.org/packages/62/f6/b4c6534e0996191fdcc92964e322a2169bb7a1369c70c27112acbcbef62e/python-gerritclient-0.1.0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "ce9a08c62b1062a93833b30c0dc06ff5", "sha256": "70f64d4960f5ac9922ed7b7620d2507a361418e0c4bd7d71f96daee2900d0511" }, "downloads": -1, "filename": "python_gerritclient-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ce9a08c62b1062a93833b30c0dc06ff5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 75332, "upload_time": "2018-01-03T15:30:48", "url": "https://files.pythonhosted.org/packages/ea/2a/a24b38d5268d7cbdc14d42d5625b61bdabf4b0a50999b7f7d9f8965f0a8b/python_gerritclient-0.1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "43b31e1cfdae09862240c471df38966a", "sha256": "1680c43816e8263619377a0da6da78ba3748305ad64e54bcc5f805e089566de3" }, "downloads": -1, "filename": "python-gerritclient-0.1.0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "43b31e1cfdae09862240c471df38966a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106529, "upload_time": "2018-01-03T15:27:02", "url": "https://files.pythonhosted.org/packages/62/f6/b4c6534e0996191fdcc92964e322a2169bb7a1369c70c27112acbcbef62e/python-gerritclient-0.1.0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "ce9a08c62b1062a93833b30c0dc06ff5", "sha256": "70f64d4960f5ac9922ed7b7620d2507a361418e0c4bd7d71f96daee2900d0511" }, "downloads": -1, "filename": "python_gerritclient-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ce9a08c62b1062a93833b30c0dc06ff5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 75332, "upload_time": "2018-01-03T15:30:48", "url": "https://files.pythonhosted.org/packages/ea/2a/a24b38d5268d7cbdc14d42d5625b61bdabf4b0a50999b7f7d9f8965f0a8b/python_gerritclient-0.1.0-py2.py3-none-any.whl" } ] }