Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Clean Architecture with Python

You're reading from   Clean Architecture with Python Implement scalable and maintainable applications using proven architectural principles

Arrow left icon
Product type Paperback
Published in Jun 2025
Publisher Packt
ISBN-13 9781836642893
Length 362 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sam Keen Sam Keen
Author Profile Icon Sam Keen
Sam Keen
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Foundations of Clean Architecture in Python
2. Clean Architecture Essentials: Transforming Python Development FREE CHAPTER 3. SOLID Foundations: Building Robust Python Applications 4. Type-Enhanced Python: Strengthening Clean Architecture 5. Part 2: Implementing Clean Architecture in Python
6. Domain-Driven Design: Crafting the Core Business Logic 7. The Application Layer: Orchestrating Use Cases 8. The Interface Adapters Layer: Controllers and Presenters 9. The Frameworks and Drivers Layer: External Interfaces 10. Implementing Test Patterns with Clean Architecture 11. Part 3: Applying Clean Architecture in Python
12. Adding Web UI: Clean Architecture’s Interface Flexibility 13. Implementing Observability: Monitoring and Verification 14. Legacy to Clean: Refactoring Python for Maintainability 15. Your Clean Architecture Journey: Next Steps 16. Other Books You May Enjoy
17. Index

ISP: tailoring interfaces to clients

As we delve deeper into the SOLID principles, we’ve seen how SRP promotes focused classes and OCP enables extensibility. Now, we’ll turn our attention to the interfaces these classes expose to the world. The Interface Segregation Principle (ISP) (https://en.wikipedia.org/wiki/Interface_segregation_principle) guides us in creating lean, purpose-specific interfaces that cater to the exact needs of their clients. This principle is crucial for developing flexible, modular Python code that’s easy to understand and maintain.

ISP not only builds upon the concept of single responsibility introduced by SRP but also applies it at the interface level. It advocates for designing interfaces that are narrowly focused on specific tasks, rather than interfaces that attempt to encompass too many responsibilities. This approach leads to more flexible and maintainable systems as clients only depend on the methods they actually use.

To...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime
Visually different images