Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 683 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 683 Bytes

python-bayeux-client

A simple python bayeux client that connects to a server using the Bayeux protocol and allows for users to receive data published by the server.

Installation

pip install -e git+https://github.com/dkmadigan/python-bayeux-client#egg=python-bayeux-client

Usage


from bayeux.bayeux_client import BayeuxClient
def cb(data):
  print(data)
bc = BayeuxClient('http://localhost:8080/cometd')
bc.register('/foo/bar', cb)
bc.register('/foo/baz', cb)
bc.start()

Dependencies

Twisted (http://twistedmatrix.com/trac/)
zope.interface (https://pypi.python.org/pypi/zope.interface#download)