Skip to content
CAI
Produce a survey ↗Verify a survey

pypatterns/python-cqrs

This system is a Python-based CQRS (Command Query Responsibility Segregation) framework designed for building distributed, event-driven architectures. It provides a comprehensive infrastructure for managing commands, queries, and domain events through mediators, dispatchers, and event emitters. The framework supports complex workflows via the Saga pattern, ensuring reliable message delivery with outbox-based persistence and automatic compensation. It integrates with message brokers like Kafka and AMQP, supports dependency injection, and includes middleware for cross-cutting concerns.

52.9

Adequate · 4 August 2026

15k

lines of production code

Python

primary language

1

bus factor · 12 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2024 · CQRS framework implementation

The project introduced a comprehensive CQRS framework, including components for request and event handling, message brokers, and saga support. The period also established development tooling, testing infrastructure, and example scripts to support the new architecture.

18 changes

2026 · Saga pattern implementation

This period focused on introducing the Saga pattern for workflow orchestration, including a mediator, fallback mechanisms, and circuit breakers. The work also established a storage abstraction supporting both in-memory and SQLAlchemy backends, accompanied by comprehensive unit and benchmark tests.

4 changes

CAI lens gauges

Survey your own repository

pypatterns/python-cqrs was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 4 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 22ec56cad0 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.19. Score the same commit under that rubric and you get the same number.
CAI link cards