Utils Module

utils.utils.setup_logging(filename: str, log_level: str)[source]

Set up logging configuration.

Parameters

filenamestr

The name of the file to which logs will be written.

log_levelstr

The desired logging level, one of {‘DEBUG’, ‘INFO’, ‘WARNING’, ‘ERROR’, ‘CRITICAL’}.

Returns

None

Notes

The function configures the logging module to write logs to the specified file with the given level. If the provided log level is not recognized, it defaults to ‘INFO’.

class utils.utils.colors[source]

Bases: object

PURPLE = '\x1b[95m'
CYAN = '\x1b[96m'
DARKCYAN = '\x1b[36m'
BLUE = '\x1b[94m'
GREEN = '\x1b[92m'
YELLOW = '\x1b[93m'
RED = '\x1b[91m'
BOLD = '\x1b[1m'
UNDERLINE = '\x1b[4m'
END = '\x1b[0m'