FormEncode

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.

These module API docs are divided into section by category.

Core API

formencode.api

These functions are used mostly internally by FormEncode.

is_validator(obj)

Returns whether obj is a validator object or not.

formencode.schema

The FormEncode schema is one of the most important parts of using FormEncode, as it lets you organize validators into parts that can be re-used between schemas. Generally, a single schema will represent an entire form, but may inherit other schemas for re-usable validation parts (ie, maybe multiple forms all requires first and last name).

Validators

Wrapper Validators

Validator Modifiers

formencode.compound

formencode.foreach

HTML Parsing and Form Filling

formencode.htmlfill