email_notification.utils

email_notification.utils.utils module

email_notification.utils.utils.logger(logger_name='email_notification.utils.utils', filename='log.log', level=10)[source]

logger for logging

Args:
logger_name:str
name of logger
filename:str
path and file name
level:str
logging level
Return:
logger funcation for logging:logger
email_notification.utils.utils.read_config(filename)[source]

Parse config yaml file

Args:
filename:str
path of config file
email_notification.utils.utils.walk_directory(dir_path, files_only=True)[source]

Get list of all file in directory recursive

Args:
dir_path:str
parent directory to start
files_only:bool
get list of files only other
Return:
If file only than list of all files otherwise files and list of directories