xulbux 1.6.3__tar.gz → 1.6.4__tar.gz

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.

Files changed (32) hide show
  1. {xulbux-1.6.3/src/xulbux.egg-info → xulbux-1.6.4}/PKG-INFO +1 -1
  2. {xulbux-1.6.3 → xulbux-1.6.4}/pyproject.toml +1 -1
  3. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/__init__.py +1 -1
  4. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_format_codes.py +2 -2
  5. {xulbux-1.6.3 → xulbux-1.6.4/src/xulbux.egg-info}/PKG-INFO +1 -1
  6. {xulbux-1.6.3 → xulbux-1.6.4}/LICENSE +0 -0
  7. {xulbux-1.6.3 → xulbux-1.6.4}/README.md +0 -0
  8. {xulbux-1.6.3 → xulbux-1.6.4}/setup.cfg +0 -0
  9. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/_cli_.py +0 -0
  10. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/_consts_.py +0 -0
  11. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_code.py +0 -0
  12. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_color.py +0 -0
  13. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_console.py +0 -0
  14. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_data.py +0 -0
  15. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_env_path.py +0 -0
  16. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_file.py +0 -0
  17. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_json.py +0 -0
  18. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_path.py +0 -0
  19. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_regex.py +0 -0
  20. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_string.py +0 -0
  21. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux/xx_system.py +0 -0
  22. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux.egg-info/SOURCES.txt +0 -0
  23. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux.egg-info/dependency_links.txt +0 -0
  24. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux.egg-info/entry_points.txt +0 -0
  25. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux.egg-info/requires.txt +0 -0
  26. {xulbux-1.6.3 → xulbux-1.6.4}/src/xulbux.egg-info/top_level.txt +0 -0
  27. {xulbux-1.6.3 → xulbux-1.6.4}/tests/test_color.py +0 -0
  28. {xulbux-1.6.3 → xulbux-1.6.4}/tests/test_color_types.py +0 -0
  29. {xulbux-1.6.3 → xulbux-1.6.4}/tests/test_console_info.py +0 -0
  30. {xulbux-1.6.3 → xulbux-1.6.4}/tests/test_data.py +0 -0
  31. {xulbux-1.6.3 → xulbux-1.6.4}/tests/test_env_vars.py +0 -0
  32. {xulbux-1.6.3 → xulbux-1.6.4}/tests/test_format_codes.py +0 -0
@@ -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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xulbux"
7
- version = "1.6.3"
7
+ version = "1.6.4"
8
8
  authors = [{ name = "XulbuX", email = "xulbux.real@gmail.com" }]
9
9
  description = "A library which includes a lot of really helpful functions."
10
10
  readme = "README.md"
@@ -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"
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes