dicogis.utils.str2bool module¶
Basic string to bool.
- dicogis.utils.str2bool.str2bool(input_var, raise_exc=False)¶
Determine if a string is a bool and, if so, convert it.
- Parameters:
- Raises:
ValueError – input_var is not in true and false sets
TypeError – if input_var is not a str or a bool
- Returns:
True if input_var is in _true_set, False if it’s in _false_set.
- Return type:
None or Exception if not in any of two sets.