Clean Architectures in Python

A practical approach to better software design

Free Read

The clean architecture is the opposite of spaghetti code, where everything is interlaced and there are no single elements that can be easily detached from the rest and replaced without the whole system collapsing. The main point of the clean architecture is to make clear "what is where and why", and this should be your first concern while you design and implement a software system, whatever architecture or development methodology you want to follow.

To fully appreciate the book you need to know Python and be familiar with TDD, in particular with unit testing and mocks. Please refer to the series TDD in Python with pytest published on my blog if you need to refresh your knowledge about these topics.

After the two introductory parts that you are reading, chapter 1 goes through a 10,000 feet overview of a system designed with a clean architecture, while chapter 2 briefly discusses the components and the ideas behind this software architecture. Chapter 3 runs through a concrete example of clean architecture and chapter 4 expands the example adding a web application on top of it. Chapter 5 discusses error management and improvements to the Python code developed in the previous chapters. Chapters 6 and 7 show how to plug different database systems to the web service created previously, and chapter 8 wraps up the example showing how to run the application with a production-ready configuration.

Conditions of Use

CC BY-NC-SAThis book is licensed under a Creative Commons License (CC BY-NC-SA). You can download the ebook Clean Architectures in Python for free.

Title
Clean Architectures in Python
Subtitle
A practical approach to better software design
Publisher
Author(s)
Published
2023-05-10
Edition
1
Format
eBook (pdf, epub, mobi)
Pages
153
Language
English
License
CC BY-NC-SA
Book Homepage
Free eBook, Errata, Code, Solutions, etc.
Related Books