About Anaconda Help Download Anaconda

rocketce / packages / pydeprecate 0.3.2

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

Installers

Info: This package contains files in non-standard labels.
  • noarch v0.3.2

conda install

To install this package run one of the following:
conda install rocketce::pydeprecate
conda install rocketce/label/rocketce-1.4.1::pydeprecate
conda install rocketce/label/rocketce-1.5.1::pydeprecate
conda install rocketce/label/rocketce-1.6.0::pydeprecate

Description

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


© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.3) Legal | Privacy Policy