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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/1711
**Author:** [@megafetis](https://github.com/megafetis)
**Created:** 1/11/2021
**Status:** 🔄 Open
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (2)
- [`0ef8959`](https://github.com/vinta/awesome-python/commit/0ef895950fcc37914a0b4ebb3e3c02de68ca911b) Add mediatr library and new category "Event aggregators, CQRS"
- [`9223273`](https://github.com/vinta/awesome-python/commit/922327393d0b3189d2cee706a5c9d32c2c91ec0e) Update README.md
### 📊 Changes
**1 file changed** (+7 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+7 -0)
</details>
### 📄 Description
## 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.
https://github.com/megafetis/mediatr_py
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/1711
Author: @megafetis
Created: 1/11/2021
Status: 🔄 Open
Base:
master← Head:master📝 Commits (2)
0ef8959Add mediatr library and new category "Event aggregators, CQRS"9223273Update README.md📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
README.md(+7 -0)📄 Description
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?
Anyone who agrees with this pull request could submit an Approve review to it.
https://github.com/megafetis/mediatr_py
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.