FastAPI turns Python functions into a web API with automatic validation and interactive docs at /docs.
pip install "fastapi[standard]" # main.py from fastapi import FastAPI app = FastAPI() @app.get("/hello/{name}") def hello(name: str): return {"message": f"Hello {name}"} fastapi dev main.py # then open http://127.0.0.1:8000/docs