prism_rest_client README
==================
This client library is meant for interacting with REST APIs implemented using
the prism_rest library. It may work with other REST APIs as well, but has not
been tested against such.
Getting Started
---------------
>>> import prism_rest_client
>>> api = prism_rest_client.open('http://example.com/api')
>>>
>>> distros = dict(((x.name, x.version), x) for x in api.distros)
>>>
>>> distro = distros.get(('centos', 6))
>>>
>>> pkgs = distro.query('packages', name='bash')
>>>
>>> assert pkgs[0].nevra.name == 'bash'
==================
This client library is meant for interacting with REST APIs implemented using
the prism_rest library. It may work with other REST APIs as well, but has not
been tested against such.
Getting Started
---------------
>>> import prism_rest_client
>>> api = prism_rest_client.open('http://example.com/api')
>>>
>>> distros = dict(((x.name, x.version), x) for x in api.distros)
>>>
>>> distro = distros.get(('centos', 6))
>>>
>>> pkgs = distro.query('packages', name='bash')
>>>
>>> assert pkgs[0].nevra.name == 'bash'
Metadata
Release files for prism_rest_client 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prism_rest_client-0.2.tar.gz | 4.1 kB | Details |
Release files / prism_rest_client-0.2.tar.gz
| Download URL | prism_rest_client-0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c113c753a48c99a73745a80e685102910348703d97e91be401e3b9a2a92294d9
|
|
BLAKE2b-256 checksum How to use checksums |
cf53d290a35742ce7395063388ad5d52c287283027ba50ee943264831c1790c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|