Created by: megafetis
What is this Python project?
Mediator pattern implementation for python 3.6+. Supports pipline behaviors, async handling. Library uses type annotations to register handlers and behaviors and match queries to them.
What's the difference between this Python project and similar ones?
- python class as a Query (or Command) in CQRS
- python function or class as a handler of queries
- easy registering handlers and behaviors by decorator
- mediator.send(query) in synchronous mode
- await mediator.send_async(query) in async mode
- behavior wraps handler. For example for validation, speed measurement and others
Anyone who agrees with this pull request could submit an Approve review to it.