Skip to main content

prism_rest_client

Project description

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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

prism_rest_client-0.1-py2.7.egg (13.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page