Share E-Book

Practical Python Backend Programming Build Flask and FastAPI applications, asynchronous programming (Tim Peters)(Z-Library)

Author

Rating No ratings yet

Log in to rate

Python
Language English

"Practical Python Backend Programming" is a quick pragmatic book that teaches both new and experienced developers the fundamentals of backend development with Python. All sorts of developers, from Python programmers to non-Python programmers, full stack developers, and web developers, will find what they need to know to become experts in backend programming in this entire book. The book covers key topics in backend development, including how to set up stable development environments and how to use virtual environments for better dependency management. With this book, readers will have a firm grasp of Python programming with an emphasis on backend tasks by learning the language's syntax, data structures, and functions. The book teaches you to create and launch dynamic web apps by providing an in-depth look at web frameworks such as Flask and FastAPI. It teaches SQLAlchemy for efficient data handling and advanced database integration, and it shows to improve applications with databases like PostgreSQL, MySQL, and MongoDB. Strategies for managing concurrent operations and improving performance are also covered in the book, along with asynchronous programming in Python. This book delves into various authentication methods, secure communication protocols such as HTTPS, and techniques to secure REST APIs. For efficient management of asynchronous tasks and real-time data processing, it also introduces message brokers such as RabbitMQ and Kafka. The book teaches its readers how to containerize apps and manage them on a large scale by integrating technologies like Docker and Kubernetes. It goes on to talk about how to use serverless architectures, how to use modern tools for continuous integration and deployment, and how to deploy apps to cloud platforms like AWS.

Format EPUB
Size 1.6 MB
206
Views

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
AI guide
【One-Line Pitch】 A fast, hands-on path from Python fundamentals to production-grade backend services, using Flask and FastAPI as the twin anchors. Best for developers who already know some Python and want a single guided tour through databases, async, security, containers, and cloud deployment. 【Book Arc】 - **Opening (~0%–10%)**: Sets up the backend mindset and the toolchain—what servers, databases, APIs, and frameworks actually do—then walks through Linux, virtual environments, CLI basics, Git, and a Python syntax/data-structure refresher. - **Early (~10%–20%)**: Builds a first real web app with Flask: routing, templates, static files, forms and uploads, SQLAlchemy integration, extensions, and a first deployment. - **Early–Middle (~20%–35%)**: Moves into advanced Flask (blueprints, larger app structure, Docker) and then transitions to FastAPI, contrasting the two frameworks on performance, type hints, dependency injection, and auto-generated docs. - **Middle (~35%–55%)**: Deepens data and concurrency work—MySQL/PostgreSQL/MongoDB choices, SQLAlchemy ORM patterns, asynchronous programming with asyncio, async endpoints and database access, WebSockets, and async best practices. - **Late (~55%–70%)**: Turns to user management and security: authentication design, OAuth and JWT, RBAC, REST API hardening, session management, 2FA, plus background task processing with Celery and message brokers like RabbitMQ. - **Ending (~70%–100%)**: Focuses on shipping and scaling—Docker and Kubernetes, CI/CD, Nginx as reverse proxy, SSL/HTTPS, horizontal vs. vertical scaling, serverless, and AWS deployment. 【Key Takeaways】 - **Backend work is a system, not just a framework** (Opening): The book frames servers, databases, APIs, and frameworks as interlocking components before touching code, which helps you reason about where a bug or bottleneck actually lives. - **Flask and FastAPI teach complementary lessons** (Early): Flask shows explicit, minimal routing and templating; FastAPI shows type-hint-driven validation, dependency injection, and automatic interactive docs—useful for choosing the right tool per project. - **SQLAlchemy is the connective tissue for data** (Early–Middle): ORM models, sessions, relationships, and query options recur across both frameworks, and the book ties them to real PostgreSQL, MySQL, and MongoDB trade-offs. - **Async is a design decision, not a syntax trick** (Middle): Event loops, coroutines, tasks, async database access, and WebSockets are presented with patterns for error handling, cancellation, and modularization—so you learn when async pays off. - **Security must be layered** (Late): Authentication, OAuth/JWT, RBAC, HTTPS, input validation, rate limiting, session handling, and 2FA are treated as separate concerns that stack rather than a single checkbox. - **Background work and messaging extend the request cycle** (Late): Celery with Redis and RabbitMQ as an alternative broker show how to move slow or scheduled work out of the request path. - **Deployment is part of development** (Ending): Docker, Kubernetes, CI/CD, Nginx, SSL, and AWS are woven into a continuous pipeline rather than bolted on at the end. - **A recurring "university application" example ties chapters together** (Middle–Ending): The same sample evolves from async endpoints to WebSockets, containerization, and Kubernetes, which makes the progression concrete. 【Reading Tips】 - Skim the Python refresher and CLI/Git sections if you are already comfortable; deep-read the Flask-to-FastAPI transition and the async chapters, where the conceptual shift is largest. - Treat the database chapters as decision guides: focus on when to pick PostgreSQL vs. MySQL vs. MongoDB, and how SQLAlchemy sessions and relationships behave, rather than memorizing syntax. - For security, read OAuth/JWT, RBAC, and 2FA together as one authentication story; the individual pieces make more sense as a pipeline. - Use the deployment chapters as a checklist: Dockerfile → image → container → orchestration → reverse proxy → SSL → CI/CD. Try each step on the sample app rather than reading passively. - Keep the book open beside an editor; most value comes from typing the examples and breaking them, especially the async and WebSocket samples. 【Coverage Limits】 The excerpts are heavily weighted toward tables of contents and chapter openings, so specific code details, benchmarks, and later-chapter depth are only partially visible. Where the excerpts do not cover a topic in detail, this guide describes the book's stated scope rather than verified content.

Passage locations

Excerpt 1
yment, and how to deploy apps to cloud platforms like AWS. Practical Python Backend Programming Practical Python Backend Programming Build Flask and FastAPI...
View in text
Excerpt 2
s with Docker Installing Docker Create a Dockerfile Create .dockerignore file Build Docker Image Run the Docker Container Testing the Docker Container Summar...
View in text
Excerpt 3
ervices Architecture How Asynchronous Programming Works?
View in text
Excerpt 4
eness Sample Program: Implementing RBAC Define Roles and Permissions Setting up the Environment Define User and Role Models Populate Roles Assign Roles to Us...
View in text

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List