Python Clean Architecture

Clean Architecture + DDD for Python (FastAPI) microservices — pure domain layer with value objects and entities, application use cases owning transactions, repository ports as Protocols, SQLAlchemy adapters in infrastructure, and a four-stage error model. Use when creating or structuring a NEW Python microservice or applying DDD to Python. Do not use for the existing simplified FastAPI pattern (use fastapi — codebase-scanning decides which applies) and never for Rust services (use rust-clean-architecture).

adelabdelgawad Updated 1 repo stars

File contents

adelabdelgawad/fullstack-agents commit 89ee3f27cd

Frequently asked questions

npx get-skill add adelabdelgawad/python-clean-architecture