EPCP library
Project description
Date: March 24th, 2013 Author: Justin Karneges <justin@fanout.io>
EPCP library for Python.
Requirements:
pyjwt pyzmq
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
Release history Release notifications | RSS feed
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.0.tar.gz
(2.5 kB
view hashes)