data_helper.check module¶
Check for a condition
-
data_helper.check.has_whitespace(x)[source]¶ Returns True if x is a string that has whitespace, otherwise False is returned
Parameters: x (string) – Any string Returns: True if x is a string that has whitespace, otherwise False is returned Return type: bool
-
data_helper.check.is_bool(x)[source]¶ Returns True if x is boolean, otherwise False is returned
Parameters: x (bool) – True | False Returns: True if x is boolean, otherwise False is returned Return type: bool
-
data_helper.check.is_int(x)[source]¶ Returns True if x is an integer, otherwise False is returned
Parameters: x (int) – Any integer Returns: True if x is an integer, otherwise False is returned Return type: bool
-
data_helper.check.is_int_neg(x)[source]¶ Returns True if x is a negative integer, otherwise False is returned
Parameters: x (int) – Any integer Returns: True if x is a negative integer, otherwise False is returned Return type: bool
-
data_helper.check.is_int_not_neg(x)[source]¶ Returns True if x is zero or a positive integer, otherwise False is returned
Parameters: x (int) – Any integer Returns: True if x is zero of a positive integer, otherwise False is returned Return type: bool
-
data_helper.check.is_int_pos(x)[source]¶ Returns True if x is a positive integer, otherwise False is returned
Parameters: x (int) – Any integer Returns: True if x is a positive integer, otherwise False is returned Return type: bool
-
data_helper.check.is_list(x)[source]¶ Returns True if x is a list, otherwise False is returned
Parameters: x (list) – Any list Returns: True if x is a list, otherwise False is returned Return type: bool
-
data_helper.check.is_str(x)[source]¶ Returns True if x is a string, otherwise False is returned
Parameters: x (string) – Any string Returns: True if x is a string, otherwise False is returned Return type: bool