Episode #275: Building a FastAPI Application & Exploring Python Concurrency - The Real Python Podcast
Briefly

Episode #275: Building a FastAPI Application & Exploring Python Concurrency - The Real Python Podcast
"Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects. We discuss a recent Real Python step-by-step tutorial about programming a FastAPI example application. You practice installing FastAPI, building your first endpoints, adding path and query parameters, and validating endpoints using Pydantic. Christopher covers updates to his Real Python video course about concurrency in Python."
"The course digs into what concurrency means in Python and why you might want to incorporate it in your code. He describes the different methods and demonstrates how to approach coding using threading, asyncio, and multiprocessing. We also share several other articles and projects from the Python community, including a news roundup, the PSF fundraiser campaign for 2025, where Python stores attributes, performance hacks for faster Python code, a project to transform functions into a web interface, and a Python disk-backed cache."
Install FastAPI and an ASGI server such as Uvicorn, create an application instance, and define endpoints using path operations. Add path and query parameters to endpoints and validate request and response data with Pydantic models. Test endpoints locally and iterate on schema validations. Learn concurrency options in Python including threading for I/O-bound tasks, asyncio for cooperative asynchronous programming, and multiprocessing for CPU-bound parallelism. Use appropriate concurrency method based on task characteristics and performance needs. Additional resources cover Python attribute storage via __dict__, performance optimization techniques, transforming functions into web interfaces, and disk-backed caching solutions.
Read at Realpython
Unable to calculate read time
[
|
]