asyncio Recipes - Mohamed Mustapha Tahrioui

asyncio Recipes (eBook)

A Problem-Solution Approach
eBook Download: PDF
2019 | 1st ed.
XXVI, 315 Seiten
Apress (Verlag)
978-1-4842-4401-2 (ISBN)
Systemvoraussetzungen
36,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
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.



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.

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 LearnDiscover quirky APIs such as the event loop policiesWrite asyncio code with native coroutines  Use the ast module to find legacy asyncio codeWork with contextvars See what a async context manager is and why a lot of asyncio APIs use themWho This Book Is ForExperienced Python developers or hobbyists who want to understand asyncio and speed up their applications by adding concurrency to their toolkit.
Erscheint lt. Verlag 21.5.2019
Zusatzinfo XXVI, 315 p. 5 illus.
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Schlagworte aiohttp • API • components • Concurrency • Debugging • Error Handling • Flask • gather • libraries • Python asyncio • stdlib • Testing • Threads
ISBN-10 1-4842-4401-X / 148424401X
ISBN-13 978-1-4842-4401-2 / 9781484244012
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 2,6 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das umfassende Handbuch

von Johannes Ernesti; Peter Kaiser

eBook Download (2023)
Rheinwerk Computing (Verlag)
31,43
Das Handbuch für Webentwickler

von Philip Ackermann

eBook Download (2023)
Rheinwerk Computing (Verlag)
34,93
Deterministische und randomisierte Algorithmen

von Volker Turau; Christoph Weyer

eBook Download (2024)
De Gruyter (Verlag)
64,95