Skip to main content

Micropython compatible producer/subscriber event bus system with optional threading.

Project description


Micropython producer/subscriber event system with optional threading

Note that this package is early stages so could have undocumented bugs.

The not-so-magic school bus


pip3 install micropython-event-bus

or Clone this repository into your project:

git clone


from micropython_event_bus import Producer, subscribe

# setup simple producer
my_producer = Producer(name="my first producer")

# create subscriber
# with decorator
def my_subscriber(*args, **kwargs):
    print('I got a message!')

# or by calling the producer subscribe method
def my_second_subscriber(*args, **kwargs):
    print('I also got a message!')


# emit event

# from producer via __call__ method
# or by calling emit directly

For more examples please refer to the examples


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.



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

micropython_event_bus-0.0.4.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page