Dive into the world of Asynchronous Server Gateway Interface (ASGI) in this informative PyCon US talk. Explore the common ground between FastAPI and Django by understanding the ASGI specification and its role in powering asynchronous, event-driven web applications. Gain insights into debugging ASGI apps, writing custom middleware, and simplifying application lifecycles. Learn to create a basic ASGI app using pure Python, without relying on frameworks or libraries. Discover the power of ASGI middleware for modifying app behavior without altering core code, including practical examples of adding authentication and request body processing. Conclude with a deep dive into serving ASGI applications, focusing on programmatic use of Uvicorn and event loop management.
Overview
Syllabus
Talks - Adrian Garcia Badaracco: Inside web framework: intro to the ASGI spec, middleware and apps
Taught by
PyCon US