Comment

Comment by tiangolo

To use Python type hints, and get automatic data validation, serialization, and documentation for your API (including interactive UI docs for your API). All that, even for deeply nested JSON bodies. And by using type hints, you get autocomplete everywhere, type error checks, etc.

Your API gets documented with standards: OpenAPI and JSON Schema.

Or to be able to have WebSockets.

Or for its dependency injection system, that saves you a lot of code and plugins.

You can check the features here: https://fastapi.tiangolo.com/features/

And you can see alternatives and comparisons here: https://fastapi.tiangolo.com/alternatives/

parent tiangolo 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton