Skip to main content

Nested Extensions to Python dictionaries

Project description

Home Documentation Status Updates

Nested Extensions to Python dictionaries


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.


  • 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


0.1.2 (2019-05-02)

  • Remove Python 2 compatibility

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sndict-0.1.2.tar.gz (27.5 kB view hashes)

Uploaded source

Built Distribution

sndict-0.1.2-py2.py3-none-any.whl (15.9 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page