Colander is a simple framework for validating, serializing and deserializing of data obtained via XML, JSON, an HTML form post or any other equally simple data structure.
The colander python package allows you to:
- Define a schema declaratively (as a series of Python classes), or imperatively (with a series of function calls).
- Deserialize a structure of simple types (sequences, mappings, numbers, strings) to produce objects conforming to your schema. The input is validated automatically.
- Serialize objects conforming to the schema to a simple python structure, suitable for conversion to JSON, XML or HTML form data.
Colander is a good basis for form generation systems, data description systems, and configuration systems.