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
- install with pip
pip install paddle1to2
paddle1to2 --help
- 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
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
paddle1to2-0.0.1-py3-none-any.whl
(192.7 kB
view hashes)
Close
Hashes for paddle1to2-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6303516d98f80400a8bfa0132f630bec1cea3823fce1ad64f43bebcba9a8bc4c |
|
MD5 | 112fa40b4e89489406484bddc3b26d04 |
|
BLAKE2b-256 | a3b9de23282a5a36baecfb5964d9510fd4bf6af78233f2a05708a64707e87b5a |