To-do list with FastAPI — code of the PyWeb Guide "First API with FastAPI" section (steps 1–6)
https://pywebguide.github.io/en/fastapi.html

REST API: GET /tasks, POST /tasks, GET /tasks/{task_id}, DELETE /tasks/{task_id}.
Tasks are kept in memory and disappear when the server restarts.
Tested with: Python 3.13, FastAPI 0.163, Pydantic 2.14.

Windows (PowerShell):
    python -m venv .venv
    .venv\Scripts\activate
    pip install -r requirements.txt
    fastapi dev main.py

macOS and Linux: the same, but use python3 instead of python to create the environment
and source .venv/bin/activate to turn it on.

Open http://127.0.0.1:8000/docs — you can send any request there with the Try it out button.
Tests: pytest -q
