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.7.tar.gz
(7.2 kB
view details)
File details
Details for the file typedload-1.7.tar.gz
.
File metadata
- Download URL: typedload-1.7.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d59673881c3328621d171598c4537cb7aa6bb5229ed57a1fadde142aef089ab8 |
|
MD5 | f002060107c1029d0012d14e10fd1140 |
|
BLAKE2b-256 | 576ae925bf0d23c71a2ba7ba514d26c0922e9a6a2780a6faf696d819aed4c66d |