Load and dump data from json-like format into typed data structures
Project description
Manipulating data loaded from json is very error prone.
If the format changes unexpectedly, errors arise at the time of use, fields can disappear or change type.
This library allows loading data using NamedTuple and similar type hints, to obtain a more safe to use data structure. All exceptions will be generated in a single point, when loading, rather than in multiple points, when using.
It also provides a module to do the opposite and revert back to something that can be converted to json.
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
typedload-1.6.tar.gz
(7.2 kB
view hashes)