A command and query mediator for Python.
Project description
Medyator
In-process messaging in Python.
Currently supports commands and queries using kink di.
Installation
pip install medyator kink
How to use
Container.add_medyator() from the medyator.kink module connects medyator with kink as the serviceprovider.
from medyator import Medyator
from kink import di
import medyator.kink
di.add_medyator()
medyator = di[Medyator]
medyator.send_command(AddAddressCommand("test"))
Look at the tests for more examples.
Planned Features
Feature | Status |
---|---|
Async | planned |
Notifications | planned |
Pipelines | planned |
Feedback
If you have any feedback, please reach out to us at misdirection@live.de
Acknowledgements
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
medyator-0.3.2.tar.gz
(5.4 kB
view hashes)