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 Distribution

prism_rest_client-0.2.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file prism_rest_client-0.2.tar.gz.

File metadata

  • Download URL: prism_rest_client-0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for prism_rest_client-0.2.tar.gz
Algorithm Hash digest
SHA256 c113c753a48c99a73745a80e685102910348703d97e91be401e3b9a2a92294d9
MD5 f2cb2e6b38bc0b5ed62ccda0d86c9f3a
BLAKE2b-256 cf53d290a35742ce7395063388ad5d52c287283027ba50ee943264831c1790c9

See more details on using hashes here.

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