I have released `datamodel-code-generator` version `0.21.0` for #pydantic v2.
The version can generate the #pydantic v2 models from JSONSchema/OpenAPI/JSON/YAML
Also, The version can be run in #pydantic V2.
The changes are in the link.
https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.21.0
#pydanticV2
Psst 🤫
🎉 Pydantic V2 is out!
https://pypi.org/project/pydantic/2.0/
📰 The docs are there as well https://docs.pydantic.dev/2.0/
#Pydantic #Python #OpenSource #PydanticV2 #Release #DataProcessing #DataScience
#pydantic #python #opensource #pydanticv2 #release #dataprocessing #datascience
👋 Hey all!
🧔🏻 Our own Marcelo Trylesinski https://twitter.com/marcelotryle has prepared a tool to help on the migration from Pydantic V1 to V2.
🔧 Please, welcome `bump-pydantic` https://github.com/pydantic/bump-pydantic/
✅ 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
FastAPI with Pydantic v2
Is FastAPI (beta) with support for Pydantic v2 working for you?
#pydantic #pydanticv2 #fastapi #python #opensource #webdev
⚠️ 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 https://github.com/pydantic/pydantic/issues
🎉 Is it A? Is it B? It's βeta! The first beta release of Pydantic v2 has arrived!
📦 Please, welcome `pydantic 2.0b1` https://pypi.org/project/pydantic/2.0b1/
🏷️ #Pydantic #PydanticV2 #Python #OpenSource #Release #Beta #DataValidation #DataProcessing
#pydantic #pydanticv2 #python #opensource #release #beta #DataValidation #dataprocessing