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.6.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for struct_tools-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2e4f5d4ab129429813d26208d0952f79a38dc7923115d30e64b489e4585d1b4 |
|
MD5 | 6e8dbb51d2406cf20017b756fc7a68a1 |
|
BLAKE2b-256 | a4af361915399cda7e202863468696625f589c9bad1a0ac88035111eece333ce |