PyPubControl
------------
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("stuff\n")))
