Skip to content

100nm/python-cq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.