{"id":15493807,"url":"https://github.com/peter554/codemodpydanticv1","last_synced_at":"2025-04-22T20:20:58.177Z","repository":{"id":202937743,"uuid":"708391371","full_name":"Peter554/codemodpydanticv1","owner":"Peter554","description":"Upgrade Pydantic to V2, but use V1 API","archived":false,"fork":false,"pushed_at":"2023-12-13T09:49:27.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-19T11:28:39.250Z","etag":null,"topics":["codemod","libcst","pydantic","pydantic-v2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Peter554.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-22T12:34:52.000Z","updated_at":"2024-09-30T02:13:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1f4ce5f-bf6d-4e3a-b458-757a69434c1d","html_url":"https://github.com/Peter554/codemodpydanticv1","commit_stats":null,"previous_names":["peter554/codemodpydanticv1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fcodemodpydanticv1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fcodemodpydanticv1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fcodemodpydanticv1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fcodemodpydanticv1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peter554","download_url":"https://codeload.github.com/Peter554/codemodpydanticv1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250316136,"owners_count":21410483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codemod","libcst","pydantic","pydantic-v2"],"created_at":"2024-10-02T08:09:27.507Z","updated_at":"2025-04-22T20:20:58.104Z","avatar_url":"https://github.com/Peter554.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codemodpydanticv1\n\n[![CI](https://github.com/Peter554/codemodpydanticv1/actions/workflows/ci.yml/badge.svg)](https://github.com/Peter554/codemodpydanticv1/actions/workflows/ci.yml)\n\nA small codemod tool to upgrade pydantic from V1 to V2, but still use the V1 API.\nPydantic V2 exposes the V1 API. By using the V1 API we can be sure nothing\nis being broken by the package upgrade, and usage can then gradually be migrated\nacross to the V2 API. \n\n```sh\npip install codemodpydanticv1\n\ncodemodpydanticv1 \u003cfile\u003e\n```\n\nUsing [ripgrep](https://github.com/BurntSushi/ripgrep) and looping over files:\n\n```sh\nfor file in $(rg pydantic -g '*.py' -l); do\n    echo $file\n    codemodpydanticv1 $file\ndone\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fcodemodpydanticv1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter554%2Fcodemodpydanticv1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fcodemodpydanticv1/lists"}