Utilities#
Utilities
This code provides utility functions used throughout the module.
- lambdaHandlers.utilities.debug_print(*args)#
Print if in debugging mode
- lambdaHandlers.utilities.is_error_string(return_value)#
Check if return value is error message
>>> is_error_string(42) False >>> is_error_string("Some message") False >>> is_error_string("ERROR: some error message") True
- lambdaHandlers.utilities.to_float(string)#
Convert string to float
>>> to_float("42.0") 42.0
- lambdaHandlers.utilities.to_int(string)#
Convert string to int
>>> to_int("42") 42
- lambdaHandlers.utilities.to_string(number)#
Convert float/int to string
>>> to_string(13) '13'