Elektrine lite

← Feed

@webology@mastodon.social

Post #3253747

2026-04-15 14:58 UTC

@adamghill@indieweb.social @josh@social.joshthomas.dev The reason some of us try to inject Pydantic into everything is that a BaseModel is a better starting point than Python's Object or even a vanilla Python class. So giving it a Python dict or JSON gets you a lot for free, and it's easy to validate and serialize. The magic for me is giving it dates in random formats and yet it always does the right thing with them. 90% of the time, I'm just using simple Python types and it just works.

Replies (1)

  • @webology@mastodon.social 2026-04-15 14:59

    @adamghill@indieweb.social @josh@social.joshthomas.dev I like Django Models (over everything else) but they have started to show their age compared to the world of Python Types that more and more libraries use; whereas, Django Models feels frozen in time.

    Open ##3253748