Skip to main content
Help us improve Python packaging – donate today!

Deprecator provides a decorator to easily depreate old code.

Project Description

What is Deprecator?

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

Usage:

from deprecator import deprecate

def bar(): print("hello")

@deprecate(bar)
def foo(): print("hello")

When called, foo would print:

DeprecationWarning: foo is deprecated; use bar instead.

hello

Release history Release notifications

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
deprecator-0.3.macosx-10.10-x86_64.exe (63.6 kB) Copy SHA256 hash SHA256 Windows Installer any Jun 3, 2015
deprecator-0.3.macosx-10.10-x86_64.tar.gz (2.2 kB) Copy SHA256 hash SHA256 Dumb Binary any Jun 3, 2015
deprecator-0.3.tar.gz (1.7 kB) Copy SHA256 hash SHA256 Source None Jun 3, 2015
deprecator-0.3.zip (2.5 kB) Copy SHA256 hash SHA256 Source None Jun 3, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page