Nested Extensions to Python dictionaries
Project description
Home
Nested Extensions to Python dictionaries
Free software: MIT license
Documentation: https://sndict.readthedocs.io
Introduction
This module provides extensions to dicts in the python standard library, providing fast and clean manipulation of nested dictionary structures. This module exposes two new dict-types:
NestedDict/ndict: A light-weight wrapper for dict s that provides additional functionality for operations on nested dictionary structures.
StructuredNestedDict/sndict: A heavy-weight data dict -based structure for operating on hierarchical data with rich functionality for filtering and transformation across nested levels.
Both implementations are use OrderedDict s under the hood.
No additional dependencies are required.
Features
- NestedDict/ndict:
Iterating over flattened keys and values
Nested getting/setting operations
Applicable to dictionaries of arbitrary and unbalanced depth
- StructuredNestedDict/sndict:
flatten/stratify/rearrange methods allow for powerful and rich operations across different levels of hierarchy
Nested getting/setting operations, including intelligent filtering via ix
Convenient data inspection via dim, unique_keys, etc
History
0.1.1 (2017-03-15)
- Minor functionality update:
unique_keys
to_tree_string
Improved filtering/indexing
Documentation
0.1.0 (2017-03-14)
Initial Version with basic functionality
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
Hashes for sndict-0.1.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a15c1186149630aa33d77f31f4794b7ba2f9ee075ea96cd91e3772f9279a2f |
|
MD5 | 1d04d0757f2b7adeca69aef0e3b7c219 |
|
BLAKE2b-256 | 92f3ddd3f5312ec53136e72d6c6fcffbba47fe40223cb7e220ba0308294a6c4a |