0:00 / 0:00
Demystifying AsyncIO: Building Your Own Event Loop in Python — Arthur Pastel
EuroPython Conference
36K subscribers • 31 videos on Hallway • Conference channel
- One of the most-watched uploads on EuroPython, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
- Presented by Arthur Pastel
Advanced. Deep dive for people who know the field.
13K views2 years ago
Programming languagesSystems programmingPythonConcurrency and parallelismNetworking and protocols
Arthur Pastel demystifies Python's AsyncIO by building a custom event loop from scratch capable of running a FastAPI application.
[EuroPython 2024 — Forum Hall on 2024-07-10] Demystifying AsyncIO: Building Your Own Event Loop in Python by Arthur Pastel ep2024.europython.eu/session/demystifying-asyncio-building-y… **AsyncIO** has emerged as a vital tool in Python's ecosystem, particularly in web development, IO-bound tasks, and network programming. However, its internal mechanics often remain obscure, even to seasoned Python developers. This talk aims to demystify AsyncIO by guiding you through creating your own event loop in Python, culminating in running a FastAPI application with it. In this talk, we’ll build an event loop from scratch in Python, capable of running an HTTP server through a FastAPI application. **Plan:** - **Introduction to AsyncIO** - **Core Concepts:** Deep dive into Event loop, Futures, Tasks, and coroutines - **Hands-On Building:** Constructing an event loop from scratch - Scheduling callbacks - Executing tasks and coroutines - Handling network calls - **Practical Application:** Running a FastAPI HTTP server with our loop - **Performance Insights:** Comparing our event loop with the fastest ones By the end of this talk, you'll be able to understand the internal workings of AsyncIO and create a basic event loop capable of running a FastAPI application. --- This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: creativecommons.org/licenses/by-nc-sa/4.0/Why it's here
A top upload from a listed channelEuroPython is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.