Skip to content

neromantic/corx

Repository files navigation

corx

License 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.

About

Python package to work with CQRS + ES architecture

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages