Usage
Installation
To use merge_dicts, first install it using pip:
(.venv) $ pip install merge_dicts
Merge dictionaries
To merge dictionaries, you can use the merge_dicts.merge_dicts()
function:
- merge_dicts.merge_dicts(*dict_args: [{}]) [{}, <class 'bool'>] [source]
merge_dicts: Given dictionaries are merge into a new dict.
- Parameters:
dict_args (dict or list(dict) or None) – Optional “dict_args” as list of dict.
- Raises:
AttributeError – If the dict_args is invalid.
- Returns:
merged dict and list of merge conflicts.
- Return type:
list(dict, list)
For example:
import merge_dicts
print(merge_dicts.merge_dicts())
Diagram:
UML Diagram