Module for checking input parameters by type
Project description
About
Module for checking input parameters by type
Simple Start
- Install package from pip
pip install checkparam
- 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'
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 Distribution
checkparam-0.1.tar.gz
(2.3 kB
view details)
File details
Details for the file checkparam-0.1.tar.gz.
File metadata
- Download URL: checkparam-0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
652dc67dcdefb09a03749a63ffba686ad0ca2ffbedd7158a29c44c6b97adb93a
|
|
| MD5 |
2dc2b292b30dfc1779c59623c71a834e
|
|
| BLAKE2b-256 |
116df4cda8fb54c3ee8f03e0ecda798c55ad93b9b67d170460b26fd8fa0a7fc3
|