optframework.utils.func.print module
Created on Tue Aug 26 11:09:33 2025
@author: px2030
- optframework.utils.func.print.print_highlighted(message, title=None, color='yellow', separator=True, timestamp=True, width=80)[source]
Print a highlighted message with optional color, timestamp, and separator.
- Parameters:
message (str): The message to print. title (str, optional): Title for the message (e.g., “WARNING”, “INFO”). color (str, optional): Color of the message (“red”, “green”, “yellow”, “blue”, “cyan”, etc.). separator (bool, optional): Whether to print a separator line before the message. timestamp (bool, optional): Whether to include a timestamp. width (int, optional): The width of the separator line.
- Colors supported:
“red”, “green”, “yellow”, “blue”, “magenta”, “cyan”, “white”