No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file codemodpydanticv1-0.1.15.tar.gz
.
File metadata
- Download URL: codemodpydanticv1-0.1.15.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.6 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17d60d6a0c82136e7e76c969b0780d3a5ce57715e42c3ab73364cfe1f5f412a4 |
|
MD5 | 7b562ead68830515cf838213b0e3d095 |
|
BLAKE2b-256 | a5c458e69f75a670674c5a9fac5558ce358ae7a18d6953e09bb280099a6d5c96 |
File details
Details for the file codemodpydanticv1-0.1.15-py3-none-any.whl
.
File metadata
- Download URL: codemodpydanticv1-0.1.15-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.6 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d09526428d355d63f8f81213863c53122f81902904a084779bc8afb3c64b0429 |
|
MD5 | a72e124c1b1d5c0ef4c0f5de108c92f0 |
|
BLAKE2b-256 | dc18154c2822720688257dd02bfb4360baa64bd37b6dd8368eebda9ceb1c724a |