Simple tooling for marking deprecated functions or classes and re-routing to the new successors' instance.

copied from cf-staging / pydeprecate


conda install

  • noarch  v0.3.2
To install this package with conda run:
conda install -c conda-forge pydeprecate


The common use-case is moving your functions across codebase or outsourcing some functionalities to new packages. For most of these cases, you want to hold some compatibility, so you cannot simply remove past function, and also for some time you want to warn users that functionality they have been using is moved and not it is deprecated in favor of another function (which shall be used instead) and soon it will be removed completely. Another good aspect is to do not overwhelm a user with too many warnings, so per function/class, this warning is raised only N times in the preferable stream (warning, logger, etc.).

© 2021 Anaconda, Inc. All Rights Reserved. (v2.35.6 fab5c9df) Legal | Privacy Policy