redis-om-python
redis-om-python copied to clipboard
[Enhancement] Support Pydantic v2
Pydantic v2 comes with several performance and safety benefits due to being compiled in Rust with python bindings.
I'd love to see the models: HashModel, JsonModel, EmbeddedJsonModel all use the new and improved pydantic.
There maybe a small migration workflow, which the pydantic team is building a tool for.
take a look at https://docs.pydantic.dev/latest/migration/ also take a look at this tool that will automatically upgrade some of the changes for you: https://github.com/pydantic/bump-pydantic
So far, commit #533 does not successfully support Pydantic v2. Keeping this open.
Also waiting for this to be supported.