robust_bool

sofia_redux.toolkit.utilities.func.robust_bool(value)[source]

Check for ‘truthy’ values.

Returns True if the case-insensitive string representation is ‘y’, ‘1’, ‘true’, or ‘yes; False otherwise.

Parameters:
valuestr, bool, or int

The value to test

Returns:
bool

True if value appears to indicate “True”. False otherwise.