caf.toolkit.toolbox#

A toolbox of generic useful functionality.

Most of these tools will be used elsewhere in the codebase too

Functions

combine_dict_list(dict_list, operation)

Combine a list of dictionaries.

compare_sets(set_a, set_b)

Check whether set_a and set_b are the same.

equal_ignore_order(one, two)

Check whether two iterables contain the same items, ignoring order.

get_missing_items(list_a, list_b)

Get a list of the items in each list, but not the other.

is_none_like(obj)

Check if an object is None-like.

is_unique_list(unique_vals)

Check whether a list contains unique values only.

list_safe_remove(lst, remove[, throw_error, ...])

Remove items from a list without raising an error.

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

TypeVar(name, *constraints[, bound, ...])

Type variable.