logo


fastapi


<p><a href="https://fastapi.tiangolo.com/">FastApi</a> is an enjoyable tool for building web applications in python. In these videos we demonstrate the main features.</p>


1 - Hello World
2 - Routes
3 - Json
4 - Type Validation
5 - Documentation
6 - Async One
7 - Async Two
8 - Testing One
9 - Testing Two

Before you can use it, you'll need to install the dependencies.

pip install fastapi uvicorn

From here, this is all we have in our app.py file.

from fastapi import FastAPI

app = FastAPI()

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

To start the server locally you need to run;

uvicorn app:app --reload

If you don't pass the --reload flag then the app won't restart when you update.