| |
- consume(data: Dict[Any, Any], key: Any, default: Any = None) -> Any
- Attempt to obtain dictionary data via key, removing the data if it was
present.
- limited(data: Dict[Any, Any], key: Any, value: Any = None) -> Iterator[NoneType]
- Ensure that dictionary data is only temporarily added.
- merge(dict_a: Dict[Any, Any], dict_b: Dict[Any, Any], path: List[str] = None, expect_overwrite: bool = False, logger: Union[logging.Logger, logging.LoggerAdapter[Any]] = None, strategy: vcorelib.dict.MergeStrategy = <MergeStrategy.RECURSIVE: 1>) -> Dict[Any, Any]
- Combine two dictionaries based on a provided merge strategy.
- merge_dicts(dicts: List[Dict[Any, Any]], expect_overwrite: bool = False, logger: Union[logging.Logger, logging.LoggerAdapter[Any]] = None, strategy: vcorelib.dict.MergeStrategy = <MergeStrategy.RECURSIVE: 1>) -> Dict[Any, Any]
- Merge a list of dictionary data into a single set (mutates the first
element).
- merge_recursive(dict_a: Dict[Any, Any], dict_b: Dict[Any, Any], path: List[str] = None, expect_overwrite: bool = False, logger: Union[logging.Logger, logging.LoggerAdapter[Any]] = None, strategy: vcorelib.dict.MergeStrategy = <MergeStrategy.RECURSIVE: 1>) -> Dict[Any, Any]
- Combine two dictionaries recursively, prefers dict_a in a conflict. For
values of the same key that are lists, the lists are combined. Otherwise
the resulting dictionary is cleanly merged.
- set_if_not(data: Dict[Any, Any], key: Any, value: Any = None) -> Any
- Set a value in a dictionary if one wasn't already set and return the value
that ends up at that key.
|