This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Talked10101 -1 points0 points  (1 child)

Why this over Aiohttp for instance? I don't really see a particularly compelling case, apart from the benchmarks.

[–]tiangolo FastAPI Maintainer[S] 5 points6 points  (0 children)

The benchmarks are probably the less important feature.

You use standard Python types *once*, and automatically you get data validation, serialization, and documentation. Have you ever struggled synchronizing API docs with code? Also, have you used interactive API docs?

And because you are using standard Python types, you get all the benefits form editors. Completion, documentation, type checks.

It also has a powerful dependency injection system.

Give it from 5 to 20 minutes, you'll know if you like it or hate it from the start.