[PR #1711] Add mediatr library #1487

Open
opened 2025-11-06 13:17:16 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/1711
Author: @megafetis
Created: 1/11/2021
Status: 🔄 Open

Base: masterHead: master


📝 Commits (2)

  • 0ef8959 Add mediatr library and new category "Event aggregators, CQRS"
  • 9223273 Update 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?

  • 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


🔄 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>
GiteaMirror added the pull-request label 2025-11-06 13:17:16 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#1487