FormEncode is a python web validation and form generation package.
FormEncode 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.
FormEncode has two parts:
- A set of validators used together to create schemas, which convert form data back and forth between Python objects and their corresponding form values
- A tool called HTML Fill that takes an HTML form and parses it for form fields, filling in values and error messages as it goes from Python objects
Ian Bicking is the author of FormEncode.
Resources: http://formencode.org/ http://pylonsbook.com/en/1.1/working-with-forms-and-validators.html#introducing-formencode