Quickstart:
uv sync
uv run uvicorn app.main:app --reloadFeatures shown:
- Auth with OAuth2 password and JWT
- SQLModel models and CRUD (
User,Item) - Dependencies for DB sessions and auth
- Pagination via
page/size - Background tasks endpoint
- File upload and streaming
- WebSocket echo
- CORS and healthcheck
Try:
- POST
/auth/tokenwithusername,passwordfor a token (seed a user via DB or create via/users/as superuser) - Auth routes:
/users/me,/items/ - Files:
/files/upload,/files/stream - WebSocket:
ws://localhost:8000/ws/echo