asyncio Recipes: A Problem-Solution Approach
Book information
Description
Get the most out of asyncio and find solutions to your most troubling Python programming problems. This book offers a pragmatic collection of recipes by going beyond online resources and docs to provide guidance on using this complex library. As such, you’ll see how to improve application performance and run computationally intensive programs faster. asyncio Recipes starts with examples illustrating the primitives that come with the asyncio library, and explains how to determine if asyncio is the right choice for your application. It shows how to use asyncio to yield performance gains without multiple threads, and identifies common mistakes and how to prevent them. Later chapters cover error-handling, testing, and debugging. By the end of this book, you'll understand how asyncio runs behind the scenes, and be confident enough to contribute to asyncio-first projects. What You Will Learn Discover quirky APIs such as the event loop policies Write asyncio code with native coroutines Use the ast module to find legacy asyncio code Work with contextvars See what a async context manager is and why a lot of asyncio APIs use them Who This Book Is For Experienced Python developers or hobbyists who want to understand asyncio and speed up their applications by adding concurrency to their toolkit.
Similar books
Foundations of PyGTK Development: GUI Creation with Python, 2nd Edition
2019 · EPUB
Game Development Using Python
2018 · PDF
Python for Scientists, 2nd Edition
2017 · AZW3
Modern Programming Made Easy: Using Java, Scala, Groovy, and JavaScript, 2nd Edition
2020 · PDF
Modern Programming Made Easy: Using Java, Scala, Groovy, and JavaScript, 2nd Edition
2020 · EPUB
Beginning PyQt: A Hands-On Approach to GUI Programming with PyQt6, 2nd Edition
2022 · EPUB
Python Challenges: 100 Proven Programming Tasks Designed to Prepare You for Anything
2022 · EPUB
Practical MATLAB Modeling: Programming Ordinary and Partial Differential Equations with Simulink
2020 · EPUB