FastAPI 0.115 cheatsheet
FastAPI 0.115: Getting started
3 common FastAPI 0.115 tasks.
Create a virtual environment
Create an isolated environment for the project's packages.
python -m venv .venv
Activate the virtual environment
Use the environment's Python and packages in this shell. On Windows run .venv\Scripts\activate.
source .venv/bin/activate
Install FastAPI
Install FastAPI with the standard extras: the fastapi command, Uvicorn and the other common dependencies.
pip install "fastapi[standard]"