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
Asynchronous Programming in Python

You're reading from   Asynchronous Programming in Python Apply asyncio in Python to build scalable, high-performance apps across multiple scenarios

Arrow left icon
Product type Paperback
Published in Nov 2025
Publisher Packt
ISBN-13 9781836646617
Length 202 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nicolas Bohorquez Nicolas Bohorquez
Author Profile Icon Nicolas Bohorquez
Nicolas Bohorquez
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Synchronous and Asynchronous Programming Paradigms 2. Identifying Concurrency and Parallelism FREE CHAPTER 3. Generators and Coroutines 4. Implementing Coroutines with Asyncio and Trio 5. Assessing Common Mistakes in Asynchronous Programming 6. Testing and Asynchronous Design Patterns 7. Asynchronous Programming in Django, Flask and Quart 8. Asynchronous Data Access 9. Asynchronous Data Pipelines 10. Asynchronous Computing with Notebooks 11. Unlock Your Exclusive Benefits 12. Other Books You May Enjoy
13. Index

Preface

Python is a versatile and popular programming language. Its adoption has been underpinned by the community-led development of a large number of powerful and well-documented libraries, with the result that it is now widely used across a variety of domains including data science, data engineering, scientific computing, artificial intelligence and more.

In many application domains, the scalability and performance of Python-based solutions can be significantly boosted by applying asynchronous programming techniques – so much so that it could be argued that asynchronous programming is now essential for modern Python development. By allowing multiple operations to run simultaneously it can dramatically reduce execution time, especially for I/O-bound tasks, enabling solutions to handle increasing demands efficiently.

Nevertheless, not all workloads lend themselves to processing by asynchronous methods; for some tasks performance penalties may be incurred, or solutions just become more complicated than necessary. The effective application of asynchronous programming techniques therefore requires the developer to possess a secure understanding of the basic underlying concepts, and knowledge of how constraints on the application of asynchronous approaches come about. The aim of this book is to give you, the reader, that knowledge and understanding, so that you can make effective use of the power of asynchronous programming in your own projects.

The book effectively consists of two blocks of chapters. In Chapters 1 to 6 we look at asynchronous programming fundamentals and core mechanisms like asyncio and Trio, and also consider various pitfalls and their avoidance, and how to measure and test our asynchronous solutions. Then in Chapters 7 to 10 asynchronous techniques are applied to real-world scenarios involving web frameworks, databases, data pipelines, and simulations.

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Asynchronous Programming in Python
Next Section arrow right
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 $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon