Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Actually Pydantic could be extremely useful if used in conjunction with SQLAlchemy, check out the SQLModel library, from the very same creators of Pydantic.


Having used sqlmodel recently for a project, I was underimpressed. Documentation was sparse, I found myself going to the source code to figure out how to solve problems I ran into, and I ended up dropping into sqlalchemy a lot more than I wanted. I think the idea is sound, but the code is hard to follow, and there are a lot of missing common cases.


I agree. It still needs a lot of work and is a far cry from ActiveRecord.

I've been working on a wrapper around it to make it more usable, hoping to get as much of the work merged upstream into SQLModel:

https://github.com/iloveitaly/activemodel

Unfortunately, I just don't see a better option than SQLModel for ORM at this point.


Sebastián Ramírez created FastAPI and SQLModel, and was an early adopter of Pydantic. Samuel Colvin created Pydantic.


sqlmodel is a wrapper around sqlalchemy, made by the guy who made fastapi

While it uses pydantic, sqlmodel has not been written by those guys




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: