Software Details:
Version: 0.9.9 / 1.0b1
Upload Date: 5 Jun 15
Distribution Type: Freeware
Downloads: 148
Data obtained via JSON, XML, an HTML form post or any other equally simple data serialization can be used with the library.
Features:
- Can be used for:
- Define a data schema
- Deserialize a data structure composed of strings, mappings, and lists into an arbitrary Python structure after validating the data structure against a data schema.
- Serialize an arbitrary Python structure to a data structure composed of strings, mappings, and lists.
- It can work with:
- A mapping object (e.g. dictionary)
- A variable-length sequence of objects (each object is of the same type).
- A fixed-length tuple of objects (each object is of a different type).
- A string or Unicode object.
- An integer.
- A float.
- A boolean.
- An importable Python object (to a dotted Python object path).
What is new in this release:
- Loosen Email validator regex (permit apostrophes, bang, etc in localpart).
What is new in version 1.0a2:
- Added colander.ContainsOnly and colander.url validators.
What is new in version 0.9.8:
- Updated Brazilian Portuguese translations.
- Updated Japanese translations.
- Updated Russian translations.
What is new in version 0.9.7:
- Japanese translation.
- Replaced incorrect %{err} with correct ${err} in String.deserialize error message.
- name passed to a SchemaNode constructor was not respected in declaratively constructed schemas.
What is new in version 0.9.6:
- No longer runs on Python 2.4 or 2.5. Python 2.6+ is now required.
- Python 3.2 compatibility.
- Removed a dependency on the iso8601 package (code from the package is now inlined in Colander itself).
- Added copyright and licensing information for iso8601-derived code to LICENSE.txt.
What is new in version 0.9.5:
- Added Czech translation.
- Compile pt_BR translation (it was previously uncompiled).
- Minor docs fixes.
- Documentation added about flatten and unflatten.
What is new in version 0.9.4:
- flatten now only includes leaf nodes in the flattened dict.
- flatten does not include a path element for the name of the type node for sequences.
- unflatten is implemented.
- Added __setitem__ to SchemaNode, allowing replacement of nodes by name.
- Added get_value and set_value methods to Schema which allow access and mutation of appstructs using dotted name paths.
- Add Swedish, French, Chinese translations.
What is new in version 0.9.3:
- Add Time type.
- Add Dutch translation.
- Fix documentation: 0.9.2 requires deserialize of types to explicitly deal with the potential to receive colander.null.
- Use default_tzinfo when deserializing naive datetimes.
- Allow default_tzinfo to be None when creating a colander.DateTime.
- Add the ability to insert a colander.interfaces.Preparer between deserialization and validation. See the Preparing section in the documentation.
What is new in version 0.9.2:
- Added Polish translation.
- Moved to Pylons Project GitHub (https://github.com/Pylons/colander).
- Add tox.ini for testing purposes.
- New API: colander.required. Used as the marker value when a missing argument is left unspecified.
- Bug fix: if a title argument which is the empty string or None is passed explicitly to a SchemaNode, it is no longer replaced by a title computed from the name.
- Add SchemaNode.__contains__ to support "name in schema".
- SchemaNode deserialization now unconditionally calls the schema type's deserialize method to obtain an appstruct before attempting to validate. Third party schema types should now return colander.null if passed a colander.null value or another logically "empty" value as a cstruct during deserialize.
Requirements:
- Python 2.6 or higher
Comments not found