Skip to main content

Deprecator provides a decorator to easily depreate old code.

Project description

Author: Anthony Long
Version: 0.2 - Initial release.

What is Deprecator?

Deprecator is a decorator which helps you to document, and warn users of deprecations.


from deprecator import deprecate

def bar(): print("hello")

def foo(): print("hello")

When called, foo would print:

DeprecationWarning: foo is deprecated; use bar instead.


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions (2.5 kB view hashes)

Uploaded source

deprecator-0.3.tar.gz (1.7 kB view hashes)

Uploaded source

Built Distributions

deprecator-0.3.macosx-10.10-x86_64.exe (63.6 kB view hashes)

Uploaded any

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page