Koudai Aono · @koxudaxi
14 followers · 17 posts · Server fosstodon.org

I have released `datamodel-code-generator` version `0.21.0` for v2.
The version can generate the v2 models from JSONSchema/OpenAPI/JSON/YAML
Also, The version can be run in V2.

The changes are in the link.
github.com/koxudaxi/datamodel-

#pydantic #pydanticv2

Last updated 1 year ago

Serge Matveenko ♻️☮️Ⓐ · @lig
249 followers · 2850 posts · Server fosstodon.org
Serge Matveenko ♻️☮️Ⓐ · @lig
248 followers · 2847 posts · Server fosstodon.org

👋 Hey all!

🧔🏻 Our own Marcelo Trylesinski twitter.com/marcelotryle has prepared a tool to help on the migration from Pydantic V1 to V2.

🔧 Please, welcome `bump-pydantic` github.com/pydantic/bump-pydan

✅ It would be really helpful if you try it, and let us know if you have any ideas for further transformations, or if you find any bugs.

#pydantic #pydanticv2 #bumppydantic #python #opensource

Last updated 1 year ago

Serge Matveenko ♻️☮️Ⓐ · @lig
248 followers · 2839 posts · Server fosstodon.org

FastAPI with Pydantic v2

Is FastAPI (beta) with support for Pydantic v2 working for you?

github.com/tiangolo/fastapi/di

#pydantic #pydanticv2 #fastapi #python #opensource #webdev

Last updated 1 year ago

Serge Matveenko ♻️☮️Ⓐ · @lig
236 followers · 2792 posts · Server fosstodon.org

⚠️ If you're using Pydnatic v1 I would strongly recommend doing two things right now:
1️⃣ Set your dependency constrain for Pydantic to `pydantic<2` to prevent a random upgrade to the new major Pydantic version while you hasn't upgraded your code for it.
2️⃣ Start testing and upgrading your code with Pydantic v2 in a separate branch.

🐞 Report any bugs or things missing for your use cases in Pydantic v2 here github.com/pydantic/pydantic/i

#pydantic #pydanticv2 #python

Last updated 1 year ago

Serge Matveenko ♻️☮️Ⓐ · @lig
236 followers · 2791 posts · Server fosstodon.org

🎉 Is it A? Is it B? It's βeta! The first beta release of Pydantic v2 has arrived!

📦 Please, welcome `pydantic 2.0b1` pypi.org/project/pydantic/2.0b

🏷️

#pydantic #pydanticv2 #python #opensource #release #beta #DataValidation #dataprocessing

Last updated 1 year ago