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 details)
File details
Details for the file pbus-1.0.1.tar.gz
.
File metadata
- Download URL: pbus-1.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.6.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb7fe544a8d91c03568f0b2e0297c0694afceea06bd940f3381ab793597aec95 |
|
MD5 | 8b23e7f286fe1d2db873cc676bac4f0a |
|
BLAKE2b-256 | f51d848c74aaaa93cc964966fd5468532992216da22f422dbc76c730567442e6 |