https://github.com/100nm/python-cq
Lightweight CQRS library.
https://github.com/100nm/python-cq
cqrs fastapi mypy python type-hints typed
Last synced: 7 months ago
JSON representation
Lightweight CQRS library.
- Host: GitHub
- URL: https://github.com/100nm/python-cq
- Owner: 100nm
- Created: 2024-10-06T09:23:03.000Z (over 1 year ago)
- Default Branch: prod
- Last Pushed: 2025-06-15T11:25:37.000Z (7 months ago)
- Last Synced: 2025-06-15T12:25:03.371Z (7 months ago)
- Topics: cqrs, fastapi, mypy, python, type-hints, typed
- Language: Python
- Homepage:
- Size: 294 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-cq
[](https://github.com/100nm/python-cq)
[](https://pypi.org/project/python-cq/)
[](https://github.com/astral-sh/ruff)
Lightweight library for separating Python code according to **Command and Query Responsibility Segregation** principles.
Dependency injection is handled by [python-injection](https://github.com/100nm/python-injection).
Easy to use with [FastAPI](https://github.com/fastapi/fastapi).
## Installation
⚠️ _Requires Python 3.12 or higher_
```bash
pip install python-cq
```
## Resources
* [**Writing Application Layer**](https://github.com/100nm/python-cq/tree/prod/documentation/writing-application-layer.md)
* [**Pipeline**](https://github.com/100nm/python-cq/tree/prod/documentation/pipeline.md)
* [**FastAPI Example**](https://github.com/100nm/python-cq/tree/prod/documentation/fastapi-example.md)