Skip to main content

Client for Cloud Feeds

Project description


This python client is a Cloud Feeds library, that is built to be used with Rackspace's Cloud

Creating Auth Client

Implement AuthClient with following two methods

class AuthClient:

    def fetch_auth_token(self):
        #Logic to generate auth token
        return ""

    def get_auth_header(self):
        return {
            "${HEADER_NAME}": self.fetch_auth_token()

Creating Feed Client

feed_url = ""
auth_client = AuthClient()
feed_client = FeedClient(feed_url, auth_client)

** Reading Events **

To read events,

  feed_client.fetch(url, headers, params)

All fields url, headers and params are optional.

** Get an Event **

To read one particular event,

  feed_client.fetch_event(event_id, url, headers)

url and headers are optional

** Publish an Event **

To publish an event,

  feed_client.create_entry(entry, url, headers)

url and headers are optional

To create an entry json to publish, there are entry, content, event classes defined and also method to transform the object to json as feed requires

** Work In Progress **

We are currently working on setting up Redis, so that we can queue the events and publish the events by reading the queue

Project details

Download files

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

Files for rax-cloudfeeds, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size rax_cloudfeeds-0.0.3-py3-none-any.whl (2.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rax-cloudfeeds-0.0.3.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

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