Contents:
argvalidate is a small Python module which gives developers the opportunity to do both argument- and return-value type checking. This basically enables you to be sure that an argument passed to a function and the return value of a function is of a specific type, or even one of a list specified types.
argvalidate provides you with two different decorators, which define the rules for argument types and return value types:
argvalidate either raises an exception or creates a Python warning if it detects an error. This behaviour can be configured via environment variables.
If you find any bugs in argvalidate, have comments, suggestions or feature requests, please use the project homepage.