Changelog¶
0.6 (unreleased)¶
Note
While unreleased, the changelog of lima 0.6 is itself subject to change.
0.5 (2015-05-11)¶
- Support getting field values from an object’s items by providing the
keyargument to a Field constructor. - Add a
fields.Decimalfield type that packsdecimal.Decimalvalues into strings. - Move Tests into directory
/test. - Remove deprecated field
fields.Nested. Usefields.Embedinstead.
0.4 (2015-01-15)¶
Breaking Change: The
Schema.dumpmethod no longer supports themanyargument. This makesmanyconsistent withorderedand simplifies internals.Improve support for serializing linked data:
- Add new field type
fields.Referencefor references to linked objects. - Add new name for
fields.Nested:fields.Embed. Deprecatefields.Nestedin favour offields.Embed.
- Add new field type
Add read-only properties
manyandorderedfor schema objects.Don’t generate docs for internal modules any more - those did clutter up the documentation of the actual API (the docstrings remain though).
Implement lazy evaluation and caching of some attributes (affects methods:
Schema.dump,Embed.packandReference.pack). This means stuff is only evaluated if and when really needed, but it also means:- The very first time data is dumped/packed by a Schema/Embed/Reference object, there will be a tiny delay. Keep objects around to mitigate this effect.
- Some errors might surface at a later time. lima mentions this when raising exceptions though.
Allow quotes in field names.
Small speed improvement when serializing collections.
Remove deprecated name
fields.type_mapping. Usefields.TYPE_MAPPINGinstead.Overall cleanup, improvements and bug fixes.
0.3.1 (2014-11-11)¶
- Fix inconsistency in changelog.
0.3 (2014-11-11)¶
Support dumping of
OrderedDictobjects by providingordered=Trueto a Schema constructor.Implement field name mangling:
at__foobecomes@foofor fields specified as class attributes.Support constant field values by providing
valto a Field constructor.Add new ways to specify a schema’s fields:
- Add support for
__lima_args__['only']on schema definition - Add include parameter to Schema constructor
This makes specifying fields on schema definition (
__lima_args__- options include, exclude, only) consistent with specifying fields on schema instantiation (schema constructor args include, exclude, only).- Add support for
Deprecate
fields.type_mappingin favour offields.TYPE_MAPPING.Improve the documentation.
Overall cleanup, improvements and bug fixes.
0.2.2 (2014-10-27)¶
- Fix issue with package not uploading to PYPI
- Fix tiny issues with illustration
0.2.1 (2014-10-27)¶
- Fix issues with docs not building on readthedocs.org
0.2 (2014-10-27)¶
- Initial release