Skip to main content

About

Module for checking input parameters by type

Simple Start

  1. Install package from pip
pip install checkparam
  1. 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'

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)

Uploaded Source

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

Hashes for checkparam-0.1.tar.gz
Algorithm Hash digest
SHA256 652dc67dcdefb09a03749a63ffba686ad0ca2ffbedd7158a29c44c6b97adb93a
MD5 2dc2b292b30dfc1779c59623c71a834e
BLAKE2b-256 116df4cda8fb54c3ee8f03e0ecda798c55ad93b9b67d170460b26fd8fa0a7fc3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page