xulbux 1.6.3__py3-none-any.whl → 1.6.4__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.3"
22
+ __version__ = "1.6.4"
23
23
  __author__ = "XulbuX"
24
24
  __email__ = "xulbux.real@gmail.com"
25
25
  __license__ = "MIT"
xulbux/xx_format_codes.py CHANGED
@@ -232,7 +232,7 @@ class FormatCodes:
232
232
  FormatCodes.__config_console()
233
233
  user_input = input(FormatCodes.to_ansi(str(prompt), default_color, brightness_steps))
234
234
  if reset_ansi:
235
- _sys.stdout.write("\x1b[0m")
235
+ _sys.stdout.write(f"{ANSI.char}[0m")
236
236
  return user_input
237
237
 
238
238
  @staticmethod
@@ -331,6 +331,7 @@ class FormatCodes:
331
331
  @staticmethod
332
332
  def __config_console() -> None:
333
333
  """Configure the console to be able to interpret ANSI formatting."""
334
+ global _CONSOLE_ANSI_CONFIGURED
334
335
  if not _CONSOLE_ANSI_CONFIGURED:
335
336
  _sys.stdout.flush()
336
337
  kernel32 = _ctypes.windll.kernel32
@@ -338,7 +339,6 @@ class FormatCodes:
338
339
  mode = _ctypes.c_ulong()
339
340
  kernel32.GetConsoleMode(h, _ctypes.byref(mode))
340
341
  kernel32.SetConsoleMode(h, mode.value | 0x0004)
341
- global _CONSOLE_ANSI_CONFIGURED
342
342
  _CONSOLE_ANSI_CONFIGURED = True
343
343
 
344
344
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: xulbux
3
- Version: 1.6.3
3
+ Version: 1.6.4
4
4
  Summary: A library which includes a lot of really helpful functions.
5
5
  Author-email: XulbuX <xulbux.real@gmail.com>
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- xulbux/__init__.py,sha256=h83nzup1ahYhyQLejyU2uA3Ddb-gDTkGeQh6vV1naL0,1658
1
+ xulbux/__init__.py,sha256=VbGUDMdLbSCMOJk62Fm7QTSyKiC9AtQmO_VutJgjwIY,1658
2
2
  xulbux/_cli_.py,sha256=U25ZrtpQgpKXtvOSTBBbh7-AJ_WTeZ95A66DQARAqzo,3558
3
3
  xulbux/_consts_.py,sha256=0JWj691rOojP8KKE_AJpF8O5WwMRJH4fAvzkwLXd1VM,4591
4
4
  xulbux/xx_code.py,sha256=yBP5WxCxNxjBiS6nVAmUBJpD0hX6fgnh5RWq-NmrnaY,5222
@@ -7,15 +7,15 @@ xulbux/xx_console.py,sha256=rd31686X9eXB8__lcLaV7unWzIdXGM2yMOt9zNCsGbs,15079
7
7
  xulbux/xx_data.py,sha256=OEKLbI1XeNTrittdz3s3mvQk8YrBoSovj9O1H-b7ArY,25844
8
8
  xulbux/xx_env_path.py,sha256=iv3Jw0TsNDbbL_NySnazvIP9Iv9swymhiJIr2B3EG8k,4388
9
9
  xulbux/xx_file.py,sha256=-58YnqKvrs5idIF91UzEki7o7qnskFvnQYkBaRrp7Vw,3122
10
- xulbux/xx_format_codes.py,sha256=Qibr5CbV-Ow7l-TTPElfnU_yZELFaD86CFkdKU-7m4Y,19832
10
+ xulbux/xx_format_codes.py,sha256=ywF0MfGZRlWuYopLUAFBm9g-vAkXE8IIumII90gaCIE,19836
11
11
  xulbux/xx_json.py,sha256=q60lOj8Xg8c4L9cBu6SBZdJzFC7QbjDfFwcKKzBKj5w,5173
12
12
  xulbux/xx_path.py,sha256=_xkH9cowPdi3nHw2q_TvN_i_5oG6GJut-QwPBLxnrAQ,4519
13
13
  xulbux/xx_regex.py,sha256=S1-MIk2qG4vHdxuaHGhMe5PHfY1SF9kncg8iQ8HJgS4,8002
14
14
  xulbux/xx_string.py,sha256=Wa3qHxnk7AIpAVAn1vI_GBtkfYFwy4F_Xtj83ojEPKc,7168
15
15
  xulbux/xx_system.py,sha256=M3VGU3Tf3nDU59DjIJgDXJOqNB80Vr0wf15Vcnb5UCo,6430
16
- xulbux-1.6.3.dist-info/LICENSE,sha256=6NflEcvzFEe8_JFVNCPVwZBwBhlLLd4vqQi8WiX_Xk4,1084
17
- xulbux-1.6.3.dist-info/METADATA,sha256=dYwkecrzpal4hVChJVdbk0HYdJXluT5-8xxBqTj33xM,6948
18
- xulbux-1.6.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
19
- xulbux-1.6.3.dist-info/entry_points.txt,sha256=a3womfLIMZKnOFiyy-xnVb4g2qkZsHR5FbKKkljcGns,94
20
- xulbux-1.6.3.dist-info/top_level.txt,sha256=FkK4EZajwfP36fnlrPaR98OrEvZpvdEOdW1T5zTj6og,7
21
- xulbux-1.6.3.dist-info/RECORD,,
16
+ xulbux-1.6.4.dist-info/LICENSE,sha256=6NflEcvzFEe8_JFVNCPVwZBwBhlLLd4vqQi8WiX_Xk4,1084
17
+ xulbux-1.6.4.dist-info/METADATA,sha256=TabSXy5WGWo8P5zrwjklaOnO73Ay3JeHn3MA16nT33U,6948
18
+ xulbux-1.6.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
19
+ xulbux-1.6.4.dist-info/entry_points.txt,sha256=a3womfLIMZKnOFiyy-xnVb4g2qkZsHR5FbKKkljcGns,94
20
+ xulbux-1.6.4.dist-info/top_level.txt,sha256=FkK4EZajwfP36fnlrPaR98OrEvZpvdEOdW1T5zTj6og,7
21
+ xulbux-1.6.4.dist-info/RECORD,,
File without changes