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 CHANGED
@@ -19,7 +19,7 @@
19
19
  • REGEX PATTERN TEMPLATES xx.Regex
20
20
  """
21
21
 
22
- __version__ = "1.6.1"
22
+ __version__ = "1.6.3"
23
23
  __author__ = "XulbuX"
24
24
  __email__ = "xulbux.real@gmail.com"
25
25
  __license__ = "MIT"
xulbux/_consts_.py CHANGED
@@ -58,12 +58,12 @@ class ANSI:
58
58
 
59
59
  global CHAR, START, SEP, END
60
60
 
61
- char_esc = r"\x1b"
61
+ escaped_char = "\\x1b"
62
62
  CHAR = char = "\x1b"
63
63
  START = start = "["
64
64
  SEP = sep = ";"
65
65
  END = end = "m"
66
- modifier = {"lighten": "+l", "darken": "-d"}
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
- ("bright:black", "br:black"): 90,
120
- ("bright:red", "br:red"): 91,
121
- ("bright:green", "br:green"): 92,
122
- ("bright:yellow", "br:yellow"): 93,
123
- ("bright:blue", "br:blue"): 94,
124
- ("bright:magenta", "br:magenta"): 95,
125
- ("bright:cyan", "br:cyan"): 96,
126
- ("bright:white", "br:white"): 97,
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
- ("bg:bright:black", "bg:br:black"): 100,
138
- ("bg:bright:red", "bg:br:red"): 101,
139
- ("bg:bright:green", "bg:br:green"): 102,
140
- ("bg:bright:yellow", "bg:br:yellow"): 103,
141
- ("bg:bright:blue", "bg:br:blue"): 104,
142
- ("bg:bright:magenta", "bg:br:magenta"): 105,
143
- ("bg:bright:cyan", "bg:br:cyan"): 106,
144
- ("bg:bright:white", "bg:br:white"): 107,
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
  }