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.2.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for struct_tools-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acafc3a30d89831570b4aa826c392993bf72a3bf39ecba2673244cacb0aa8f5b |
|
MD5 | a43f5bc38950381050c52b94e0008f7c |
|
BLAKE2b-256 | b16f8cf4c869c0fa5e8998a2d4b1111e30c2b508ffe4f8bff0ef10907d63c063 |