bcpkgfox 0.16.5b12__py3-none-any.whl → 0.16.7__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.
- bcpkgfox/cli.py +21 -18
- {bcpkgfox-0.16.5b12.dist-info → bcpkgfox-0.16.7.dist-info}/METADATA +1 -1
- bcpkgfox-0.16.7.dist-info/RECORD +12 -0
- bcpkgfox-0.16.5b12.dist-info/RECORD +0 -12
- {bcpkgfox-0.16.5b12.dist-info → bcpkgfox-0.16.7.dist-info}/WHEEL +0 -0
- {bcpkgfox-0.16.5b12.dist-info → bcpkgfox-0.16.7.dist-info}/entry_points.txt +0 -0
- {bcpkgfox-0.16.5b12.dist-info → bcpkgfox-0.16.7.dist-info}/top_level.txt +0 -0
bcpkgfox/cli.py
CHANGED
|
@@ -22,89 +22,91 @@ class cli:
|
|
|
22
22
|
self.venv_manager = self.venv_mangt(self)
|
|
23
23
|
|
|
24
24
|
self.parser = argparse.ArgumentParser(
|
|
25
|
-
add_help=False
|
|
25
|
+
add_help=False,
|
|
26
|
+
description=f"{self.visuals.bold}{self.visuals.DK_ORANGE} Library Help \n{self.visuals.RESET}",
|
|
27
|
+
formatter_class=argparse.RawTextHelpFormatter
|
|
26
28
|
)
|
|
27
29
|
|
|
28
30
|
self._setup_arguments()
|
|
29
31
|
|
|
30
32
|
def _setup_arguments(self):
|
|
31
33
|
"""Configure all CLI arguments"""
|
|
32
|
-
venv_group = self.parser.add_argument_group('
|
|
34
|
+
venv_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} Virtual Environment Options{self.visuals.RESET}')
|
|
33
35
|
venv_group.add_argument(
|
|
34
36
|
'-v', '--venv',
|
|
35
37
|
action='store_true',
|
|
36
|
-
help="Creates a new virtual environment with all dependencies installed"
|
|
38
|
+
help="Creates a new virtual environment with all dependencies installed\n"
|
|
37
39
|
)
|
|
38
40
|
|
|
39
41
|
venv_group.add_argument(
|
|
40
42
|
'-vc', '--venv-clean',
|
|
41
43
|
action='store_true',
|
|
42
|
-
help="Creates a virtual environment without dependencies"
|
|
44
|
+
help="Creates a virtual environment without dependencies\n"
|
|
43
45
|
)
|
|
44
46
|
|
|
45
47
|
venv_group.add_argument(
|
|
46
48
|
'-rv', '--recreate-venv',
|
|
47
49
|
action='store_true',
|
|
48
|
-
help="Recreates venv (without dependencies)"
|
|
50
|
+
help="Recreates venv (without dependencies)\n"
|
|
49
51
|
)
|
|
50
52
|
|
|
51
53
|
venv_group.add_argument(
|
|
52
54
|
'-dv', '--delete-venv',
|
|
53
55
|
action='store_true',
|
|
54
|
-
help="Deletes venv"
|
|
56
|
+
help="Deletes venv\n"
|
|
55
57
|
)
|
|
56
58
|
|
|
57
59
|
|
|
58
|
-
exe_group = self.parser.add_argument_group('.
|
|
60
|
+
exe_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} Exe options{self.visuals.RESET}')
|
|
59
61
|
exe_group.add_argument(
|
|
60
62
|
'-e', '--exe',
|
|
61
63
|
action='store_true',
|
|
62
|
-
help="Creates a .exe of the file"
|
|
64
|
+
help="Creates a .exe of the file\n"
|
|
63
65
|
)
|
|
64
66
|
|
|
65
67
|
exe_group.add_argument(
|
|
66
68
|
'-nc', '--no-console',
|
|
67
69
|
action='store_true',
|
|
68
|
-
help="The exe don't open the console when started"
|
|
70
|
+
help="The exe don't open the console when started\n"
|
|
69
71
|
)
|
|
70
72
|
|
|
71
73
|
exe_group.add_argument(
|
|
72
74
|
'-z', '--zip',
|
|
73
75
|
action='store_true',
|
|
74
|
-
help="Make a zip of the 'dist' and rename it to the name of the file"
|
|
76
|
+
help="Make a zip of the 'dist' and rename it to the name of the file\n"
|
|
75
77
|
)
|
|
76
78
|
|
|
77
79
|
exe_group.add_argument(
|
|
78
80
|
'-ic', '--icon',
|
|
79
81
|
type=str,
|
|
80
82
|
nargs='+',
|
|
81
|
-
help="Change the exe icon (put .ico path)"
|
|
83
|
+
help="Change the exe icon (put .ico path)\n"
|
|
82
84
|
)
|
|
83
85
|
|
|
84
86
|
exe_group.add_argument(
|
|
85
87
|
'-ad', '--add-data',
|
|
86
88
|
type=str,
|
|
87
89
|
nargs='+',
|
|
88
|
-
help="Add data(s) to .exe (similar of pyinstaller)"
|
|
90
|
+
help="Add data(s) to .exe (similar of pyinstaller)\n"
|
|
89
91
|
)
|
|
90
92
|
|
|
91
|
-
file_group = self.parser.add_argument_group('
|
|
93
|
+
file_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} File Options{self.visuals.RESET}')
|
|
92
94
|
file_group.add_argument(
|
|
93
95
|
'-fi', '--find-imports',
|
|
94
96
|
action='store_true',
|
|
95
|
-
help="Finds all imports necessary for the lib to work"
|
|
97
|
+
help="Finds all imports necessary for the lib to work\n"
|
|
96
98
|
)
|
|
97
99
|
|
|
98
100
|
file_group.add_argument(
|
|
99
101
|
'-vi', '--verify-imports',
|
|
100
102
|
action='store_true',
|
|
101
|
-
help="Shows imports that were not installed automatically"
|
|
103
|
+
help="Shows imports that were not installed automatically\n"
|
|
102
104
|
)
|
|
103
105
|
|
|
104
106
|
file_group.add_argument(
|
|
105
107
|
'-i', '--install-imports',
|
|
106
108
|
action='store_true',
|
|
107
|
-
help="Installs all imports necessary for the lib to work"
|
|
109
|
+
help="Installs all imports necessary for the lib to work\n"
|
|
108
110
|
)
|
|
109
111
|
|
|
110
112
|
self.parser.add_argument(
|
|
@@ -192,6 +194,7 @@ class cli:
|
|
|
192
194
|
|
|
193
195
|
self.DK_ORANGE = "\033[38;5;130m"
|
|
194
196
|
self.ORANGE = "\033[38;5;214m"
|
|
197
|
+
self.YL = "\033[38;5;226m"
|
|
195
198
|
self.RD = "\033[38;5;196m"
|
|
196
199
|
self.GR = "\033[38;5;34m"
|
|
197
200
|
self.RESET = "\033[0m"
|
|
@@ -475,9 +478,9 @@ class cli:
|
|
|
475
478
|
|
|
476
479
|
def verify_imports(self):
|
|
477
480
|
if self.error_libs:
|
|
478
|
-
print(f"{self.visuals.bold}{self.visuals.
|
|
481
|
+
print(f"{self.visuals.bold}{self.visuals.YL} WARNING: \n The libraries below can't be installed. This is not necessarily an error, just an alert.{self.visuals.RESET}")
|
|
479
482
|
for lib in self.error_libs:
|
|
480
|
-
print(f" {self.visuals.bold}{self.visuals.
|
|
483
|
+
print(f" {self.visuals.bold}{self.visuals.YL} - {lib} {self.visuals.RESET}")
|
|
481
484
|
|
|
482
485
|
def main(self, return_=False):
|
|
483
486
|
self.target_file = self.cli.file #FIX
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
bcpkgfox/__init__.py,sha256=tIFJ-KIMZK_ZjcrUg92QoHd2Rbte4cvuPMlPUzjtK0U,15945
|
|
2
|
+
bcpkgfox/cli.py,sha256=LH3a8BOdnLTyyqhQFtg5LVEG50MW4wJyjI4M_7xGh_g,29782
|
|
3
|
+
bcpkgfox/exec_file.py,sha256=fl_Do2SlF7JuXazpNTod-e_0WZUk355fbd7ustQvi40,3728
|
|
4
|
+
bcpkgfox/find_elements.py,sha256=oeB-73LqMLoKchozPXuxRkThBju9IgUKqbgU-2AAq0s,23027
|
|
5
|
+
bcpkgfox/get_driver.py,sha256=ohimk9E2hL6T35IXv0XX0uvWDGCUZvZDlPMnuRjV1R0,30490
|
|
6
|
+
bcpkgfox/invoke_api.py,sha256=UTksbSmg6yucWk-egH1gavYoViKvpUq-OAp5t308ZmY,5334
|
|
7
|
+
bcpkgfox/system.py,sha256=U5vEReSVIQ7LZ-1slUglNyU6k0Vahfioozm6QVEIqfE,6732
|
|
8
|
+
bcpkgfox-0.16.7.dist-info/METADATA,sha256=7_upg0BNPOMMPXQ5ZjfIAxyL2Ez9Ux2JjmtIKWjgHWY,1911
|
|
9
|
+
bcpkgfox-0.16.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
10
|
+
bcpkgfox-0.16.7.dist-info/entry_points.txt,sha256=zzthtJtEpeRjlpE6YDBbSGVH6hvnnVyRxVSSgz1_S0M,337
|
|
11
|
+
bcpkgfox-0.16.7.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
|
|
12
|
+
bcpkgfox-0.16.7.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
bcpkgfox/__init__.py,sha256=tIFJ-KIMZK_ZjcrUg92QoHd2Rbte4cvuPMlPUzjtK0U,15945
|
|
2
|
-
bcpkgfox/cli.py,sha256=XlLZZ-po7SjdBrQQ4s14JjgKXB1M9fh91rAOb8VNBtQ,29374
|
|
3
|
-
bcpkgfox/exec_file.py,sha256=fl_Do2SlF7JuXazpNTod-e_0WZUk355fbd7ustQvi40,3728
|
|
4
|
-
bcpkgfox/find_elements.py,sha256=oeB-73LqMLoKchozPXuxRkThBju9IgUKqbgU-2AAq0s,23027
|
|
5
|
-
bcpkgfox/get_driver.py,sha256=ohimk9E2hL6T35IXv0XX0uvWDGCUZvZDlPMnuRjV1R0,30490
|
|
6
|
-
bcpkgfox/invoke_api.py,sha256=UTksbSmg6yucWk-egH1gavYoViKvpUq-OAp5t308ZmY,5334
|
|
7
|
-
bcpkgfox/system.py,sha256=U5vEReSVIQ7LZ-1slUglNyU6k0Vahfioozm6QVEIqfE,6732
|
|
8
|
-
bcpkgfox-0.16.5b12.dist-info/METADATA,sha256=C9XHxRXTCZiMC2RnxW1m2muD_SgTKa-JKYjm6nLdB_Y,1914
|
|
9
|
-
bcpkgfox-0.16.5b12.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
10
|
-
bcpkgfox-0.16.5b12.dist-info/entry_points.txt,sha256=zzthtJtEpeRjlpE6YDBbSGVH6hvnnVyRxVSSgz1_S0M,337
|
|
11
|
-
bcpkgfox-0.16.5b12.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
|
|
12
|
-
bcpkgfox-0.16.5b12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|