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 +2 -2
- xulbux/_cli_.py +20 -27
- xulbux/_consts_.py +1 -0
- xulbux/xx_code.py +1 -1
- xulbux/xx_color.py +146 -115
- xulbux/xx_console.py +55 -40
- xulbux/xx_data.py +22 -21
- xulbux/xx_env_path.py +6 -5
- xulbux/xx_file.py +2 -2
- xulbux/xx_format_codes.py +30 -25
- xulbux/xx_json.py +7 -6
- xulbux/xx_path.py +7 -7
- xulbux/xx_regex.py +6 -1
- xulbux/xx_system.py +5 -5
- {xulbux-1.6.9.dist-info → xulbux-1.7.0.dist-info}/METADATA +1 -1
- xulbux-1.7.0.dist-info/RECORD +21 -0
- {xulbux-1.6.9.dist-info → xulbux-1.7.0.dist-info}/WHEEL +1 -1
- xulbux-1.6.9.dist-info/RECORD +0 -21
- {xulbux-1.6.9.dist-info → xulbux-1.7.0.dist-info}/entry_points.txt +0 -0
- {xulbux-1.6.9.dist-info → xulbux-1.7.0.dist-info}/licenses/LICENSE +0 -0
- {xulbux-1.6.9.dist-info → xulbux-1.7.0.dist-info}/top_level.txt +0 -0
xulbux/__init__.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
__version__ = "1.
|
|
1
|
+
__version__ = "1.7.0"
|
|
2
2
|
__author__ = "XulbuX"
|
|
3
3
|
__email__ = "xulbux.real@gmail.com"
|
|
4
4
|
__license__ = "MIT"
|
|
5
|
-
__copyright__ = "Copyright (c)
|
|
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
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
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|#
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
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:
|