semvec/pypi-packages huggingface dataset:
corx 1.0.0b3
Add a short description here!
License: MIT
Requires Python: >=3.9
Keywords: Python package to work with CQRS + ES architecture

=======
corx
=======

.. image:: https://img.shields.io/badge/License-MIT-blue.svg
    :target: https://opensource.org/licenses/MIT
    :alt: License

.. image:: https://badge.fury.io/py/corx.svg
    :target: https://badge.fury.io/py/corx
    :alt: PyPI version



corx is a Python package designed to simplify the implementation of the Command Query Responsibility Segregation (CQRS) and Event Sourcing (ES) patterns. It provides essential components and utilities for developing systems that adhere to these patterns.

Installation
------------

Install corx using pip::

    pip install corx


Architecture
------------

The core components of the corx architecture include:

- **Command**: Represents a request or intention to change the state of the system.

- **CommandHandler**: Handles specific types of commands, executing the logic associated with each command.

- **Event**: Represents an occurrence or state change in the system, often triggered by the successful handling of a command.

- **EventListener**: Reacts to specific events by executing custom logic.

- **ProcessManager**: Orchestrates complex workflows by reacting to events and potentially issuing new commands.

- **Dispatcher**: Responsible for handling and routing commands or events to the appropriate handlers.