2# +==== BEGIN display_tty =================+
4# ..@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
5# .@...........................#@
6# @############################.@
7# @...........................@.@
8# @..#######################..@.@
9# @.#########################.@.@
10# @.##>_#####################.@.@
11# @.#########################.@.@
12# @.#########################.@.@
13# @.#########################.@.@
14# @.#########################.@.@
15# @..#######################..@.@
16# @...........................@.@
17# @..+----+______________.....@.@
18# @..+....+______________+....@.@
19# @..+----+...................@.@
20# @...........................@.#
21# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.
25# CREATION DATE: 06-11-2025
26# LAST Modified: 13:48:5 06-11-2025
28# A module that allows you to display text with a few boilers (i.e. put your text in a square for titles). It also allows to log to the terminal by wrapping around the logging library.
30# @brief This file initializes the `display_tty` library, making its components accessible for external use.
32# This module serves as the entry point for the `display_tty` library. It imports and rebinds various classes, constants,
33# and configurations from the `src` submodule, allowing users to easily access and utilize them in their programs.
35# The file also defines aliases for certain classes and constants to provide flexibility in naming conventions.
36# Additionally, it exposes a comprehensive list of public symbols via the `__all__` variable, ensuring proper encapsulation
37# and controlled access to the library's components.
40# - Rebinds the `Disp` class to multiple aliases for convenience.
41# - Provides a set of predefined color constants for logging purposes.
42# - Exposes configuration keys and default settings for output modes and animations.
43# - Includes constants for logging statuses and forbidden log levels.
45# @note This file is automatically imported when the `display_tty` library is used in another Python program.
48# @see src/LoggerColours
50# COPYRIGHT: (c) Henry Letellier
51# PURPOSE: File in charge of allowing the module to be easily imported into other programs.
53# +==== END display_tty =================+
57from .src
import LoggerColours
58from .src
import init, initialise, initialise_logger
59from .src
import TOML_CONF
60from .src
import ERR, ERROR, SUCCESS
61from .src
import OSTRING, ODEFAULT, OFILE, OTTY
62from .src
import IDISP, IDISPLAY, IDISPTTY, IDTTY
63from .src
import SAVE_TO_FILE, FILE_NAME, FILE_DESCRIPTOR
64from .src
import OUT_TTY, OUT_STRING, OUT_FILE, OUT_DEFAULT
65from .src
import FORBIDDEN_NUMBER_LOG_LEVELS_CORRESPONDANCE, FORBIDDEN_NUMBER_LOG_LEVELS
66from .src
import KEY_OUTPUT_MODE, KEY_PRETTIFY_OUTPUT, KEY_PRETTIFY_OUTPUT_IN_BLOCKS, KEY_ANIMATION_DELAY, KEY_ANIMATION_DELAY_BLOCKY
67from .src
import KOUTPUT_MODE, KPRETTIFY_OUTPUT, KANIMATION_DELAY, KANIMATION_DELAY_BLOCKY, KPRETTIFY_OUTPUT_IN_BLOCKS
85DisplayLoggerColours = LoggerColours
91LOG_BLUE = LoggerColours.BLUE
92LOG_RED = LoggerColours.RED
94LOG_CYAN = LoggerColours.CYAN
96LOG_BLACK = LoggerColours.BLACK
98LOG_GREEN = LoggerColours.GREEN
100LOG_WHITE = LoggerColours.WHITE
102LOG_YELLOW = LoggerColours.YELLOW
104LOG_PURPLE = LoggerColours.PURPLE
106LOG_LIGHT_RED = LoggerColours.LIGHT_RED
108LOG_LIGHT_BLUE = LoggerColours.LIGHT_BLUE
110LOG_LIGHT_CYAN = LoggerColours.LIGHT_CYAN
112LOG_LIGHT_WHITE = LoggerColours.LIGHT_WHITE
114LOG_LIGHT_BLACK = LoggerColours.LIGHT_BLACK
116LOG_LIGHT_GREEN = LoggerColours.LIGHT_GREEN
118LOG_LIGHT_YELLOW = LoggerColours.LIGHT_YELLOW
120LOG_LIGHT_PURPLE = LoggerColours.LIGHT_PURPLE
127 "DisplayLoggerColours",
162 "KEY_PRETTIFY_OUTPUT",
164 "KEY_PRETTIFY_OUTPUT_IN_BLOCKS",
166 "KEY_ANIMATION_DELAY",
168 "KEY_ANIMATION_DELAY_BLOCKY",
176 "KANIMATION_DELAY_BLOCKY",
178 "KPRETTIFY_OUTPUT_IN_BLOCKS",
189 "FORBIDDEN_NUMBER_LOG_LEVELS_CORRESPONDANCE",
191 "FORBIDDEN_NUMBER_LOG_LEVELS",