FormEncode is a validation and form generation package. The validation can be used separately from the form generation. The validation works on compound data structures, with all parts being nestable. It is separate from HTTP or any other input mechanism.
The latest documentation is available at http://www.formencode.org/
Use pytest formencode to run the test suite. Use tox to run the test suite for all supported Python versions.