Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.22 KB

File metadata and controls

22 lines (14 loc) · 1.22 KB

python-cq

CI PyPI - Version PyPI - Downloads Ruff

An async-first Python library for structuring code around CQRS (Commands, Queries, Events) with pluggable dependency injection.

Documentation

The full guide lives at https://python-cq.remimd.dev. Start there: it covers installation, the message model, dispatching, bus configuration, command pipelines, and how to plug in a custom DI framework.

Installation

Requires Python 3.12 or higher.

pip install "python-cq[injection]"

The [injection] extra installs python-injection as the default DI backend (recommended). To bring your own DI framework, install python-cq without the extra and see the Custom DI adapter guide.