Dictionary to Object hierarchy mapper.
Project description
Dict Objectify (DO) allows specification of python classes hierarchy that are backed by dictionaries. Specification is done similar to ORM frameworks, by declaratively specifying dictionary keys as fields, Every field is defined as either nested (DO) class for nested dictionaries or one of the provided type classes for values of the type: int, float, text, bool, array, datetime or enum.
Mapping between dictionaries and these objects works both ways.
This allows easy parsing of hierarchical documents into python object hierarchy, doing pre processing on dict values, doing any kind of processing on that hierarchy and then transforming root objects back into dictionaries for eventual dumping into same document formats.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dict_objectify-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5057d26e219334de093228b0a2102ad2c87501d5e97f7d999dcfb19d7de31533 |
|
MD5 | c652a5fa1f5c647cda4464656ba6dd26 |
|
BLAKE2b-256 | 7179846c682b5993d73052504ea6934ea99da06124766573a2372bb7b0ff8675 |