Skip to main content

Client for Cloud Feeds

Project description

cloudfeeds_client

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 = "https://feed.com/type/events"
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.

Source Distribution

rax-cloudfeeds-0.0.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rax_cloudfeeds-0.0.3-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file rax-cloudfeeds-0.0.3.tar.gz.

File metadata

  • Download URL: rax-cloudfeeds-0.0.3.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for rax-cloudfeeds-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b98fc407a5c491f0ec4a1966ef6418ec8f64fe23b6ae249e11f99a9e022e5661
MD5 0e8d9ab7fdc7020d95b011cfe1147708
BLAKE2b-256 8560710c5110d1dcddb3a98ba0dedb0092e9fbadb0a5abc451a770a2648daad8

See more details on using hashes here.

File details

Details for the file rax_cloudfeeds-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: rax_cloudfeeds-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for rax_cloudfeeds-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76e40428a11551dc3739e03f918e2f353b6a88b51462bed9aac69552afa9ca48
MD5 0a53e7343b69f39cacee72591a797cfe
BLAKE2b-256 f27ef8ba2898b78ea362d3abcc327675ac2ac424fab0e8e2062bf2c5cdb368e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page