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.4.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for struct_tools-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30fae73692c6fc258c014b3be9b4353f7cc4264586136d5658d8aa69fa4d4f09 |
|
MD5 | 5c5c4b1e6a7fed442ddaf00203427777 |
|
BLAKE2b-256 | 6a70e7f21a7ecb5853b8bda03e269869b98446337d1cccc38cdde84e0d82188f |