Book Name: [PDF] Clean Architectures in Python
Category: Python Programming
Language: English
Format: PDF
Free Download: Available

Free Download Clean Architectures in Python A practical approach to better software design PDF Book 

Clean Architectures in Python pdf free download

Book Description

The clean architecture is the opposite of spaghetti code, where everything is interlaced and no single element can be easily detached from the rest and replaced without the whole system collapsing. The main point of 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 Test-Driven Development (TDD), in particular with unit testing and mocks.

Table of contents :

Clean Architectures in Python
Table of Contents
What is a software architecture?
Why is it called “clean”?
Why “architectures”?
Why Python?
About the book
Prerequisites and structure of the book
Typographic conventions
Why this book comes for free
Submitting issues or patches
About the author
Changes in the second edition
Chapter 1. A day in the life of a clean system
1.1. The data flow
1.2. Advantages of a layered architecture
Chapter 2. Components of a clean architecture
2.1. Divide et impera
2.2. Data types
2.3. The main four layers
2.4. Communication between layers
2.5. APIs and shades of grey
Chapter 3. A basic example
3.1. Project setup
3.2. Domain models
3.3. Serializers
3.4. Use cases
3.5. The storage system
3.6. A command-line interface
3.7. Conclusions
Chapter 4. Add a Web application
4.1. Flask setup
4.2. Test and create an HTTP endpoint
4.3. WSGI
4.4. Conclusions
Chapter 5. Error management
5.1. Request and responses
5.2. Basic structure
5.3. Requests and responses in a use case
5.4. Request validation
5.5. Responses and failures
5.6. Error management in a use case
5.7. Integrating external systems
5.8. Conclusions
Chapter 6. Integration with a real external system – PostgreSQL
6.1. Decoupling with interfaces
6.2. A repository based on PostgreSQL
6.3. Label integration tests
6.4. Create SQLAlchemy classes
6.5. Orchestration management
6.6. Database fixtures
6.7. Integration tests
6.8. Conclusions
Chapter 7. Integration with a real external system – MongoDB
7.1. Fixtures
7.2. Docker Compose configuration
7.3. Application configuration
7.4. Integration tests
7.5. The MongoDB repository
7.6. Conclusions
Chapter 8. Run a production-ready system
8.1. Build a web stack
8.2. Connect to a production-ready database
8.3. Conclusions
Appendix A: Changelog

Clean Architectures in Python A practical approach to better software design

Author(s): Leonardo Giordani

Publisher: Leanpub book, Year: 2022




Buy From Amazon

Related More Books
Thanks For Visiting Our Website To Support Us, Keep Share On Social Media.