Automatically replace use of deprecated APIs
Project description
dissolve
The dissolve library helps users replaces calls to deprecated library APIs.
Example
E.g. if you had a function “inc” that has been renamed to “increment” in version 0.1.0 of your library:
from dissolve import replace_me
@replace_me("increment({x})", since="0.1.0")
def inc(x):
return x + 1
Running this code will yield a warning:
...
>>> inc(x=3)
<stdin>:1: DeprecationWarning: <function inc at 0x7feaf5ead5a0> has been deprecated since 0.1.0; use 'increment(4)' instead
4
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
dissolve-0.0.2.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file dissolve-0.0.2.tar.gz
.
File metadata
- Download URL: dissolve-0.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a32399a21dbbbfe35a226c5a20ef02860e5e85028ddc38168b25c1db314797 |
|
MD5 | c832582939248b94f8a1a017ef0340ee |
|
BLAKE2b-256 | 9381dee04d7003fc11e7ee4c8bae4a75d14b9489581ce2fa79f6d94cef35b05c |
File details
Details for the file dissolve-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: dissolve-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a136a642782a1a3bcf955498f581a0d13ff0f920ff843fa7fbf60b283a8670 |
|
MD5 | ae44df68868c424ac371fa71f6a043c1 |
|
BLAKE2b-256 | ef6a051474567172aaefa7dc30a2dd10bb456e5cbbff986777f6495f0b06d8de |