Deprecator provides a decorator to easily depreate old code.
Project description
- Version:
- 0.2 - Initial release.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deprecator-0.3.zip.
File metadata
- Download URL: deprecator-0.3.zip
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9b842753f4ef87d0d42dd6212e6910a4ea5fb60db0bbdcc436ab176ed7a5d16
|
|
| MD5 |
64c466a674b2bd7bed860923867a0746
|
|
| BLAKE2b-256 |
58e8588851612df79eb1266b75de9846928e29ffb86f6f1729f71013a113085d
|
File details
Details for the file deprecator-0.3.tar.gz.
File metadata
- Download URL: deprecator-0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bdf1a9b3c6ecfd32846510932b3b3b412acd9514539d057da669cf63cdf3ea5
|
|
| MD5 |
72eaa036ca5a59784167eaab4b6275ea
|
|
| BLAKE2b-256 |
899b4734311aba4bd7796f19f7b3d2af44dd39e9c2fa9cace6b87cd25cb491aa
|
File details
Details for the file deprecator-0.3.macosx-10.10-x86_64.tar.gz.
File metadata
- Download URL: deprecator-0.3.macosx-10.10-x86_64.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c4245598bfb4e2df5eda5b82dd52ab28fcb41bd9bf6827965e9707d8634e246
|
|
| MD5 |
edd1bc387d73e74a9f8c5c73a8b883a0
|
|
| BLAKE2b-256 |
ca3bd3f94aaff84a401e47ed01a115c998da10ba69b5e9e244fd7ccd5657dd20
|
File details
Details for the file deprecator-0.3.macosx-10.10-x86_64.exe.
File metadata
- Download URL: deprecator-0.3.macosx-10.10-x86_64.exe
- Upload date:
- Size: 63.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdd220eb5df6d919fa34d31a649878b72aba18efcd55d6fa57db8c289cbb84f6
|
|
| MD5 |
b29c68028efe5e2a58acb41a46cebe71
|
|
| BLAKE2b-256 |
eab2682423fe1b24a5caecfc7449196c56833075510975497cc24fc0e51aa944
|