Serious Python. Development, Deployment, Support
240 pages
English
PDF
4.5

Serious Python. Development, Deployment, Support

Serious Python. Development, Deployment, Support

Author:

Year:

Summary:

Introduction

The book "Serious Python. Development, Deployment, Support" (original title Serious Python) by Julien Danjou was published in 2018 and immediately carved out a niche as a practical guide for those who already write confidently in Python and want to reach the next level. Unlike many books dedicated to the basics of the language, this work is aimed at experienced developers who face real-world challenges: architecture design, deployment configuration, performance optimization, working with large codebases. At 240 pages, the book is quite compact yet packed with specific advice and code examples.

What the Book is About

"Serious Python" does not rehash the documentation. Instead, the author shares proven practices he has accumulated over years of work at companies like Red Hat and OpenStack. The book covers a wide range of topics:

  • Code organization and choosing the right abstractions;
  • Managing dependencies and virtual environments;
  • Writing tests (unit tests, integration tests, mock);
  • Profiling and performance optimization;
  • Application deployment (packaging, CI/CD, containerization);
  • Working with databases and asynchronous code;
  • Python application security.

Each chapter contains not only theory but also specific examples that can be immediately applied to your own project. The author is not afraid to show the "dirty" details — for example, how to properly use decorators for logging or how to configure a linter to maintain a consistent code style within a team.

Who This Book is For

The book is aimed at intermediate and advanced Python developers. If you have already written several projects in Python, are familiar with OOP, but want to understand how to build production-ready systems — this book is for you. Beginners just starting to learn the language will find it challenging: the author assumes the reader already knows the syntax and basic constructs.

What the Reader Will Learn

After reading, you will be able to:

  • Design modular and testable applications;
  • Set up an efficient continuous integration pipeline;
  • Optimize bottlenecks using profilers;
  • Write secure code resistant to attacks;
  • Work with asynchronicity (asyncio) on a practical level;
  • Package and distribute your own libraries;
  • Use advanced features of decorators, context managers, and metaclasses.

Strengths

The main advantage of the book is its practical focus. Julien Danjou does not just list Python's capabilities but shows how to apply them in real projects. For example, the chapter on testing contains not only theory but also ready-made templates for pytest, tips on mocking external services, and strategies for testing asynchronous code. Another plus is relevance: although the book was published in 2018, most of the advice remains relevant today (Python 3.6+). The section on deployment deserves special mention: the author thoroughly explains how to build a package, configure a Docker image, and automate server deployment. This is rarely found in Python books.

The book is also written in a lively and clear language, without excessive academicism. The code examples are compact and accompanied by comments. Each chapter ends with a summary, which helps reinforce the material.

Who It Is Recommended For

I recommend "Serious Python" to everyone who wants to move from writing "just working code" to creating reliable, maintainable, and scalable systems. The book will be useful both for individual developers and for teams looking to adopt best practices. If you have already read "Fluent Python" by Luciano Ramalho and want to delve into applied aspects — this book is for you.

Recommendations