3 ms·
Yep, FastAPI is based on Starlette, heavily inspired by the (now "deprecated") APIStar. What it adds is automatic data validation, serialization, and documenta
by tiangolo 8y ago
Yep, FastAPI is based on Starlette, heavily inspired by the (now "deprecated") APIStar.
What it adds is automatic data validation, serialization, and documentation, with Python type hints. All using Pydantic.
So, you declare request parameters and bodies with standard Python type hints (even for deeply nested JSON bodies) and it automatically does all that.
It also has a simple but powerful dependency injection system.
And thanks to Tom Christie's work, it is compatible with all those tools too (databases, orm, uvicorn, all from Starlette, etc).
- deleted 8y ago[deleted]