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 89ee3f2 10.2 KB Updated

File contents

adelabdelgawad/fullstack-agents/tree/main/plugins/fullstack-agents/skills/python-clean-architecture commit 89ee3f27cd

Frequently asked questions

npx skillmds@latest add adelabdelgawad/python-clean-architecture