Don’t miss your chance to get Apress Access for only $99 through June 26, 2019! Subscribe now >>

asyncio Recipes

A Problem-Solution Approach

Authors: Tahrioui, Mohamed Mustapha

Download source code Free Preview
  • A hands-on guide focused on explaining asyncio internals and developing working applications
  • Entry-level coverage of asyncio that presumes experience with Python fundamentals and ramps up quickly
  • Includes illustrative examples and full-chapter labs to challenge readers' understanding of concepts
see more benefits

Buy this book

eBook 22,99 €
price for China (P.R.) (gross)
  • ISBN 978-1-4842-4401-2
  • Digitally watermarked, DRM-free
  • Included format: PDF, EPUB
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover 27,99 €
price for China (P.R.) (gross)
  • ISBN 978-1-4842-4400-5
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
About this book

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 authors

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.

Table of contents (10 chapters)

Table of contents (10 chapters)

Buy this book

eBook 22,99 €
price for China (P.R.) (gross)
  • ISBN 978-1-4842-4401-2
  • Digitally watermarked, DRM-free
  • Included format: PDF, EPUB
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover 27,99 €
price for China (P.R.) (gross)
  • ISBN 978-1-4842-4400-5
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.

Services for this book

Loading...

Bibliographic Information

Bibliographic Information
Book Title
asyncio Recipes
Book Subtitle
A Problem-Solution Approach
Authors
Copyright
2019
Publisher
Apress
Copyright Holder
Mohamed Mustapha Tahrioui
eBook ISBN
978-1-4842-4401-2
DOI
10.1007/978-1-4842-4401-2
Softcover ISBN
978-1-4842-4400-5
Edition Number
1
Number of Pages
XXVI, 315
Number of Illustrations
5 b/w illustrations
Topics