Edacious an Event Derive Architecture framework
Project description
Edacious an Event Derive Architecture framework
Implementing an EDA usually requires a queue mechanism. Currently support Redis streams and Amazon Web Services SQS.
Event must be a dict that contain data to be processed.
Every event must have an event type (str) attribute, reserve key is event-type
.
To process an event the event type has to be associated to one or more event handlers.
Event handler is a function that receive an event (dict) and process it, here is an example.
@event_handler(event_type='hello-world')
def my_handler(event: dict):
print(event)
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
edacious-0.0.1.tar.gz
(3.7 kB
view hashes)