Tools for working with dicts (and lists)
Project description
struc-tools
Tools for working with data containers/structures, i.e. lists, dicts, classes.
- Attribute-access and align-printed dicts.
- Print functionality also provided as class to be subclassed.
- Deep (nested) attribute access.
- Transposing dict-of-dicts, list-of-lists, and mixed.
- Dict intersection, complement.
- Cartesian product.
TODO
- Put DotDict and AlignedDict each in their own module
See alternatives:
- https://github.com/mewwts/addict
- https://github.com/ducdetronquito/scalpl
- https://github.com/srevenant/dictlib
- https://pypi.org/project/dict/
- https://pypi.org/project/dicty/
- https://pypi.org/project/print-dict/
- https://pypi.org/project/dictionaries/
- https://github.com/wolever/pprintpp
Answer SO.com questions: https://www.google.com/search?q=python+aligned+dict&oq=python+aligned+dict
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
struct-tools-0.2.5.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for struct_tools-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a179e05efd65685b02f2350f4c5e7ba6e4883121ddc6a0f687b67f48b8cc23f2 |
|
MD5 | 0b1676caa09de8bad0d9615fc35cebb6 |
|
BLAKE2b-256 | 55b728eb2a8f1f5e56f4d29a87461107c99faaa85bda4cbca00513548f63811f |