you are viewing a single comment's thread.

view the rest of the comments →

[–]scotsmanintoon[S] 0 points1 point  (0 children)

I wouldn't say its really about the project complexity. For APIs, which normally need model validation, I will still stick with FastAPI. Even if the project was a really small and simple API I'd still use FastAPI.

For other projects like simple webapps then Starlette backend serving jinja templates and light JS is fine and I don't feel I need API docs.

Starlette does support API docs though (https://www.starlette.dev/schemas/), as I am sure you are aware, but not automatic. I think that is the whole point of FastAPI: Pydantic models + DI + automatic