SkillAgentSearch skills...

Codemodpydanticv1

Upgrade Pydantic to V2, but use V1 API

Install / Use

/learn @Peter554/Codemodpydanticv1
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated5mo ago
Forks0

Languages

Python

Security Score

72/100

Audited on Nov 4, 2025

No findings