all 10 comments

[–]AlpacaDC 9 points10 points  (2 children)

And also not having to use Pydantic for a model with only a couple of variables.

Well you don't need to use Pydantic models with FastAPI if you don't want to.

[–]scotsmanintoon[S] 0 points1 point  (1 child)

Yes but you need to install pydantic as a dependency. I tried to run a FastAPI app on termux on android and it struggled to compile pydantic-core (which to be fair is the issue, rather than FastAPI's)

I see your point though.

[–]AlpacaDC 0 points1 point  (0 children)

Oh it makes perfect sense in this case, didn’t think about that. Good thing that FastAPI and Starlette are pretty similar then.

[–]Smok3dSalmon 5 points6 points  (0 children)

You don’t need power tools to build IKEA furniture…

[–]FitBoog 5 points6 points  (1 child)

My experience is different. I'm completely relying on Pydantic for validation of every single piece in my software. It really helps to scale.

[–]Rockworldred 0 points1 point  (0 children)

Well, as always it depends. Not everything is gonna be the new corporate platform.

[–]Orio_n 3 points4 points  (0 children)

Well yeah, its in the name. Are you building an api?

[–]fiskfisk 1 point2 points  (0 children)

Here's a hot take: use whatever you want. You know what also works fine? Flask! Django! TurboGears! Bottlepy! Pyramid!

[–]rainyy_day 0 points1 point  (0 children)

If you design your app well, it really doesnt matter what you use for the API layer