Hacker News new | ask | show | jobs
by manojlds 1975 days ago
More specifically, Pydantic. It's great!
4 comments

FastAPI got me turned onto Pydantic, both are awesome!
I use pydantic all over the place now. FastAPI was what introduced it to me. Its really nice to be able to take advantage of the autocompletion when utilizing pydantic models rather than a straight dictionary. Now, in a lot of instances I use the pydantic models instead of dictionaries as it feels more explicit
Ah, thanks, I hadn't realized that's the underlying library! Runtime validation of types is absolutely the largest missing feature from TypeScript, IMO, so Pydantic is really impressive to me.
Yes, I have been using Pydantic with my Django projects, and it is great!