4 ms·
It seems like a lot of the "FastAPI features"[1] are coming not from FastAPI but from Starlette: - Just Modern Python - Editor support - Short - Unlimited "
by franey 8y ago
It seems like a lot of the "FastAPI features"[1] are coming not from FastAPI but from Starlette:
- Just Modern Python
- Editor support
- Short
- Unlimited "plug-ins"
Would it be fair to say that this is Starlette + an API schema + OAuth2 + data validation?
[1] https://fastapi.tiangolo.com/features/#fastapi-features https://fastapi.tiangolo.com/features/#fastapi-features
- tiangolo 8y agoYes! Sort of... Most of FastAPI features come from Starlette AND Pydantic. In FastAPI you declare the parameters of your request (including deeply nested JSON bodies) as function parameters. So, "editor support" here means, for example, autocomplete even for deeply nested models. Also, you get automatic data validation and serialization. Automatic detailed errors in your API responses. Also, it has a powerful dependency injection system, that helps in a lot of cases.