Codemodpydanticv1
Upgrade Pydantic to V2, but use V1 API
Install / Use
/learn @Peter554/Codemodpydanticv1README
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
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
