Skip to main content

No project description provided

Project description

codemodpydanticv1

CI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemodpydanticv1-0.1.15.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

codemodpydanticv1-0.1.15-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page