Install & Compatibility
Where this runs
tested against v4.1.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
deep_get
✓ from dict_deep import deep_get
✗ from dictdeep import deep_get
Package name uses underscore, not hyphen.
deep_set
✓ from dict_deep import deep_set
✗ from dict_deep import deep_set (same as correct, no common wrong import for this symbol)
Demonstrates basic deep_get and deep_set with dot-notation strings.
from dict_deep import deep_get, deep_set
nested = {'a': {'b': {'c': 42}}}
# Get value using dot-separated key
val = deep_get(nested, 'a.b.c')
print(val) # 42
# Set value using dot-separated key
deep_set(nested, 'a.b.c', 99)
print(nested['a']['b']['c']) # 99
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'dict_deep'
Attempting to import using hyphen in the package name: 'import dict-deep' is invalid.
fixUse the correct import: from dict_deep import deep_get
TypeError: 'int' object is not subscriptable
deep_set tries to traverse into an existing leaf value (e.g., an integer) to create nested dicts, but it can't override a non-dict.
fixEnsure that intermediate keys point to a dict or are not set as leaf values before calling deep_set.
Upgrade
Version history
4.1.2latest on PyPI · released Apr 19, 2020
Audit
Dependencies
No dependency data recorded yet.