pydantic-sqlalchemy icon indicating copy to clipboard operation
pydantic-sqlalchemy copied to clipboard

Upgrade to support pydantic 2.0+

Open jessereich-mcs opened this issue 1 year ago • 9 comments

Currently pinned to pydantic<2.0.0 but pydantic 2.0 has been out for a few months.

jessereich-mcs avatar Aug 17 '23 14:08 jessereich-mcs

+1 for this

parikls avatar Aug 21 '23 21:08 parikls

+1 for this

ss1917 avatar Aug 22 '23 02:08 ss1917

+1 for this

yanghongfei avatar Aug 22 '23 02:08 yanghongfei

+1 for this

ops-coffee avatar Aug 22 '23 03:08 ops-coffee

+1 for this

cyancow avatar Aug 22 '23 04:08 cyancow

If you are using pydantic v2 and sqlalchemy 2.0 and above, try this sqlalchemy-to-pydantic

wezhai avatar Sep 06 '23 02:09 wezhai

For those looking for a link to the source code behind sqlalchemy-to-pydantic, it's here: https://github.com/wezhai/sqlalchemy-to-pydantic. Linking sqlalchemy-to-pydantic's source to PyPI was requested in https://github.com/wezhai/sqlalchemy-to-pydantic/issues/1

jamesbraza avatar Nov 10 '23 19:11 jamesbraza

@wezhai that requires sqlalchemy 2 🤔

realazizk avatar Feb 09 '24 04:02 realazizk

this make from_orm work again https://github.com/mohamed-aziz/pydantic-sqlalchemy/commit/4b1821c418014e26c53449a3800beba318c130f3

realazizk avatar Feb 10 '24 10:02 realazizk