Skip to content

utils

General utility functions.

case_insensitive_string_compare

case_insensitive_string_compare(a, b)

Compare a and b, stripping whitespace and ignoring case.

dataclass_as_dict_shallow

dataclass_as_dict_shallow(dataclass, *, exclude_none=False)

Convert a dataclass to dict, without deepcopy.