Certifiable¶
Certifiable is a powerful runtime parameter validation library for python, see: Usage.
Use it in in conjunction with HOFT to automatically validate method args and kwargs.
Example:
>>> from certifiable import certify_bool
>>> certify_bool(True)
>>> certify_bool(False)
>>> certify_bool('hello world')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "certifiable/certifiable.py", line 63, in wrapper
certify(value)
File "certifiable/certifiable.py", line 60, in certify
func(value, **kwargs)
File "certifiable/certifiable.py", line 512, in certify_bool
required=required,
certifiable.errors.CertifierTypeError: expected bool, but value is of type 'str'
>>>
Contents: