codemodpydanticv1


Namecodemodpydanticv1 JSON
Version 0.1.15 PyPI version JSON
download
home_page
Summary
upload_time2023-12-13 09:45:20
maintainer
docs_urlNone
authorYour Name
requires_python>=3.10,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # codemodpydanticv1

[![CI](https://github.com/Peter554/codemodpydanticv1/actions/workflows/ci.yml/badge.svg)](https://github.com/Peter554/codemodpydanticv1/actions/workflows/ci.yml)

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. 

```sh
pip install codemodpydanticv1

codemodpydanticv1 <file>
```

Using [ripgrep](https://github.com/BurntSushi/ripgrep) and looping over files:

```sh
for file in $(rg pydantic -g '*.py' -l); do
    echo $file
    codemodpydanticv1 $file
done
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "codemodpydanticv1",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/a5/c4/58e69f75a670674c5a9fac5558ce358ae7a18d6953e09bb280099a6d5c96/codemodpydanticv1-0.1.15.tar.gz",
    "platform": null,
    "description": "# 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 <file>\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",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "0.1.15",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc18154c2822720688257dd02bfb4360baa64bd37b6dd8368eebda9ceb1c724a",
                "md5": "a72e124c1b1d5c0ef4c0f5de108c92f0",
                "sha256": "d09526428d355d63f8f81213863c53122f81902904a084779bc8afb3c64b0429"
            },
            "downloads": -1,
            "filename": "codemodpydanticv1-0.1.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a72e124c1b1d5c0ef4c0f5de108c92f0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 3988,
            "upload_time": "2023-12-13T09:45:19",
            "upload_time_iso_8601": "2023-12-13T09:45:19.143914Z",
            "url": "https://files.pythonhosted.org/packages/dc/18/154c2822720688257dd02bfb4360baa64bd37b6dd8368eebda9ceb1c724a/codemodpydanticv1-0.1.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a5c458e69f75a670674c5a9fac5558ce358ae7a18d6953e09bb280099a6d5c96",
                "md5": "7b562ead68830515cf838213b0e3d095",
                "sha256": "17d60d6a0c82136e7e76c969b0780d3a5ce57715e42c3ab73364cfe1f5f412a4"
            },
            "downloads": -1,
            "filename": "codemodpydanticv1-0.1.15.tar.gz",
            "has_sig": false,
            "md5_digest": "7b562ead68830515cf838213b0e3d095",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 3075,
            "upload_time": "2023-12-13T09:45:20",
            "upload_time_iso_8601": "2023-12-13T09:45:20.359458Z",
            "url": "https://files.pythonhosted.org/packages/a5/c4/58e69f75a670674c5a9fac5558ce358ae7a18d6953e09bb280099a6d5c96/codemodpydanticv1-0.1.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-13 09:45:20",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "codemodpydanticv1"
}
        
Elapsed time: 0.36164s