xulbux 1.6.9__py3-none-any.whl → 1.7.0__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
@@ -1,8 +1,8 @@
1
- __version__ = "1.6.9"
1
+ __version__ = "1.7.0"
2
2
  __author__ = "XulbuX"
3
3
  __email__ = "xulbux.real@gmail.com"
4
4
  __license__ = "MIT"
5
- __copyright__ = "Copyright (c) 2025 XulbuX"
5
+ __copyright__ = "Copyright (c) 2024 XulbuX"
6
6
  __url__ = "https://github.com/XulbuX/PythonLibraryXulbuX"
7
7
  __description__ = "A library which includes a lot of really helpful functions."
8
8
  __all__ = [
xulbux/_cli_.py CHANGED
@@ -7,11 +7,13 @@ from .xx_console import Console
7
7
  def help_command():
8
8
  """Show some info about the library, with a brief explanation of how to use it."""
9
9
  color = {
10
- "lib": COLOR.ice,
11
- "import": COLOR.red,
12
- "class": COLOR.lavender,
13
- "types": COLOR.lightblue,
10
+ "class": COLOR.tangerine,
11
+ "const": COLOR.red,
12
+ "func": COLOR.cyan,
13
+ "import": COLOR.neongreen,
14
+ "lib": COLOR.orange,
14
15
  "punctuators": COLOR.darkgray,
16
+ "code_border": COLOR.gray,
15
17
  }
16
18
  FormatCodes.print(
17
19
  rf""" [_|b|#7075FF] __ __
@@ -22,29 +24,20 @@ def help_command():
22
24
 
23
25
  [i|{COLOR.coral}]A TON OF COOL FUNCTIONS, YOU NEED![*]
24
26
 
25
- [b|#75A2FF]Usage:[*]
26
- [{color['punctuators']}]# GENERAL LIBRARY[*]
27
- [{color['import']}]import [{color['lib']}]xulbux [{color['import']}]as [{color['lib']}]xx[*]
28
- [{color['punctuators']}]# CUSTOM TYPES[*]
29
- [{color['import']}]from [{color['lib']}]xulbux [{color['import']}]import [{color['lib']}]rgba[{color['punctuators']}], [{color['lib']}]hsla[{color['punctuators']}], [{color['lib']}]hexa[*]
30
-
31
- [b|#75A2FF]Includes:[*]
32
- [dim]() CUSTOM TYPES:
33
- [dim](•) [{color['class']}]rgba[{color['punctuators']}]/([i|{color['types']}]int[_|{color['punctuators']}],[i|{color['types']}]int[_|{color['punctuators']}],[i|{color['types']}]int[_|{color['punctuators']}],[i|{color['types']}]float[_|{color['punctuators']}])[*]
34
- [dim](•) [{color['class']}]hsla[{color['punctuators']}]/([i|{color['types']}]int[_|{color['punctuators']}],[i|{color['types']}]int[_|{color['punctuators']}],[i|{color['types']}]int[_|{color['punctuators']}],[i|{color['types']}]float[_|{color['punctuators']}])[*]
35
- [dim](•) [{color['class']}]hexa[{color['punctuators']}]/([i|{color['types']}]str[_|{color['punctuators']}]|[i|{color['types']}]int[_|{color['punctuators']}])[*]
36
- [dim](•) CODE STRING OPERATIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]Code[*]
37
- [dim](•) WORKING WITH COLORS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]Color[*]
38
- [dim](•) CONSOLE LOG AND ACTIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]Console[*]
39
- [dim](•) PATH OPERATIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]Path[*]
40
- [dim](•) FILE OPERATIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]File[*]
41
- [dim](•) JSON FILE OPERATIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]Json[*]
42
- [dim](•) SYSTEM ACTIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]System[*]
43
- [dim](•) MANAGE THE ENV PATH VAR [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]EnvPath[*]
44
- [dim](•) EASY PRETTY PRINTING [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]FormatCodes[*]
45
- [dim](•) DATA OPERATIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]Data[*]
46
- [dim](•) STRING OPERATIONS [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]String[*]
47
- [dim](•) REGEX PATTERN TEMPLATES [{color['lib']}]xx[{color['punctuators']}].[{color['class']}]Regex[*]
27
+ [b|#FCFCFF]Usage:[*]
28
+ [dim|{color['code_border']}](╭────────────────────────────────────────────────────╮)
29
+ [dim|{color['code_border']}](│) [{color['punctuators']}]# CONSTANTS[*] [dim|{color['code_border']}](│)
30
+ [dim|{color['code_border']}](│) [{color['import']}]from [{color['lib']}]xulbux [{color['import']}]import [{color['const']}]COLOR[{color['punctuators']}], [{color['const']}]CHARS[{color['punctuators']}], [{color['const']}]ANSI[*] [dim|{color['code_border']}](│)
31
+ [dim|{color['code_border']}](│) [{color['punctuators']}]# Classes[*] [dim|{color['code_border']}](│)
32
+ [dim|{color['code_border']}](│) [{color['import']}]from [{color['lib']}]xulbux [{color['import']}]import [{color['class']}]Code[{color['punctuators']}], [{color['class']}]Color[{color['punctuators']}], [{color['class']}]Console[{color['punctuators']}], ...[*] [dim|{color['code_border']}](│)
33
+ [dim|{color['code_border']}](│) [{color['punctuators']}]# types[*] [dim|{color['code_border']}](│)
34
+ [dim|{color['code_border']}]() [{color['import']}]from [{color['lib']}]xulbux [{color['import']}]import [{color['func']}]rgba[{color['punctuators']}], [{color['func']}]hsla[{color['punctuators']}], [{color['func']}]hexa[*] [dim|{color['code_border']}](│)
35
+ [dim|{color['code_border']}](╰────────────────────────────────────────────────────╯)
36
+ [b|#FCFCFF]Documentation:[*]
37
+ [dim|{color['code_border']}](╭────────────────────────────────────────────────────╮)
38
+ [dim|{color['code_border']}](│) [#DADADD]For more information see the GitHub page. [dim|{color['code_border']}](│)
39
+ [dim|{color['code_border']}](│) [u|#8085FF](https://github.com/XulbuX/PythonLibraryXulbuX/wiki) [dim|{color['code_border']}](│)
40
+ [dim|{color['code_border']}](╰────────────────────────────────────────────────────╯)
48
41
  [_]
49
42
  [dim](Press any key to exit...)
50
43
  """,
xulbux/_consts_.py CHANGED
@@ -26,6 +26,7 @@ class COLOR:
26
26
  yellow = "#FFD260"
27
27
  lime = "#C9F16E"
28
28
  green = "#7EE787"
29
+ neongreen = "#4CFF85"
29
30
  teal = "#50EAAF"
30
31
  cyan = "#3EDEE6"
31
32
  ice = "#77DBEF"
xulbux/xx_code.py CHANGED
@@ -50,7 +50,7 @@ class Code:
50
50
  nested_calls = _rx.findall(r"(?i)" + Regex.func_call(), func_attrs)
51
51
  if nested_calls:
52
52
  nested_func_calls.extend(nested_calls)
53
- return Data.remove_duplicates(funcs + nested_func_calls)
53
+ return list(Data.remove_duplicates(funcs + nested_func_calls))
54
54
 
55
55
  @staticmethod
56
56
  def is_js(code: str, funcs: list = ["__", "$t", "$lang"]) -> bool: