Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
dict-recursive-update
Advanced tools
.. image:: https://travis-ci.org/Maples7/dict-recursive-update.svg?branch=master :target: https://travis-ci.org/Maples7/dict-recursive-update
.. image:: https://img.shields.io/pypi/v/dict-recursive-update.svg :target: https://pypi.python.org/pypi/dict-recursive-update
A Python module who does recursive update work on 2 dicts.
.. code:: shell
pip install dict-recursive-update
.. code:: python
>>> from dict_recursive_update import recursive_update
>>> recursive_update({'a': {'b': 2}}, {'a': {'b': 3, 'd': 4}, 'e': 5})
{'a': {'b': 3, 'd': 4}, 'e': 5}
>>> recursive_update('a', 'b')
Traceback (most recent call last):
...
TypeError: Params of recursive_update should be dicts
>>> recursive_update({'a': [1]}, {'a': [2], 'c': {'d': {'c': 3}}})
{'a': [2], 'c': {'d': {'c': 3}}}
>>> recursive_update({'a': {'c': 1, 'd': {}}, 'b': 4}, {'b': 5})
{'a': {'c': 1, 'd': {}}, 'b': 5}
>>> recursive_update({'a': {'c': 1, 'd': {}}, 'b': 4}, {'a': 2})
{'a': 2, 'b': 4}
This is originally designed for merge multiple configurations in different running environment such as production or stage.
As a node.js developer, package config <https://github.com/lorenwest/node-config>
_ and lodash <https://github.com/lodash/lodash>
_ are very handy for me. This package is the base of a python-version config package <https://github.com/Maples7/py-config>
_.
In a normal project, there is usually a copy of default configuration, but when we deploy it, some configurations differ from default ones like database address. So a handy configuration-loading package is supposed to load right configurations according to the running environment.
MIT <./LICENSE.txt>
_
FAQs
A Python module who does recursive update work on 2 dicts.
We found that dict-recursive-update demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.