Skip to main content

EPCP library

Project description

Date: October 10th, 2013 Author: Justin Karneges <justin@fanout.io>

EPCP library for Python.

Requirements:

pyjwt

Install:

For the latest stable version, you can install with pip:

pip install pubcontrol

Otherwise, to install directly:

python setup.py install

Sample usage:

from pubcontrol import PubControl, Item, Format

pub = PubControl(”https://api.fanout.io/realm/myrealm”) pub.set_auth_jwt({“iss”: realm_name}, b64decode(realm_key))

class HttpResponseFormat(Format):
def __init__(self, body):

self.body = body

def name(self):

return “http-response”

def export(self):

return {“body”: self.body}

pub.publish(“mychannel”, Item(HttpResponseFormat(“stuffn”)))

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

pubcontrol-1.0.4.tar.gz (2.7 kB view hashes)

Uploaded Source

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