checkparam-0.1
توضیحات
Module for checking input parameters by type
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | checkparam-0.1 |
| نام | checkparam |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sidorov A.B. |
| ایمیل نویسنده | sidan93@gmail.com |
| آدرس صفحه اصلی | https://github.com/sidan93/check_params |
| آدرس اینترنتی | https://pypi.org/project/checkparam/ |
| مجوز | MIT |
# About
Module for checking input parameters by type
# Simple Start
1. Install package from pip
```
pip install checkparam
```
2. Use
```
from checkparam import check_param
@check_param()
def my_func(var_one: int, var_two: typing.Optional[int]):
...
my_func(4, None) # all good
my_func('test', None) # Exception from check_param, becouse 'test' is not type 'int'
```
نحوه نصب
نصب پکیج whl checkparam-0.1:
pip install checkparam-0.1.whl
نصب پکیج tar.gz checkparam-0.1:
pip install checkparam-0.1.tar.gz