utils¶

Functions¶

load_config_file(→ dict)

Load a JSON configuration file from the specified path and return it as a dictionary.

load_json_as_list(→ list)

Load a JSON file as a list of dictionaries.

create_directory_for_file(→ None)

Create the directory for the specified file path if it does not already exist.

create_logger_file(log_path)

create_logger(name[, silent, to_disk, log_file])

Create a new logger

Module Contents¶

utils.load_config_file(path: str) dict¶

Load a JSON configuration file from the specified path and return it as a dictionary.

utils.load_json_as_list(input_file: str) list¶

Load a JSON file as a list of dictionaries.

utils.create_directory_for_file(file_path) None¶

Create the directory for the specified file path if it does not already exist.

utils.create_logger_file(log_path)¶
utils.create_logger(name, silent=False, to_disk=False, log_file=None)¶

Create a new logger