4 ms·
As a counterpoint, I cannot stand Pydantic. Type hinting in function class parameters is super useful, but kludges like Pydantic that abuse Python to turn those
by kuang_eleven 5y ago
As a counterpoint, I cannot stand Pydantic. Type hinting in function class parameters is super useful, but kludges like Pydantic that abuse Python to turn those into runtime checks? Never again.
I am currently finishing up a moderately sized project in FastAPI, and for my next project I will strongly be recommending using Starlette alone.
- nyellin 5y agoWhy? What do you dislike about it?
- daanluttik 5y agoPydantic is great for parsing input either from api's or user input. You often want these runtime checks. But I would argue that the benefits lowers when you are not talking about cross-system interfaces