Skip to main content

A command and query mediator for Python.

Project description

Medyator

PyPI version

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


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)

Uploaded Source

Built Distribution

Medyator-0.3.2-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page