PyGripControl
-------------
Date: April 5th, 2013
Author: Justin Karneges <justin@fanout.io>

GRIP library for Python.

Requirements:

  jwt
  pubcontrol

Sample usage:

  import gripcontrol as grip

  http_body = grip.create_hold_response("mychannel")
  # django: HttpResponse(http_body, content_type="application/grip-instruct")

  pub = grip.GripPubControl("https://api.fanout.io/realm/myrealm")
  pub.set_jwt_auth({"iss": "myrealm"}, "secret")

  pub.publish_http_response("mychannel", "stuff\n")
