A FastAPI application is created by instantiating FastAPI(), an object to which routes are attached. You run it with an ASGI server such as Uvicorn. FastAPI relies on Python type annotations to validate data and generate documentation automatically.
Example
from fastapi import FastAPI
app = FastAPI()