Documentation
README
FastAPI
Official FastAPI skill to write code with best practices, keeping up to date with new versions and features.
Project note: This project starts the server via
./run_services.sh(uvicorn), notfastapi dev. The patterns below still apply to all endpoint/model code.
Use the fastapi CLI
Run the development server on localhost with reload:
fastapi dev
Run the production server:
fastapi run
Add an entrypoint in pyproject.toml
FastAPI CLI will read the entrypoint in pyproject.toml to know where the FastAPI app is declared.
[tool.fastapi]
entrypoint = "my_app.main:app"
Use fastapi with a path
This is the opening of the README. Read the full README on GitHub.