{"id":24104,"library":"ndicts","title":"ndicts","description":"ndicts provides a nested dictionary class (ndict) that supports dot-notation access and manipulation of nested structures. Version 0.3.0 is the latest, targeting Python 3.8+. Release cadence is sporadic.","status":"active","version":"0.3.0","language":"python","source_language":"en","source_url":"https://github.com/edd313/ndicts","tags":["nested-dict","dot-notation","dict-utils"],"install":[{"cmd":"pip install ndicts","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Wrong submodule path; NestedDict is exported from the top-level package.","wrong":"from ndicts.ndict import NestedDict","symbol":"NestedDict","correct":"from ndicts import NestedDict"}],"quickstart":{"code":"from ndicts import NestedDict\nnd = NestedDict({'a': {'b': 1}})\nprint(nd['a.b'])  # access via dot notation\nnd['a.c'] = 2\nprint(nd.to_dict())","lang":"python","description":"Create a NestedDict, access and set values with dot-notation keys, and convert back to a plain dict."},"warnings":[{"fix":"Use bracket access with tuple keys or set a custom delimiter via NestedDict(delimiter='|').","message":"Dot notation keys like 'a.b' will be split on dots. If your actual keys contain dots, use a different delimiter or avoid dot-notation access.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Python 3.7+ or wrap in OrderedDict if necessary.","message":"NestedDict does not preserve insertion order in Python <3.7 (though Python 3.8+ does). Relying on order may break in older Python versions if backporting.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use tuple keys like ('a', 'b') or check the key exists with 'in'.","cause":"Using dot notation on a NestedDict that doesn't have nested keys, or the key is ambiguous because a key literally contains a dot.","error":"KeyError: 'a.b'"},{"fix":"Upgrade to latest: pip install --upgrade ndicts. On older versions use dict(nd) or nd.flat().","cause":"Calling to_dict() on older version before 0.3.0; method may be named differently or not exist.","error":"AttributeError: 'NestedDict' object has no attribute 'to_dict'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}