/usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/PKG-INFO is in python3-pygerrit2 2.0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | Metadata-Version: 1.1
Name: pygerrit2
Version: 2.0.4
Summary: Client library for interacting with Gerrit's REST API
Home-page: https://github.com/dpursehouse/pygerrit2
Author: David Pursehouse
Author-email: david.pursehouse@gmail.com
License: The MIT License
Description-Content-Type: UNKNOWN
Description: Pygerrit2 - Client library for interacting with Gerrit Code Review's REST API
=============================================================================
.. image:: https://img.shields.io/pypi/v/pygerrit2.png
.. image:: https://img.shields.io/pypi/l/pygerrit2.png
Pygerrit2 provides a simple interface for clients to interact with
`Gerrit Code Review`_ via the REST API.
Prerequisites
-------------
Pygerrit2 is compatible with Python 2.6 and Python 2.7. Support for Python 3
is experimental.
Pygerrit2 depends on the `requests`_ library.
Installation
------------
To install pygerrit2, simply::
$ pip install pygerrit2
Usage
-----
This simple example shows how to get the user's open changes. Authentication
to Gerrit is done via HTTP Basic authentication, using an explicitly given
username and password::
>>> from requests.auth import HTTPBasicAuth
>>> from pygerrit2.rest import GerritRestAPI
>>> auth = HTTPBasicAuth('username', 'password')
>>> rest = GerritRestAPI(url='http://review.example.net', auth=auth)
>>> changes = rest.get("/changes/?q=owner:self%20status:open")
Note that is is not necessary to add the ``/a/`` prefix on the endpoint
URLs. This is automatically added when the API is instantiated with an
authentication object.
If the user's HTTP username and password are defined in the ``.netrc``
file::
machine review.example.net login MyUsername password MyPassword
then it is possible to authenticate with those credentials::
>>> from pygerrit2.rest import GerritRestAPI
>>> from pygerrit2.rest.auth import HTTPBasicAuthFromNetrc
>>> url = 'http://review.example.net'
>>> auth = HTTPBasicAuthFromNetrc(url=url)
>>> rest = GerritRestAPI(url=url, auth=auth)
>>> changes = rest.get("/changes/?q=owner:self%20status:open")
Note that the HTTP password is not the same as the SSH password. For
instructions on how to obtain the HTTP password, refer to Gerrit's
`HTTP upload settings`_ documentation.
Also note that in Gerrit version 2.14, support for HTTP Digest authentication
was removed and only HTTP Basic authentication is supported. When using
pygerrit2 against an earlier Gerrit version, it may be necessary to replace
the `HTTPBasic...` classes with the corresponding `HTTPDigest...` versions.
Refer to the `example`_ script for a full working example.
Copyright and License
---------------------
Copyright 2011 Sony Ericsson Mobile Communications. All rights reserved.
Copyright 2012 Sony Mobile Communications. All rights reserved.
Copyright 2016 David Pursehouse. All rights reserved.
Licensed under The MIT License. Please refer to the `LICENSE`_ file for full
license details.
.. _`Gerrit Code Review`: https://gerritcodereview.com/
.. _`requests`: https://github.com/kennethreitz/requests
.. _example: https://github.com/dpursehouse/pygerrit2/blob/master/example.py
.. _`HTTP upload settings`: https://gerrit-documentation.storage.googleapis.com/Documentation/2.14/user-upload.html#http
.. _LICENSE: https://github.com/dpursehouse/pygerrit2/blob/master/LICENSE
Keywords: gerrit
rest
http
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
|