Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

dissolve-0.0.2-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

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