Skip to main content

Deprecated Library

Deprecated is Easy to Use

If you need to mark a function or a method as deprecated, you can use the @deprecated decorator:

Save in a hello.py:

from deprecated import deprecated


@deprecated
def some_old_function(x, y):
    return x + y


class SomeClass(object):
    @deprecated
    def some_old_method(self, x, y):
        return x + y


some_old_function(12, 34)
obj = SomeClass()
obj.some_old_method(5, 8)

And Easy to Setup

And run it:

$ pip install Deprecated
$ python hello.py
hello.py:15: DeprecationWarning: Call to deprecated function some_old_function.
  some_old_function(12, 34)
hello.py:17: DeprecationWarning: Call to deprecated function some_old_method.
  obj.some_old_method(5, 8)

Metadata

Release files for Deprecated 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Deprecated 1.1.4
File Size Uploaded
Deprecated-1.1.4.tar.gz 5.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for Deprecated 1.1.4
File Interpreter ABI Platform
Deprecated-1.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 5.0 MB

Release files / Deprecated-1.1.4.tar.gz

Download URL Deprecated-1.1.4.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
5a7dd008d527b5d91004f441fdc001390a54f3991863b43da0066c8f66f56407
BLAKE2b-256 checksum
How to use checksums
52efc845f7f9e4dc88976f4560ccff0b426645f3595e1064af9159668fb92cb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.1

Release files / Deprecated-1.1.4-py2.py3-none-any.whl

Download URL Deprecated-1.1.4-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
83ce85f2c3c314bd8aeae8302eec91fa8e389fb4e141a8de9f5068623094dd69
BLAKE2b-256 checksum
How to use checksums
90a2cf0ed2e70c48f6bdc09b46ad4c978409be83297ec6160c796aaa06379134
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.1

Release history Release notifications | RSS feed

3.0.0

2 release files

1.3.1

2 release files

1.3.0

1 release file

1.2.18

2 release files

1.2.17

2 release files

1.2.16

2 release files

1.2.15

2 release files

1.2.14

2 release files

1.2.12

2 release files

1.2.11

2 release files

1.2.10

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.5

2 release files

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page