codemodpydanticv1
A small codemod tool to upgrade pydantic from V1 to V2, but still use the V1 API. Pydantic V2 exposes the V1 API. By using the V1 API we can be sure nothing is being broken by the package upgrade, and usage can then gradually be migrated across to the V2 API.
pip install codemodpydanticv1
codemodpydanticv1 <file>
Using ripgrep and looping over files:
for file in $(rg pydantic -g '*.py' -l); do
echo $file
codemodpydanticv1 $file
done
Metadata
Release files for codemodpydanticv1 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codemodpydanticv1-0.1.15.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codemodpydanticv1-0.1.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / codemodpydanticv1-0.1.15.tar.gz
| Download URL | codemodpydanticv1-0.1.15.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17d60d6a0c82136e7e76c969b0780d3a5ce57715e42c3ab73364cfe1f5f412a4
|
|
BLAKE2b-256 checksum How to use checksums |
a5c458e69f75a670674c5a9fac5558ce358ae7a18d6953e09bb280099a6d5c96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.6 Darwin/22.6.0
|
Release files / codemodpydanticv1-0.1.15-py3-none-any.whl
| Download URL | codemodpydanticv1-0.1.15-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d09526428d355d63f8f81213863c53122f81902904a084779bc8afb3c64b0429
|
|
BLAKE2b-256 checksum How to use checksums |
dc18154c2822720688257dd02bfb4360baa64bd37b6dd8368eebda9ceb1c724a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.6 Darwin/22.6.0
|