CADETProcess.dataStructure.nested_dict

CADETProcess.dataStructure.nested_dict#

Functions

check_nested(nested_dict, path)

Check if a key path exists in a nested dictionary.

generate_nested_dict(path[, value])

Generate a nested dictionary from a dot-separated path.

get_leaves(nested_dict)

Yield leaf keys of a nested dictionary in dot notation.

get_nested_attribute(obj, path)

Access a nested attribute using a dot-separated path.

get_nested_list_value(ls, idx_tuple)

Retrieve a value from a nested list structure using an index tuple.

get_nested_value(nested_dict, path)

Retrieve a value from a nested dictionary using a dot-separated path.

insert_path(nested_dict, path, value)

Add a key path to an existing dictionary without overwriting existing keys.

set_nested_attribute(obj, attr_string, value)

Set a nested attribute using a dot-separated path.

set_nested_list_value(ls, idx_tuple, value)

Set a value in a nested list structure using an index tuple.

set_nested_value(nested_dict, path, value)

Set a value in a nested dictionary using a dot-separated path.

update_dict_recursively(target_dict, updates)

Recursively update target_dict with values from updates.