A simple application layer event-bus lib.
Project description
pbus
A simple application layer event-bus lib.
Install
pip install pbus
Useage
- Use with Redis
Subscriber
import pbus
bus = pbus.RedisBus(host='127.0.0.1')
ps = bus.subscriber('test')
for data in ps.listen():
print(data)
Publish
import pbus
bus = pbus.RedisBus(host='127.0.0.1')
bus.publish('test', 'Hello')
Click to view more information!
CHANGES
1.0.0
- first version
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pbus-1.0.1.tar.gz
(3.8 kB
view hashes)