{"id":23539,"library":"dict-recursive-update","title":"dict-recursive-update","description":"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.","status":"maintenance","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/Maples7/dict-recursive-update","tags":["dict","recursive","update","merge","deep-merge"],"install":[{"cmd":"pip install dict-recursive-update","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Wrong path: the function is directly in the package, not in a submodule.","wrong":"from dict_recursive_update.recursive_update import recursive_update","symbol":"recursive_update","correct":"from dict_recursive_update import recursive_update"}],"quickstart":{"code":"from dict_recursive_update import recursive_update\n\nd1 = {'a': 1, 'b': {'c': 2}}\nd2 = {'b': {'d': 3}, 'e': 4}\nmerged = recursive_update(d1.copy(), d2)\nprint(merged)","lang":"python","description":"Deep merge d2 into d1, modifying a copy to avoid side effects."},"warnings":[{"fix":"Use recursive_update(d1.copy(), d2) instead of recursive_update(d1, d2).","message":"The function mutates the first argument in-place. Always pass a copy if you want to preserve the original.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure all nested structures are dictionaries or implement the dict interface.","message":"Only works with dict-like objects. Passing lists or other iterables will raise an AttributeError.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to deepmerge (pip install deepmerge) for better features and support.","message":"The package has no active development since 2019. Consider alternatives like deepmerge or dictdiffer for ongoing maintenance.","severity":"deprecated","affected_versions":"1.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure that nested values are dictionaries, not lists. If you need to merge lists, implement a custom strategy.","cause":"Attempting to use recursive_update on a dictionary that contains lists as values.","error":"AttributeError: 'list' object has no attribute 'keys'"},{"fix":"Use: from dict_recursive_update import recursive_update","cause":"Wrong import path; the function is not in a submodule.","error":"ImportError: cannot import name 'recursive_update' from 'dict_recursive_update'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}