Installation¶
Python 3.10+ is required.
Extras (5.0+)¶
| Extra | Provides |
|---|---|
pydantic |
PydanticRequest, PydanticResponse, Pydantic*Event |
sqlalchemy |
SQLAlchemy outbox + saga storage |
sqlmodel |
SQLModel outbox + saga storage (same behavior as SQLAlchemy; 5.1+) |
kafka |
Kafka broker (aiokafka) |
rabbit |
AMQP broker |
protobuf |
Protobuf serializers |
aiobreaker |
Circuit breaker helpers |
examples |
FastAPI / FastStream sample stack |
pip install "python-cqrs[pydantic,sqlalchemy]"
pip install "python-cqrs[sqlmodel]"
pip install "python-cqrs[kafka]"
Dataclass-based Request / Response / Event types are the defaults. See Migration 4→5 for the full breaking-change list. Outbox and saga storage with SQLAlchemy or SQLModel is described in ORM.