Skip to content

ysobolev/python-pusher-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-pusher-client

Autobahn backed python pusher client

Usage:

import sys
from twisted.internet import reactor
from twisted.python import log

from pusher_client import PusherClient
bitstamp = PusherClient("de504dc5763aeef9ff52")

def run(event, data):
    def on_data(channel, event, data):
        print(data)

    channel = bitstamp.subscribe("order_book")
    channel.bind("data", on_data)

bitstamp.on("pusher:connection_established", run)

log.startLogging(sys.stdout)
reactor.run()

About

Autobahn backed python pusher client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages