Installation¶
Requirements¶
| Dependency | Version |
|---|---|
| Python | >= 3.9 |
| FastAPI | >= 0.110 |
| Pydantic | >= 2.5, < 3 |
| SQLAlchemy | >= 1.4.36 |
| python-dotenv | >= 0.19 |
Install from PyPI¶
Optional extras¶
SQLAlchemy is a core dependency (installed automatically). The extras below add ORM-specific packages when you need Tortoise or Peewee:
For async SQLAlchemy, also install a driver:
For MySQL with Tortoise:
Install from source (development)¶
git clone https://github.com/svalench/fastapi_viewsets.git
cd fastapi_viewsets
pip install -e ".[test,lint]"
Verifying the installation¶
If this prints OK, you're ready to go.
What's next¶
- Sync Quickstart — a complete CRUD app in ~25 lines
- Async Quickstart —
AsyncBaseViewsetwith async SQLAlchemy - ORM Adapters — configuring Tortoise or Peewee