A simple and idiomatic REST API boilerplate in Python using FastAPI, designed for clarity, modularity and extensibility.
Built to showcase best practices in Python backend development and serve as a solid foundation for future projects.
- π§± Modular project structure (
api/,models/,services/, etc.) - π Routing with versioned endpoints
- π OpenAPI docs auto-generated (
/docs,/redoc) - β Data validation and typing with Pydantic v2
- π§ͺ Async-ready test setup with
pytest,httpx,pytest-asyncio - π³ Minimal Docker support
- π§° Designed as a reusable starter template
- Python 3.13+
- FastAPI
- Uvicorn (ASGI server)
- Pydantic v2
# Install dependencies
poetry install
# Run the development server
poetry run uvicorn app.main:app --reload --log-config=log_config.yml