xulbux 1.6.1__py3-none-any.whl → 1.6.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xulbux might be problematic. Click here for more details.
- xulbux/__init__.py +1 -1
- xulbux/_consts_.py +18 -18
- xulbux/xx_color.py +102 -92
- xulbux/xx_console.py +0 -12
- xulbux/xx_env_path.py +1 -1
- xulbux/xx_format_codes.py +219 -95
- xulbux/xx_regex.py +41 -30
- xulbux/xx_system.py +53 -1
- {xulbux-1.6.1.dist-info → xulbux-1.6.3.dist-info}/METADATA +15 -15
- xulbux-1.6.3.dist-info/RECORD +21 -0
- xulbux-1.6.1.dist-info/RECORD +0 -21
- {xulbux-1.6.1.dist-info → xulbux-1.6.3.dist-info}/LICENSE +0 -0
- {xulbux-1.6.1.dist-info → xulbux-1.6.3.dist-info}/WHEEL +0 -0
- {xulbux-1.6.1.dist-info → xulbux-1.6.3.dist-info}/entry_points.txt +0 -0
- {xulbux-1.6.1.dist-info → xulbux-1.6.3.dist-info}/top_level.txt +0 -0
xulbux/__init__.py
CHANGED
xulbux/_consts_.py
CHANGED
|
@@ -58,12 +58,12 @@ class ANSI:
|
|
|
58
58
|
|
|
59
59
|
global CHAR, START, SEP, END
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
escaped_char = "\\x1b"
|
|
62
62
|
CHAR = char = "\x1b"
|
|
63
63
|
START = start = "["
|
|
64
64
|
SEP = sep = ";"
|
|
65
65
|
END = end = "m"
|
|
66
|
-
|
|
66
|
+
default_color_modifiers = {"lighten": "+l", "darken": "-d"}
|
|
67
67
|
|
|
68
68
|
def seq(parts: int = 1) -> str:
|
|
69
69
|
"""Generate an ANSI sequence with `parts` amount of placeholders."""
|
|
@@ -116,14 +116,14 @@ class ANSI:
|
|
|
116
116
|
"cyan": 36,
|
|
117
117
|
"white": 37,
|
|
118
118
|
########## BRIGHT DEFAULT CONSOLE COLORS ###########
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
"br:black": 90,
|
|
120
|
+
"br:red": 91,
|
|
121
|
+
"br:green": 92,
|
|
122
|
+
"br:yellow": 93,
|
|
123
|
+
"br:blue": 94,
|
|
124
|
+
"br:magenta": 95,
|
|
125
|
+
"br:cyan": 96,
|
|
126
|
+
"br:white": 97,
|
|
127
127
|
######## DEFAULT CONSOLE BACKGROUND COLORS #########
|
|
128
128
|
"bg:black": 40,
|
|
129
129
|
"bg:red": 41,
|
|
@@ -134,12 +134,12 @@ class ANSI:
|
|
|
134
134
|
"bg:cyan": 46,
|
|
135
135
|
"bg:white": 47,
|
|
136
136
|
##### BRIGHT DEFAULT CONSOLE BACKGROUND COLORS #####
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
"bg:br:black": 100,
|
|
138
|
+
"bg:br:red": 101,
|
|
139
|
+
"bg:br:green": 102,
|
|
140
|
+
"bg:br:yellow": 103,
|
|
141
|
+
"bg:br:blue": 104,
|
|
142
|
+
"bg:br:magenta": 105,
|
|
143
|
+
"bg:br:cyan": 106,
|
|
144
|
+
"bg:br:white": 107,
|
|
145
145
|
}
|