Easy_Decorator-1.2


توضیحات

Make decorators with a before and after function
ویژگی مقدار
سیستم عامل -
نام فایل Easy_Decorator-1.2
نام Easy_Decorator
نسخه کتابخانه 1.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Dylan Richardson
ایمیل نویسنده bigdrich14@gmail.com
آدرس صفحه اصلی http://pypi.python.org/pypi/Easy_Decorator/
آدرس اینترنتی https://pypi.org/project/Easy_Decorator/
مجوز LICENSE.txt
============== Easy_Decorator ============== Simply make decorators with a before and after function. Included Files ============== * easyDecorator/easyDecorator.py - Make decorators with a before and after function Installation ============ Python must be installed in order for Menu to be imported. Install python at https://www.python.org/download/. In the terminal type “cd path/to/this/directory” and then “python setup.py install”. This will add the menu module to your site-packages. How to Use ========== Import eastDecorator:: from easyDecorator import easyDecorator as dec or:: import easyDecorator.easyDecorator as dec Make a decorator with before/after functions:: newDecorator = dec.decorator(before=beforeFunction,after=afterFunction) @newDecorator def someFunc(): pass Decorate a function that doesn’t accept arguments so that it can:: @dec.giveArgs def funcWithoutArgs(): pass


نحوه نصب


نصب پکیج whl Easy_Decorator-1.2:

    pip install Easy_Decorator-1.2.whl


نصب پکیج tar.gz Easy_Decorator-1.2:

    pip install Easy_Decorator-1.2.tar.gz