decorpy-0.3
توضیحات
A package exposing a collection of ready-to-use python decorators.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | decorpy-0.3 |
| نام | decorpy |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alexandre Zajac |
| ایمیل نویسنده | work@alexandrezajac.com |
| آدرس صفحه اصلی | https://github.com/alexZajac/decorpy |
| آدرس اینترنتی | https://pypi.org/project/decorpy/ |
| مجوز | - |
# Decorpy

[](https://coveralls.io/github/alexZajac/decorpy)
[](https://pyup.io/repos/github/alexZajac/decorpy/)
[](https://pyup.io/repos/github/alexZajac/decorpy/)
A collection of python decorators including time measurement, type checking and debugging.
## Installation
Install the package directly using `Pip` with [Pypi](https://pypi.org/project/decorpy/)
`pip install decorpy`
Or using `git`
`git clone https://github.com/alexZajac/decorpy.git`
`cd decorpy`
`python setup.py install`
## Examples
### Measure execution time of a function
[Link to gist](https://gist.github.com/alexZajac/f5b594307848f0b23b9ca4fea202633d)
### Debugging a function with its signature and return value
[Link to gist](https://gist.github.com/alexZajac/e4d222757a1095abf6f8cbdcef1e1870)
### Runtime type-checking on function parameters and return
[Link to gist](https://gist.github.com/alexZajac/fe96e566e4f4aab4f80312abb49d25e8)
نحوه نصب
نصب پکیج whl decorpy-0.3:
pip install decorpy-0.3.whl
نصب پکیج tar.gz decorpy-0.3:
pip install decorpy-0.3.tar.gz