Skip to main content

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

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)

Source distribution for codemodpydanticv1 0.1.15
File Size Uploaded
codemodpydanticv1-0.1.15.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codemodpydanticv1 0.1.15
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.15 This release

2 release files

0.1.14

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page