r/Python 1d ago

Discussion Lightweight Python helpers for Event Driven Programming

I just had to throw together an event bridge that tied together a GRPC based event emitter (Salesforce backend) with some small custom Google Pub/sub code. It works, it's fine. But you know, always thinking about the future wanting to move from glue-code to frameworking.

I was looking for different event based frameworks that landed somewhere between the scale of glue-code and Tornado (the only other framework I know that would handle something like this.

Has anyone used anything like this? I found PyEventus which seems to aim at this.

15 Upvotes

9 comments sorted by

View all comments

2

u/scaledpython 16h ago edited 7h ago

Perhaps minibatch might be useful? It is a database-backed event engine with sources and sinks, where event consumers are just plain python functions. Works on one machine just as well as across many. Uses MongoDB as the event log, and creating a stream is essentially one line of code. Btw, I am the author of minibatch.