Display TTY  1
Customise your terminal's output
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1"""
2# +==== BEGIN display_tty =================+
3# LOGO:
4# ..@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
5# .@...........................#@
6# @############################.@
7# @...........................@.@
8# @..#######################..@.@
9# @.#########################.@.@
10# @.##>_#####################.@.@
11# @.#########################.@.@
12# @.#########################.@.@
13# @.#########################.@.@
14# @.#########################.@.@
15# @..#######################..@.@
16# @...........................@.@
17# @..+----+______________.....@.@
18# @..+....+______________+....@.@
19# @..+----+...................@.@
20# @...........................@.#
21# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.
22# /STOP
23# PROJECT: display_tty
24# FILE: __init__.py
25# CREATION DATE: 06-11-2025
26# LAST Modified: 13:8:51 06-11-2025
27# DESCRIPTION:
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.
29# @file __init__.py
30# @brief This file links the disp file to the module, enabling it to be imported as a module.
31# /STOP
32# COPYRIGHT: (c) Henry Letellier
33# PURPOSE: File in charge of containing the imports to easily use the internal elements from the module.
34# // AR
35# +==== END display_tty =================+
36"""
37
38from .my_disp import Disp
39from .initialiser import initialise_logger
40from .aliases import init, initialise
41from .aliases import OSTRING, ODEFAULT, OFILE, OTTY
42from .aliases import KOUTPUT_MODE, KPRETTIFY_OUTPUT, KANIMATION_DELAY, KANIMATION_DELAY_BLOCKY, KPRETTIFY_OUTPUT_IN_BLOCKS
43from .colours import LoggerColours
44from .instances import IDISP, IDISPLAY, IDISPTTY, IDTTY
45from .constants import TOML_CONF
46from .constants import ERR, ERROR, SUCCESS
47from .constants import SAVE_TO_FILE, FILE_NAME, FILE_DESCRIPTOR
48from .constants import OUT_TTY, OUT_STRING, OUT_FILE, OUT_DEFAULT
49from .constants import FORBIDDEN_NUMBER_LOG_LEVELS_CORRESPONDANCE, FORBIDDEN_NUMBER_LOG_LEVELS
50from .constants import KEY_OUTPUT_MODE, KEY_PRETTIFY_OUTPUT, KEY_PRETTIFY_OUTPUT_IN_BLOCKS, KEY_ANIMATION_DELAY, KEY_ANIMATION_DELAY_BLOCKY
51
52TMP = None # linter bypass for a false positive of statement has no effect
53
54# Module Exports
55"""
56@var __all__
57@brief List of all public symbols exported by this module.
58"""
59__all__ = [
60 # Class
61 # |- Colour tracking
62 "LoggerColours",
63 # |- Non-initialised instances
64 "Disp",
65 # \-Initialised instances
66 "IDISP",
67 "IDISPLAY",
68 "IDISPTTY",
69 "IDTTY",
70 # Constants
71 # |- Statuses
72 "ERR",
73 "ERROR",
74 "SUCCESS",
75 # |- Output modes
76 # | |- full names
77 "OUT_TTY",
78 "OUT_FILE",
79 "OUT_STRING",
80 "OUT_DEFAULT",
81 # | \- short names
82 "OTTY",
83 "OFILE",
84 "OSTRING",
85 "ODEFAULT",
86 # |- Configuration
87 "TOML_CONF",
88 # |- setting names
89 # | |- full names
90 "KEY_OUTPUT_MODE",
91 "KEY_PRETTIFY_OUTPUT",
92 "KEY_PRETTIFY_OUTPUT_IN_BLOCKS",
93 "KEY_ANIMATION_DELAY",
94 "KEY_ANIMATION_DELAY_BLOCKY",
95 # | \- short names
96 "KOUTPUT_MODE",
97 "KPRETTIFY_OUTPUT",
98 "KANIMATION_DELAY",
99 "KANIMATION_DELAY_BLOCKY",
100 "KPRETTIFY_OUTPUT_IN_BLOCKS",
101 # |- default settings presets values
102 # | |- Output to file
103 "SAVE_TO_FILE",
104 # | |- File name
105 "FILE_NAME",
106 # | |- File descriptor
107 "FILE_DESCRIPTOR",
108 # |- Logging level exceptions
109 "FORBIDDEN_NUMBER_LOG_LEVELS_CORRESPONDANCE",
110 "FORBIDDEN_NUMBER_LOG_LEVELS",
111 # |- Constructor functions for ease of initialisation
112 "init",
113 "initialise",
114 "initialise_logger",
115]