deprecator-0.3
توضیحات
Deprecator provides a decorator to easily depreate old code.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | deprecator-0.3 |
| نام | deprecator |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anthony Long |
| ایمیل نویسنده | antlong@gmail.com |
| آدرس صفحه اصلی | http://github.com/antlong/deprecator |
| آدرس اینترنتی | https://pypi.org/project/deprecator/ |
| مجوز | Apache 2.0 |
Deprecator: A tool for deprecating older code.
----------------------------------------------
: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.
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
نحوه نصب
نصب پکیج whl deprecator-0.3:
pip install deprecator-0.3.whl
نصب پکیج tar.gz deprecator-0.3:
pip install deprecator-0.3.tar.gz