xulbux 1.6.9__tar.gz → 1.7.1__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 (38) hide show
  1. {xulbux-1.6.9/src/xulbux.egg-info → xulbux-1.7.1}/PKG-INFO +36 -34
  2. {xulbux-1.6.9 → xulbux-1.7.1}/README.md +35 -33
  3. {xulbux-1.6.9 → xulbux-1.7.1}/pyproject.toml +1 -1
  4. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/__init__.py +2 -2
  5. xulbux-1.7.1/src/xulbux/_cli_.py +46 -0
  6. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/_consts_.py +1 -0
  7. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_code.py +1 -1
  8. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_color.py +144 -101
  9. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_console.py +168 -64
  10. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_data.py +22 -21
  11. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_env_path.py +6 -5
  12. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_file.py +2 -2
  13. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_format_codes.py +37 -28
  14. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_json.py +7 -6
  15. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_path.py +7 -7
  16. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_regex.py +15 -10
  17. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_system.py +5 -5
  18. {xulbux-1.6.9 → xulbux-1.7.1/src/xulbux.egg-info}/PKG-INFO +36 -34
  19. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_color.py +5 -5
  20. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_color_types.py +2 -2
  21. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_console.py +6 -6
  22. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_data.py +8 -6
  23. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_format_codes.py +4 -4
  24. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_json.py +3 -3
  25. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_path.py +1 -1
  26. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_string.py +3 -3
  27. xulbux-1.6.9/src/xulbux/_cli_.py +0 -53
  28. {xulbux-1.6.9 → xulbux-1.7.1}/LICENSE +0 -0
  29. {xulbux-1.6.9 → xulbux-1.7.1}/setup.cfg +0 -0
  30. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux/xx_string.py +0 -0
  31. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux.egg-info/SOURCES.txt +0 -0
  32. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux.egg-info/dependency_links.txt +0 -0
  33. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux.egg-info/entry_points.txt +0 -0
  34. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux.egg-info/requires.txt +0 -0
  35. {xulbux-1.6.9 → xulbux-1.7.1}/src/xulbux.egg-info/top_level.txt +0 -0
  36. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_code.py +0 -0
  37. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_env_path.py +0 -0
  38. {xulbux-1.6.9 → xulbux-1.7.1}/tests/test_file.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xulbux
3
- Version: 1.6.9
3
+ Version: 1.7.1
4
4
  Summary: A Python library which includes lots of helpful classes, types and functions aiming to make common programming tasks simpler.
5
5
  Author-email: XulbuX <xulbux.real@gmail.com>
6
6
  License-Expression: MIT
@@ -34,14 +34,14 @@ Requires-Dist: flake8>=6.1.0; extra == "dev"
34
34
  Requires-Dist: flake8-pyproject>=1.2.3; extra == "dev"
35
35
  Dynamic: license-file
36
36
 
37
- # **$\color{#8085FF}\Huge\textsf{XulbuX}$**
37
+ # **$\Huge\textsf{XulbuX}$**
38
38
 
39
- **$\color{#8085FF}\textsf{XulbuX}$** is library that contains many useful classes, types, and functions,
39
+ **XulbuX** is library that contains many useful classes, types, and functions,
40
40
  ranging from console logging and working with colors to file management and system operations.
41
41
  The library is designed to simplify common programming tasks and improve code readability through its collection of tools.
42
42
 
43
- For precise information about the library, see the library's [wiki page](https://github.com/XulbuX/PythonLibraryXulbuX/wiki).<br>
44
- For the libraries latest changes and updates, see the [change log](https://github.com/XulbuX/PythonLibraryXulbuX/blob/main/CHANGELOG.md).
43
+ For precise information about the library, see the library's [**wiki page**](https://github.com/XulbuX/PythonLibraryXulbuX/wiki).<br>
44
+ For the libraries latest changes and updates, see the [**change log**](https://github.com/XulbuX/PythonLibraryXulbuX/blob/main/CHANGELOG.md).
45
45
 
46
46
  <br>
47
47
 
@@ -81,20 +81,20 @@ from xulbux import rgba, hsla, hexa
81
81
 
82
82
  ## Modules
83
83
 
84
- | Module | Short Description |
85
- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------- |
86
- | [![xx_code](https://img.shields.io/badge/xx__code-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_code) | advanced code-string operations (*changing the indent, finding function calls, ...*) |
87
- | [![xx_color](https://img.shields.io/badge/xx__color-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_color) | everything around colors (*converting, blending, searching colors in strings, ...*) |
88
- | [![xx_console](https://img.shields.io/badge/xx__console-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_console) | advanced actions related to the console (*pretty logging, advanced inputs, ...*) |
89
- | [![xx_data](https://img.shields.io/badge/xx__data-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_data) | advanced operations with data structures (*compare, generate path ID's, pretty print/format, ...*) |
84
+ | Module | Short Description |
85
+ | :--------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------- |
86
+ | [![xx_code](https://img.shields.io/badge/xx__code-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_code) | advanced code-string operations (*changing the indent, finding function calls, ...*) |
87
+ | [![xx_color](https://img.shields.io/badge/xx__color-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_color) | everything around colors (*converting, blending, searching colors in strings, ...*) |
88
+ | [![xx_console](https://img.shields.io/badge/xx__console-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_console) | advanced actions related to the console (*pretty logging, advanced inputs, ...*) |
89
+ | [![xx_data](https://img.shields.io/badge/xx__data-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_data) | advanced operations with data structures (*compare, generate path ID's, pretty print/format, ...*) |
90
90
  | [![xx_env_path](https://img.shields.io/badge/xx__env__path-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_env_path) | getting and editing the PATH variable (*get paths, check for paths, add paths, ...*) |
91
- | [![xx_file](https://img.shields.io/badge/xx__file-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_file) | advanced working with files (*create files, rename file-extensions, ...*) |
91
+ | [![xx_file](https://img.shields.io/badge/xx__file-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_file) | advanced working with files (*create files, rename file-extensions, ...*) |
92
92
  | [![xx_format_codes](https://img.shields.io/badge/xx__format__codes-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_format_codes) | easy pretty printing with custom format codes (*print, inputs, custom format codes to ANSI, ...*) |
93
- | [![xx_json](https://img.shields.io/badge/xx__json-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_json) | advanced working with json files (*read, create, update, ...*) |
94
- | [![xx_path](https://img.shields.io/badge/xx__path-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_path) | advanced path operations (*get paths, smart-extend relative paths, delete paths, ...*) |
95
- | ![xx_regex](https://img.shields.io/badge/xx__regex-6065FF?style=flat) | generated regex pattern-templates (*match bracket- and quote pairs, match colors, ...*) |
96
- | [![xx_string](https://img.shields.io/badge/xx__string-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_string) | helpful actions when working with strings. (*normalize, escape, decompose, ...*) |
97
- | ![xx_system](https://img.shields.io/badge/xx__system-6065FF?style=flat) | advanced system actions (*restart with message, check installed Python libs, ...*) |
93
+ | [![xx_json](https://img.shields.io/badge/xx__json-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_json) | advanced working with json files (*read, create, update, ...*) |
94
+ | [![xx_path](https://img.shields.io/badge/xx__path-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_path) | advanced path operations (*get paths, smart-extend relative paths, delete paths, ...*) |
95
+ | ![xx_regex](https://img.shields.io/badge/xx__regex-6065FF?style=flat) | generated regex pattern-templates (*match bracket- and quote pairs, match colors, ...*) |
96
+ | [![xx_string](https://img.shields.io/badge/xx__string-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_string) | helpful actions when working with strings. (*normalize, escape, decompose, ...*) |
97
+ | ![xx_system](https://img.shields.io/badge/xx__system-6065FF?style=flat) | advanced system actions (*restart with message, check installed Python libs, ...*) |
98
98
 
99
99
  <br>
100
100
 
@@ -111,15 +111,15 @@ def main() -> None:
111
111
 
112
112
  # LET THE USER ENTER A HEXA COLOR IN ANY HEXA FORMAT
113
113
  input_clr = FormatCodes.input(
114
- "\n[b](Enter a HEXA color in any format) [dim](>) "
114
+ "\n[b](Enter a HEXA color in any format) [dim](>) "
115
115
  )
116
116
 
117
117
  # ANNOUNCE INDEXING THE INPUT COLOR
118
118
  Console.log(
119
- "INDEX",
120
- "Indexing the input HEXA color...",
121
- start="\n",
122
- title_bg_color=COLOR.blue,
119
+ "INDEX",
120
+ "Indexing the input HEXA color...",
121
+ start="\n",
122
+ title_bg_color=COLOR.blue,
123
123
  )
124
124
 
125
125
  try:
@@ -129,16 +129,16 @@ def main() -> None:
129
129
  except ValueError:
130
130
  # ANNOUNCE THE ERROR AND EXIT THE PROGRAM
131
131
  Console.fail(
132
- "The input HEXA color is invalid.",
133
- end="\n\n",
134
- exit=True,
132
+ "The input HEXA color is invalid.",
133
+ end="\n\n",
134
+ exit=True,
135
135
  )
136
136
 
137
137
  # ANNOUNCE STARTING THE CONVERSION
138
138
  Console.log(
139
- "CONVERT",
140
- "Converting the HEXA color into different types...",
141
- title_bg_color=COLOR.tangerine,
139
+ "CONVERT",
140
+ "Converting the HEXA color into different types...",
141
+ title_bg_color=COLOR.tangerine,
142
142
  )
143
143
 
144
144
  # CONVERT THE HEXA COLOR INTO THE TWO OTHER COLOR TYPES
@@ -147,14 +147,16 @@ def main() -> None:
147
147
 
148
148
  # ANNOUNCE THE SUCCESSFUL CONVERSION
149
149
  Console.done(
150
- "Successfully converted color into different types.",
151
- end="\n\n",
150
+ "Successfully converted color into different types.",
151
+ end="\n\n",
152
152
  )
153
153
 
154
154
  # PRETTY PRINT THE COLOR IN DIFFERENT TYPES
155
- FormatCodes.print(f"[b](HEXA:) [i|white]({hexa_color})")
156
- FormatCodes.print(f"[b](RGBA:) [i|white]({rgba_color})")
157
- FormatCodes.print(f"[b](HSLA:) [i|white]({hsla_color})\n")
155
+ Console.log_box_bordered(
156
+ f"[b](HEXA:) [i|white]({hexa_color})",
157
+ f"[b](RGBA:) [i|white]({rgba_color})",
158
+ f"[b](HSLA:) [i|white]({hsla_color})",
159
+ )
158
160
 
159
161
 
160
162
  if __name__ == "__main__":
@@ -165,4 +167,4 @@ if __name__ == "__main__":
165
167
  <br>
166
168
 
167
169
  --------------------------------------------------------------
168
- [View this library on PyPI](https://pypi.org/project/XulbuX/)
170
+ [View this library on **PyPI**](https://pypi.org/project/XulbuX/)
@@ -1,11 +1,11 @@
1
- # **$\color{#8085FF}\Huge\textsf{XulbuX}$**
1
+ # **$\Huge\textsf{XulbuX}$**
2
2
 
3
- **$\color{#8085FF}\textsf{XulbuX}$** is library that contains many useful classes, types, and functions,
3
+ **XulbuX** is library that contains many useful classes, types, and functions,
4
4
  ranging from console logging and working with colors to file management and system operations.
5
5
  The library is designed to simplify common programming tasks and improve code readability through its collection of tools.
6
6
 
7
- For precise information about the library, see the library's [wiki page](https://github.com/XulbuX/PythonLibraryXulbuX/wiki).<br>
8
- For the libraries latest changes and updates, see the [change log](https://github.com/XulbuX/PythonLibraryXulbuX/blob/main/CHANGELOG.md).
7
+ For precise information about the library, see the library's [**wiki page**](https://github.com/XulbuX/PythonLibraryXulbuX/wiki).<br>
8
+ For the libraries latest changes and updates, see the [**change log**](https://github.com/XulbuX/PythonLibraryXulbuX/blob/main/CHANGELOG.md).
9
9
 
10
10
  <br>
11
11
 
@@ -45,20 +45,20 @@ from xulbux import rgba, hsla, hexa
45
45
 
46
46
  ## Modules
47
47
 
48
- | Module | Short Description |
49
- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------- |
50
- | [![xx_code](https://img.shields.io/badge/xx__code-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_code) | advanced code-string operations (*changing the indent, finding function calls, ...*) |
51
- | [![xx_color](https://img.shields.io/badge/xx__color-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_color) | everything around colors (*converting, blending, searching colors in strings, ...*) |
52
- | [![xx_console](https://img.shields.io/badge/xx__console-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_console) | advanced actions related to the console (*pretty logging, advanced inputs, ...*) |
53
- | [![xx_data](https://img.shields.io/badge/xx__data-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_data) | advanced operations with data structures (*compare, generate path ID's, pretty print/format, ...*) |
48
+ | Module | Short Description |
49
+ | :--------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------- |
50
+ | [![xx_code](https://img.shields.io/badge/xx__code-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_code) | advanced code-string operations (*changing the indent, finding function calls, ...*) |
51
+ | [![xx_color](https://img.shields.io/badge/xx__color-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_color) | everything around colors (*converting, blending, searching colors in strings, ...*) |
52
+ | [![xx_console](https://img.shields.io/badge/xx__console-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_console) | advanced actions related to the console (*pretty logging, advanced inputs, ...*) |
53
+ | [![xx_data](https://img.shields.io/badge/xx__data-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_data) | advanced operations with data structures (*compare, generate path ID's, pretty print/format, ...*) |
54
54
  | [![xx_env_path](https://img.shields.io/badge/xx__env__path-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_env_path) | getting and editing the PATH variable (*get paths, check for paths, add paths, ...*) |
55
- | [![xx_file](https://img.shields.io/badge/xx__file-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_file) | advanced working with files (*create files, rename file-extensions, ...*) |
55
+ | [![xx_file](https://img.shields.io/badge/xx__file-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_file) | advanced working with files (*create files, rename file-extensions, ...*) |
56
56
  | [![xx_format_codes](https://img.shields.io/badge/xx__format__codes-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_format_codes) | easy pretty printing with custom format codes (*print, inputs, custom format codes to ANSI, ...*) |
57
- | [![xx_json](https://img.shields.io/badge/xx__json-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_json) | advanced working with json files (*read, create, update, ...*) |
58
- | [![xx_path](https://img.shields.io/badge/xx__path-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_path) | advanced path operations (*get paths, smart-extend relative paths, delete paths, ...*) |
59
- | ![xx_regex](https://img.shields.io/badge/xx__regex-6065FF?style=flat) | generated regex pattern-templates (*match bracket- and quote pairs, match colors, ...*) |
60
- | [![xx_string](https://img.shields.io/badge/xx__string-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_string) | helpful actions when working with strings. (*normalize, escape, decompose, ...*) |
61
- | ![xx_system](https://img.shields.io/badge/xx__system-6065FF?style=flat) | advanced system actions (*restart with message, check installed Python libs, ...*) |
57
+ | [![xx_json](https://img.shields.io/badge/xx__json-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_json) | advanced working with json files (*read, create, update, ...*) |
58
+ | [![xx_path](https://img.shields.io/badge/xx__path-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_path) | advanced path operations (*get paths, smart-extend relative paths, delete paths, ...*) |
59
+ | ![xx_regex](https://img.shields.io/badge/xx__regex-6065FF?style=flat) | generated regex pattern-templates (*match bracket- and quote pairs, match colors, ...*) |
60
+ | [![xx_string](https://img.shields.io/badge/xx__string-6065FF?style=flat)](https://github.com/XulbuX/PythonLibraryXulbuX/wiki/xx_string) | helpful actions when working with strings. (*normalize, escape, decompose, ...*) |
61
+ | ![xx_system](https://img.shields.io/badge/xx__system-6065FF?style=flat) | advanced system actions (*restart with message, check installed Python libs, ...*) |
62
62
 
63
63
  <br>
64
64
 
@@ -75,15 +75,15 @@ def main() -> None:
75
75
 
76
76
  # LET THE USER ENTER A HEXA COLOR IN ANY HEXA FORMAT
77
77
  input_clr = FormatCodes.input(
78
- "\n[b](Enter a HEXA color in any format) [dim](>) "
78
+ "\n[b](Enter a HEXA color in any format) [dim](>) "
79
79
  )
80
80
 
81
81
  # ANNOUNCE INDEXING THE INPUT COLOR
82
82
  Console.log(
83
- "INDEX",
84
- "Indexing the input HEXA color...",
85
- start="\n",
86
- title_bg_color=COLOR.blue,
83
+ "INDEX",
84
+ "Indexing the input HEXA color...",
85
+ start="\n",
86
+ title_bg_color=COLOR.blue,
87
87
  )
88
88
 
89
89
  try:
@@ -93,16 +93,16 @@ def main() -> None:
93
93
  except ValueError:
94
94
  # ANNOUNCE THE ERROR AND EXIT THE PROGRAM
95
95
  Console.fail(
96
- "The input HEXA color is invalid.",
97
- end="\n\n",
98
- exit=True,
96
+ "The input HEXA color is invalid.",
97
+ end="\n\n",
98
+ exit=True,
99
99
  )
100
100
 
101
101
  # ANNOUNCE STARTING THE CONVERSION
102
102
  Console.log(
103
- "CONVERT",
104
- "Converting the HEXA color into different types...",
105
- title_bg_color=COLOR.tangerine,
103
+ "CONVERT",
104
+ "Converting the HEXA color into different types...",
105
+ title_bg_color=COLOR.tangerine,
106
106
  )
107
107
 
108
108
  # CONVERT THE HEXA COLOR INTO THE TWO OTHER COLOR TYPES
@@ -111,14 +111,16 @@ def main() -> None:
111
111
 
112
112
  # ANNOUNCE THE SUCCESSFUL CONVERSION
113
113
  Console.done(
114
- "Successfully converted color into different types.",
115
- end="\n\n",
114
+ "Successfully converted color into different types.",
115
+ end="\n\n",
116
116
  )
117
117
 
118
118
  # PRETTY PRINT THE COLOR IN DIFFERENT TYPES
119
- FormatCodes.print(f"[b](HEXA:) [i|white]({hexa_color})")
120
- FormatCodes.print(f"[b](RGBA:) [i|white]({rgba_color})")
121
- FormatCodes.print(f"[b](HSLA:) [i|white]({hsla_color})\n")
119
+ Console.log_box_bordered(
120
+ f"[b](HEXA:) [i|white]({hexa_color})",
121
+ f"[b](RGBA:) [i|white]({rgba_color})",
122
+ f"[b](HSLA:) [i|white]({hsla_color})",
123
+ )
122
124
 
123
125
 
124
126
  if __name__ == "__main__":
@@ -129,4 +131,4 @@ if __name__ == "__main__":
129
131
  <br>
130
132
 
131
133
  --------------------------------------------------------------
132
- [View this library on PyPI](https://pypi.org/project/XulbuX/)
134
+ [View this library on **PyPI**](https://pypi.org/project/XulbuX/)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xulbux"
7
- version = "1.6.9"
7
+ version = "1.7.1"
8
8
  authors = [{ name = "XulbuX", email = "xulbux.real@gmail.com" }]
9
9
  description = "A Python library which includes lots of helpful classes, types and functions aiming to make common programming tasks simpler."
10
10
  readme = "README.md"
@@ -1,8 +1,8 @@
1
- __version__ = "1.6.9"
1
+ __version__ = "1.7.1"
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__ = [
@@ -0,0 +1,46 @@
1
+ from ._consts_ import COLOR
2
+ from . import __version__
3
+ from .xx_format_codes import FormatCodes
4
+ from .xx_console import Console
5
+
6
+
7
+ def help_command():
8
+ """Show some info about the library, with a brief explanation of how to use it."""
9
+ color = {
10
+ "class": COLOR.tangerine,
11
+ "const": COLOR.red,
12
+ "func": COLOR.cyan,
13
+ "import": COLOR.neongreen,
14
+ "lib": COLOR.orange,
15
+ "punctuators": COLOR.darkgray,
16
+ "code_border": COLOR.gray,
17
+ }
18
+ FormatCodes.print(
19
+ rf""" [_|b|#7075FF] __ __
20
+ [b|#7075FF] _ __ __ __/ / / /_ __ ___ __
21
+ [b|#7075FF] | |/ // / / / / / __ \/ / / | |/ /
22
+ [b|#7075FF] > , </ /_/ / /_/ /_/ / /_/ /> , <
23
+ [b|#7075FF]/_/|_|\____/\__/\____/\____//_/|_| [*|BG:{COLOR.gray}|#000] v[b]{__version__} [*]
24
+
25
+ [i|{COLOR.coral}]A TON OF COOL FUNCTIONS, YOU NEED![*]
26
+
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']}](╰────────────────────────────────────────────────────╯)
41
+ [_]
42
+ [dim](Press any key to exit...)
43
+ """,
44
+ default_color=COLOR.text
45
+ )
46
+ Console.pause_exit(pause=True)
@@ -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"
@@ -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: