Maybe something like Django signals that doesn't depend on Django.
Django signals can be used to clear cache on saving a model, I'm trying to do the same.
Of the four, eventlet is probably the quickest to pick up and easiest to use - you don't have to modify a lot of your code to make it event-based in the model of eventlet. It basically does some wrapping of the built-in libraries of python, and can do some runtime monkey patching of your code to make it event-based.
It looks like you want a library like PyDispatcher for signal registration and dispatching rather than an event-loop for networking.
Twisted is for event-driven networking.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With