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
File details
Details for the file dict-objectify-0.0.2.tar.gz
.
File metadata
- Download URL: dict-objectify-0.0.2.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13dd0a4e1e5521a5055518345472a34462d6c63238e9d6b17b09192cba81c83e |
|
MD5 | 505647668c837fea36d8796e6e897058 |
|
BLAKE2b-256 | ba4427918bc4c57e9c64c99fc22cd6a0faf12061c2b1c2e253b26a7de076c415 |
File details
Details for the file dict_objectify-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: dict_objectify-0.0.2-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5057d26e219334de093228b0a2102ad2c87501d5e97f7d999dcfb19d7de31533 |
|
MD5 | c652a5fa1f5c647cda4464656ba6dd26 |
|
BLAKE2b-256 | 7179846c682b5993d73052504ea6934ea99da06124766573a2372bb7b0ff8675 |