-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Clean Architecture with Python
By :
Our task management system’s CLI (implemented in Chapter 7), demonstrates Clean Architecture’s careful separation between core business logic and user interfaces. This separation wasn’t just good practice—it was strategic preparation for exactly what we’ll accomplish in this chapter: adding a completely new user interface while preserving our existing functionality.
To implement our web interface, we’ll use Flask—a lightweight and flexible Python web framework. Flask’s explicit request handling and straightforward application structure make it ideal for demonstrating Clean Architecture’s boundaries. Its minimal core and extensive ecosystem of optional extensions align well with Clean Architecture’s preference for explicit dependencies. While the patterns we’ll explore would work equally well with Django...