get_bool

sofia_redux.scan.utilities.utils.get_bool(value, default=False)[source]

Return a bool representation of the given value.

Parameters:
valuething

The value to resolve.

defaultbool, optional

The default result to return if a conversion is not possible, or value matches the UNKNOWN_BOOL_VALUE.

Returns:
bool