Elektrine lite

← Feed

@josh@social.joshthomas.dev

Post #3253744

2026-04-15 02:54 UTC

@webology@mastodon.social @adamghill@indieweb.social Funny seeing this pop up today, I was just thinking about what it would take for a SQLModel style take on Django’s ORM, fully leaning into type hints and Pydantic. This doesn’t seem too far off from what I imagined.

Replies (2)

  • @webology@mastodon.social 2026-04-15 13:37

    @josh@social.joshthomas.dev @adamghill@indieweb.social https://github.com/mr-fatalyst/oxyde is really good. It's not quite what I would want for Django, but it's a damn good start.

    Open ##3253745

  • @adamghill@indieweb.social 2026-04-15 14:42

    @josh@social.joshthomas.dev @webology@mastodon.social there are a few projects which mash Pydantic into the Django ORM -- I haven't used any in prod, though. I like Pydantic just fine, but personally all I want is is better DX for Django models and I don't see why Pydantic is required for that at all. I have a proof-of-concept which is "just" a base class (or decorator) which wraps around a normal Django model, but adds support for types hints. However, as is typical, I got distracted and haven't finished the last 10%.

    Open ##3253746