Using Asyncio in Python

Understanding Python’s Asynchronous Programming Features

  • 4.0 (2 ratings) ·
  • 1 Want to read
  • 3 Have read
Locate

My Reading Lists:

Create a new list

Check-In

×Close
Add an optional check-in date. Check-in dates are used to track yearly reading goals.
Today

  • 4.0 (2 ratings) ·
  • 1 Want to read
  • 3 Have read

Buy this book

Last edited by Freso
August 22, 2024 | History

Using Asyncio in Python

Understanding Python’s Asynchronous Programming Features

  • 4.0 (2 ratings) ·
  • 1 Want to read
  • 3 Have read

This edition doesn't have a description yet. Can you add one?

Publish Date
Publisher
O'Reilly
Language
English
Pages
166

Buy this book

Edition Availability
Cover of: Using Asyncio in Python
Using Asyncio in Python: Understanding Python’s Asynchronous Programming Features
2020, O'Reilly
ebook in English
Cover of: Using Asyncio in Python
Using Asyncio in Python: Understanding Python's Asynchronous Programming Features
2020, O'Reilly Media, Incorporated
in English

Add another edition?

Book Details


First Sentence

"The most common question I receive about Asyncio in Python 3 is this: “What is it, and what do I do with it?”"

Table of Contents

Preface.
Page vii
1. Introducing Asyncio
Page 1
The Restaurant of ThreadBots
Page 1
Epilogue
Page 6
What Problem Is Asyncio Trying to Solve?
Page 6
2. The Truth About Threads
Page 9
Benefits of Threading
Page 10
Drawbacks of Threading
Page 11
Case Study: Robots and Cutlery
Page 14
3. Asyncio Walk-Through
Page 21
Quickstart
Page 22
The Tower of Asyncio
Page 28
Coroutines
Page 31
* The New async def Keywords
Page 32
* The New await Keyword
Page 34
Event Loop
Page 37
Tasks and Futures
Page 39
* Create a Task? Ensure a Future? Make Up Your Mind!
Page 42
Async Context Managers: async with
Page 46
* The contextlib Way
Page 47
Async Iterators: async for
Page 50
Simpler Code with Async Generators
Page 53
Async Comprehensions
Page 55
Starting Up and Shutting Down (Gracefully!)
Page 57
* What Is the return_exceptions=True for in gather()?
Page 61
* Signals
Page 63
* Waiting for the Executor During Shutdown
Page 68
4. 20 Asyncio Libraries You Aren’t Using (But…Oh, Never Mind)
Page 75
Streams (Standard Library)
Page 76
* Case Study: A Message Queue
Page 76
* Case Study: Improving the Message Queue
Page 84
Twisted
Page 88
The Janus Queue
Page 91
aiohttp
Page 92
* Case Study: Hello World
Page 93
* Case Study: Scraping the News
Page 93
ØMQ (ZeroMQ)
Page 98
* Case Study: Multiple Sockets
Page 99
* Case Study: Application Performance Monitoring
Page 102
asyncpg and Sanic
Page 110
* Case Study: Cache Invalidation
Page 115
Other Libraries and Resources
Page 126
5. Concluding Thoughts
Page 129
A. A Short History of Async Support in Python
Page 131
B. Supplementary Material
Page 135
Index.
Page 145

Edition Notes

Published in
Sebastopol, CA, USA
Copyright Date
2020

Contributors

Acquisition Editor
Jessica Haberman
Development Editor
Corbin Collins
Production Editor
Beth Kelly
Copy Editor
Rachel Head
Proofreader
Sharon Wilkey
Indexer
Ellen Troutman-Zaig
Interior Design
David Futato
Cover Design
Karen Montgomery
Illustrator
Rebecca Demarest

The Physical Object

Format
ebook
Pagination
x, 152p.
Number of pages
166

ID Numbers

Open Library
OL53448426M
ISBN 13
9781492075332

Community Reviews (1)

Feedback?
Pace 1 Medium paced 100% Clarity 1 Well organized 50% Clearly written 50% Difficulty 1 Intermediate 100% Breadth 1 Focused 50% Introductory 50% Genres 1 How-to 33% Nonfiction 33% Technical 33% Mood 1 Informative 100% Impressions 1 Recommend 100% Length 1 Medium 100% Credibility 1 Accurate 50% Outdated 50% Features 1 Table of contents 20% Index 20% Illustrations 20% Appendix 20% Chapters 20% Style 1 Technical 100% Purpose 1 How-to 33% Problem solving 33% Learn about 33%

History

Download catalog record: RDF / JSON
August 22, 2024 Edited by Freso Edited without comment.
August 26, 2020 Created by ImportBot import new book