The Clean Architecture in Python
summary
Argues that applying Clean Architecture to Python means keeping IO at the top level and rescuing business logic into a pure functional core so functions take and return plain data. Demonstrates with a DuckDuckGo HTTP lookup using requests, contrasts dependency injection vs. mock.patch (mock now in the stdlib), shows 100% testable small functions, and cites two real projects—Skyfield (astronomy library) and Lucha (PDF tax filler)—as concrete, working examples of this pattern.
AI-written summary · about
chapters (10)
- 0:00Start
- 3:52a description
- 5:09Hiding complexity
- 12:06Our Architecture
- 13:03Testing
- 15:38Problems
- 20:19A symptom of coupling
- 34:35Knuth - Literate programming
- 43:09Python 2.4 (November 2004)
- 48:24Let's return to Wheeler
related talks
23mFrom Domain to Delivery: End-to-End Clean Architecture in Python
57mTechnology mix: From legacy to clean architecture
19mClean Architecture: A Solution to Improve System Maintainability
56mClean Architecture: Deep Dive
51mClean Architecture: A Deep Dive
01h 08mPython Design Patterns 1
51mClean Architecture: Why? How? For Whom?
36mGo Hygienic: Clean Architecture Fundamentals with GO Examples
