Skip to main content
https://travis-ci.org/ktdreyer/txproductpages.svg?branch=master https://badge.fury.io/py/txproductpages.svg

Access Red Hat Product Pages’s REST API asyncronously (non-blocking) using the Twisted framework.

Simple example: Fetching a release

from txproductpages import Connection
from twisted.internet import defer, reactor


@defer.inlineCallbacks
def example():
    pp = Connection()
    # fetch a release
    try:
        release = yield pp.release('ceph-3-0')
        # release is a Munch (dict-like) object.
        print(release.name)
    except Exception as e:
        print(e)


if __name__ == '__main__':
    example().addCallback(lambda ign: reactor.stop())
    reactor.run()

More Examples

See examples/ directory

Packages that use this package

Download files

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

Source Distribution

txproductpages-1.2.0.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file txproductpages-1.2.0.tar.gz.

File metadata

  • Download URL: txproductpages-1.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for txproductpages-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6e67ccfd154457ebcfaa54ca9cf84dfec5ce53106fb20fe2e306c4cc86acd856
MD5 acd5061371e1d9917915363376d05faf
BLAKE2b-256 34a4514834888ddb6f3a495bad8ca02360c37f831ecebaa66ccd033f3fe7ce63

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 file

1.1.1

1 file

1.1.0

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page