Skip to main content

A simple async event bus in Python

Project description

Py Async Bus

A simple async event bus in Python


Install with pip:

$ pip install py-async-bus


from async_bus import EventBus

bus = EventBus()

async def subscriber(param):

bus.emit('event_name', param='test_param')

Disable subscriber

If you want to disable subscribers while testing for example, you can set the env ASYNC_BUS_ENABLE_SUBSCRIBERS to false.

$ ASYNC_BUS_ENABLE_SUBSCRIBERS=false python -m unittest


$ python -m unittest

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-async-bus, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size py-async-bus-0.0.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page