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.

Files for sndict, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size sndict-0.1.2-py2.py3-none-any.whl (15.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sndict-0.1.2.tar.gz (27.5 kB) File type Source Python version None Upload date Hashes View

Supported by

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