Clean Architecture with Python
eBook - ePub

Clean Architecture with Python

Implement scalable and maintainable applications using proven architectural principles

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Clean Architecture with Python

Implement scalable and maintainable applications using proven architectural principles

About this book

Future-proof your Python projects by creating flexible code that adapts to changing requirements with the help of this hands-on guide to achieving Clean Architecture

Key Features

  • Learn Clean Architecture through a series of real-world, code-centric examples and exercises
  • Optimize system componentization, significantly reducing maintenance burden and overall complexity
  • Apply Clean Architecture concepts confidently to new Python projects and legacy code refactoring
  • Purchase of the print or Kindle book includes a free PDF eBook

Book Description

In the rapidly evolving tech industry, software applications struggle to keep pace with changing business needs, leaving developers grappling with complex codebases that resist change, ultimately reducing productivity and increasing technical debt. Clean Architecture with Python offers a powerful approach to address these challenges. Drawing from his extensive experience architecting cloud-native systems, Sam Keen helps you transform complex architectural challenges into digestible, implementable solutions. This book teaches essential principles for effective development, emphasizing the Pythonic implementation of Clean Architecture. Through practical examples, you'll learn how to create modular, loosely coupled systems that are easy to understand, modify, and extend. The book covers key concepts such as the Dependency Rule, separation of concerns, and domain modeling, all tailored for Python development. By the end of this book, you'll be able to apply Clean Architecture principles effectively in your Python projects. Whether you're building new systems or managing existing ones, you'll have the skills to create more maintainable and adaptable applications. This approach will enhance your ability to respond to changing requirements, setting you up for long-term success in your development career.

What you will learn

  • Apply Clean Architecture principles idiomatically in Python
  • Implement domain-driven design to isolate core business logic
  • Apply SOLID principles in a Pythonic context to improve code quality
  • Structure projects for maintainability and ease of modification
  • Develop testing techniques for cleanly architected Python applications
  • Refactor legacy Python code to adhere to Clean Architecture principles
  • Design scalable APIs and web applications using Clean Architecture

Who this book is for

If you're a Python developer struggling with maintaining and extending complex codebases, this book is for you. It's ideal for intermediate developers looking to enhance their architectural skills as well as senior developers seeking to formalize their knowledge of Clean Architecture in Python. While beginners can benefit, prior experience with Python and object-oriented programming is recommended.

]]>

Information

Year
2025
eBook ISBN
9781836642886

Table of contents

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

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Clean Architecture with Python by Sam Keen in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Python. We have over 1.5 million books available in our catalogue for you to explore.