utils¶
Functions¶
|
Load a JSON configuration file from the specified path and return it as a dictionary. |
|
Load a JSON file as a list of dictionaries. |
|
Create the directory for the specified file path if it does not already exist. |
|
|
|
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