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)
Links
Metadata
Release files for Deprecated 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Deprecated-1.1.5.tar.gz | 5.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Deprecated-1.1.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 5.0 MB
Release files / Deprecated-1.1.5.tar.gz
| Download URL | Deprecated-1.1.5.tar.gz |
|---|---|
| Size | 5.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2938146778575fbc8823cfefd3ff2ac483ccb34931ce46d86a08b74efc3c15c6
|
|
BLAKE2b-256 checksum How to use checksums |
ff67bcca6c512304f79a69a74c739bce48d18f6e3a9ce728c90cdfcb8f470fbf
|
| 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.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.1
|
Release files / Deprecated-1.1.5-py2.py3-none-any.whl
| Download URL | Deprecated-1.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
22513e7f038087202310f04b22bb7bdce49534ee32b820e7b6affb7bbe68f441
|
|
BLAKE2b-256 checksum How to use checksums |
7d137c673660db35fc62892512f8da4eb78e939d435ad6b2b94663dbaae4e492
|
| 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.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.1
|