Learn asyncio
Python's built-in framework for concurrent I/O with async and await
asyncio is the standard library's event loop and toolkit for writing concurrent code with async/await. It lets one thread juggle thousands of network connections, API calls or subprocesses, and it underpins async web frameworks such as FastAPI, aiohttp and many database drivers. Learn it to write fast I/O-bound programs and to understand what async libraries do under the hood.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know