A simple async event bus in Python
Project description
Py Async Bus
A simple async event bus in Python
Installing
Install with pip:
$ pip install py-async-bus
Usage
from async_bus import EventBus
bus = EventBus()
@bus.subscribe('event_name')
async def subscriber(param):
print(param)
bus.emit('event_name', param='test_param')
Tests
$ python -m unittest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-async-bus-0.0.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for py_async_bus-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405c5d13d2ab017b19b2af69e7d22311884cd55b4255bce450eba4b97c25083d |
|
MD5 | 7f1d381849be4457314e3a792e0f8cea |
|
BLAKE2b-256 | 7b56c5fcdbafcb9a1ecb6e2cfd03b717e7a6bbdcce74e15f8cc92391906f9638 |