Skip to main content

Upgrade python project from paddle-1.x to paddle-2.0

Project description

Change Spec

change_spec = {
    "path.to.old_api": {
        "alias": [
            "path.to.old_api_alias1",
            "path.to1.to2.old_api_alias2",
            ],
        "update_to": "path.to.new_api",
        "warning": "this api is deprecated.",
        "args_list": ["arg1", "arg2"],
        "args_change": [
            ("arg2", "arg2_rename"),
            ("arg3", ""),
            ("", "new_arg", "default_value"),
            ],
        "args_warning": {"arg1":"warning message"},
        "args_transformer": "_default_transformer",
    },
}

Install

  1. install with pip
pip install paddle1to2
paddle1to2 --help
  1. install from source
git clone https://github.com/T8T9/paddle1to2.git
cd paddle1to2
python setup.py sdist bdist_wheel
pip install -U ./dist/paddle1to2-*.whl
paddle1to2 --help

Acknowledgements

  • Bowler: Safe code refactoring for modern Python projects.
  • lib2to3: A built-in python library to refactor python code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paddle1to2-0.0.1.tar.gz (143.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paddle1to2-0.0.1-py3-none-any.whl (192.7 kB view details)

Uploaded Python 3

File details

Details for the file paddle1to2-0.0.1.tar.gz.

File metadata

  • Download URL: paddle1to2-0.0.1.tar.gz
  • Upload date:
  • Size: 143.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for paddle1to2-0.0.1.tar.gz
Algorithm Hash digest
SHA256 29adb6ef4483b8d87787bcf3a72b8f56dfa718ad67238542b4a279f6115c3ae7
MD5 06203f8eda0f0a74c849781a50c6c841
BLAKE2b-256 21e7f4086616d6566ff4144b00a0eb49387d4cf16c0e3e421a2acbad277b6534

See more details on using hashes here.

File details

Details for the file paddle1to2-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: paddle1to2-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 192.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for paddle1to2-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6303516d98f80400a8bfa0132f630bec1cea3823fce1ad64f43bebcba9a8bc4c
MD5 112fa40b4e89489406484bddc3b26d04
BLAKE2b-256 a3b9de23282a5a36baecfb5964d9510fd4bf6af78233f2a05708a64707e87b5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page