1
argvalidate - Python argument validator library documentation
2
===========================================================================
15
argvalidate is a small Python module which gives developers the opportunity
16
to do both argument- and return-value type checking.
17
This basically enables you to be sure that an argument passed to a function and
18
the return value of a function is of a specific type, or even one of a list
21
argvalidate provides you with two different decorators, which define the
22
rules for argument types and return value types:
24
:func:`~argvalidate.accepts` and
25
:func:`~argvalidate.returns`.
27
argvalidate either raises an :ref:`exception <argvalidate-exceptions>` or
28
creates a Python warning if it detects an error. This behaviour can be
29
configured via :ref:`environment variables <argvalidate-envvars>`.
34
If you find any bugs in argvalidate, have comments, suggestions or feature
35
requests, please use the `project homepage <http://code.sp-its.at/projects/argvalidate>`_.