Registry / serialization / dict-recursive-update

dict-recursive-update

JSON →
library1.0.1pypypi✓ verified 86d ago

A lightweight Python library for recursively updating nested dictionaries. Version 1.0.1 supports merging dict-like objects with customizable merge strategies. Currently in maintenance mode with no recent updates.

pip install dict-recursive-update
INSTALL
IMPORT
SIG · DICT-RECURSIVE-UPD
D
dict-recursive-update
serializationpythonv1.0.1
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.1 · 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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.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.

recursive_update
from dict_recursive_update import recursive_update
from dict_recursive_update.recursive_update import recursive_update
Wrong path: the function is directly in the package, not in a submodule.

Deep merge d2 into d1, modifying a copy to avoid side effects.

from dict_recursive_update import recursive_update d1 = {'a': 1, 'b': {'c': 2}} d2 = {'b': {'d': 3}, 'e': 4} merged = recursive_update(d1.copy(), d2) print(merged)
Debug
Known issues
gotchaThe function mutates the first argument in-place. Always pass a copy if you want to preserve the original.
fix
Use recursive_update(d1.copy(), d2) instead of recursive_update(d1, d2).
affects: all
gotchaOnly works with dict-like objects. Passing lists or other iterables will raise an AttributeError.
fix
Ensure all nested structures are dictionaries or implement the dict interface.
affects: all
deprecatedThe package has no active development since 2019. Consider alternatives like deepmerge or dictdiffer for ongoing maintenance.
fix
Migrate to deepmerge (pip install deepmerge) for better features and support.
affects: 1.0.1
Errors
Common errors & fixes
AttributeError: 'list' object has no attribute 'keys'
Attempting to use recursive_update on a dictionary that contains lists as values.
fix
Ensure that nested values are dictionaries, not lists. If you need to merge lists, implement a custom strategy.
ImportError: cannot import name 'recursive_update' from 'dict_recursive_update'
Wrong import path; the function is not in a submodule.
fix
Use: from dict_recursive_update import recursive_update
Upgrade
Version history
1.0.1latest on PyPI · released Jan 23, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
dict-recursive-update — pip install dict-recursive-update · libregistry