logo

... fastapi.


FastApi is an enjoyable tool for building web applications in python. In these videos we demonstrate the main features.


Episode Notes

In this library you'll use decorators like @get.route("/") to describe the where the request can go while the function that follows describes how it is handled. Note that these functions are typically typed, which means that you can explicitly state what type of variables it should assume.

The app.py file at the end of our video looks like this;

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def root():
    return {"message": "hello world again"}

@app.get("/users/{user_id}")
def read_user(user_id: str):
    return {"user_id": user_id}

Feedback? See an issue? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.