Skip to main content

Twisted API for Red Hat Product Pages

Project description

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

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

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

More Examples

See examples/ directory

Packages that use this package

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

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

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page