etl_lib.core.utils module

add_sigint_handler(handler_to_add)[source]

Register handler_to_add(signum, frame) to run on Ctrl-C, chaining any previously registered handler afterward.

merge_summery(summery_1, summery_2)[source]

Helper function to merge dicts. Assuming that values are numbers. If a key exists in both dicts, then the result will contain a key with the added values.

Return type:

dict

Parameters:
setup_logging(log_file=None)[source]

Set up the logging. INFO is used for the root logger. Via ETL_LIB_LOG_LEVEL environment variable, the log level of the library itself can be set to another level. It also defaults to INFO.