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.
About the Author Mohamed T.
is a developer of 7 years and an enthusiastic Pythonista.
Using asyncio since it's advent in the 3.
4 Python version as the backbone of the Smartspeaker project of the Deutsche Telekom he is well suited to show how to use asyncio in a production setting.
When he is not hacking on asyncio (or bugging Yuri with his asyncio questions) he prefers to familiarise himself with the Yocto build system or read kernel changelogs.
APress este o companie de editură bine-cunoscută specializată în cărți și cărți electronice axate în primul rând pe subiecte legate de tehnologie.
Fondată în 1999, APress s-a impus ca un editor lider în domeniile informatică, tehnologiei informației, programare, dezvoltare web și subiecte conexe.
Compania publică o gamă largă de titluri care acoperă diverse limbaje de programare, metodologii de dezvoltare software, securitate cibernetică, știință a datelor, inteligență artificială, învățare automată, cloud computing, dezvoltare de aplicații mobile și multe altele.
APress se adresează atât profesioniștilor de nivel începător, cât și de nivel avansat, oferind cărți potrivite pentru auto-studiu, referință și dezvoltare profesională.
APress este cunoscut pentru angajamentul său de a publica conținut de înaltă calitate, practic și autorizat, creat de experți în domeniile lor respective.
Cărțile companiei oferă adesea informații tehnice aprofundate, exemple din lumea reală, studii de caz și tutoriale practice, făcându-le resurse valoroase pentru dezvoltatorii de software, profesioniștii IT, studenții și entuziaștii deopotrivă.
Pe lângă publicațiile tipărite, APress oferă, de asemenea, cărți electronice și conținut digital prin intermediul site-ului său web și al diferitelor platforme online, oferind cititorilor acces convenabil la biblioteca sa vastă de cărți tehnice.
În general, APress și-a câștigat o reputație de excelență în industria de publicare tehnologică, lansând continuu titluri relevante și oportune care se adresează nevoilor în evoluție ale profesioniștilor și cursanților din comunitatea tehnologică.