skip to navigation
skip to content

Not Logged In

prism_rest_client 0.1

prism_rest_client

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'
 
File Type Py Version Uploaded on Size
prism_rest_client-0.1-py2.7.egg (md5) Python Egg 2.7 2014-01-07 13KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 19 downloads in the last week
  • 108 downloads in the last month