orionis 0.196.0__py3-none-any.whl → 0.197.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.
- orionis/framework.py +1 -1
- orionis/installer/manager.py +9 -14
- orionis/installer/setup.py +3 -3
- orionis/luminate/console/base/command.py +19 -19
- orionis/luminate/console/commands/help.py +2 -1
- orionis/luminate/console/output/console.py +2 -2
- {orionis-0.196.0.dist-info → orionis-0.197.0.dist-info}/METADATA +1 -1
- {orionis-0.196.0.dist-info → orionis-0.197.0.dist-info}/RECORD +12 -12
- {orionis-0.196.0.dist-info → orionis-0.197.0.dist-info}/LICENCE +0 -0
- {orionis-0.196.0.dist-info → orionis-0.197.0.dist-info}/WHEEL +0 -0
- {orionis-0.196.0.dist-info → orionis-0.197.0.dist-info}/entry_points.txt +0 -0
- {orionis-0.196.0.dist-info → orionis-0.197.0.dist-info}/top_level.txt +0 -0
orionis/framework.py
CHANGED
orionis/installer/manager.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import subprocess
|
2
2
|
import sys
|
3
3
|
from orionis.installer.contracts.manager import IInstallerManager
|
4
|
+
from orionis.installer.contracts.output import IInstallerOutput
|
4
5
|
from orionis.installer.output import InstallerOutput
|
5
6
|
from orionis.installer.setup import InstallerSetup
|
6
7
|
|
@@ -13,20 +14,15 @@ class InstallerManager(IInstallerManager):
|
|
13
14
|
|
14
15
|
Attributes
|
15
16
|
----------
|
16
|
-
|
17
|
-
Instance of
|
17
|
+
_output : InstallerOutput
|
18
|
+
Instance of InstallerOutput to manage command-line display messages.
|
18
19
|
"""
|
19
20
|
|
20
21
|
def __init__(self):
|
21
22
|
"""
|
22
23
|
Initialize the Management class with an output handler.
|
23
|
-
|
24
|
-
Parameters
|
25
|
-
----------
|
26
|
-
output : Output
|
27
|
-
An instance of Output to handle command-line messages.
|
28
24
|
"""
|
29
|
-
self._output = InstallerOutput()
|
25
|
+
self._output : IInstallerOutput = InstallerOutput()
|
30
26
|
|
31
27
|
def handleVersion(self) -> str:
|
32
28
|
"""
|
@@ -45,7 +41,7 @@ class InstallerManager(IInstallerManager):
|
|
45
41
|
|
46
42
|
Raises
|
47
43
|
------
|
48
|
-
|
44
|
+
RuntimeError
|
49
45
|
If an error occurs during the upgrade process.
|
50
46
|
"""
|
51
47
|
try:
|
@@ -55,7 +51,6 @@ class InstallerManager(IInstallerManager):
|
|
55
51
|
except Exception as e:
|
56
52
|
raise RuntimeError(f"Upgrade failed: {e}")
|
57
53
|
|
58
|
-
|
59
54
|
def handleNewApp(self, name_app: str = "example-app") -> None:
|
60
55
|
"""
|
61
56
|
Create a new application with the specified name.
|
@@ -67,7 +62,7 @@ class InstallerManager(IInstallerManager):
|
|
67
62
|
|
68
63
|
Raises
|
69
64
|
------
|
70
|
-
|
65
|
+
RuntimeError
|
71
66
|
If an error occurs during the application setup.
|
72
67
|
"""
|
73
68
|
try:
|
@@ -81,10 +76,10 @@ class InstallerManager(IInstallerManager):
|
|
81
76
|
|
82
77
|
Raises
|
83
78
|
------
|
84
|
-
|
79
|
+
RuntimeError
|
85
80
|
If an error occurs while displaying information.
|
86
81
|
"""
|
87
82
|
try:
|
88
|
-
self._output.
|
83
|
+
self._output.printHelp()
|
89
84
|
except Exception as e:
|
90
|
-
raise RuntimeError(f"Failed to display information: {e}")
|
85
|
+
raise RuntimeError(f"Failed to display information: {e}")
|
orionis/installer/setup.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import re
|
2
1
|
import os
|
3
|
-
import
|
2
|
+
import re
|
4
3
|
import shutil
|
5
4
|
import subprocess
|
5
|
+
import sys
|
6
6
|
from unicodedata import normalize
|
7
|
-
from orionis.framework import
|
7
|
+
from orionis.framework import DOCS, SKELETON
|
8
8
|
from orionis.installer.contracts.output import IInstallerOutput
|
9
9
|
from orionis.installer.contracts.setup import IInstallerSetup
|
10
10
|
from orionis.luminate.console.output.console import Console
|
@@ -16,7 +16,7 @@ class BaseCommand(IBaseCommand):
|
|
16
16
|
"""
|
17
17
|
args = {}
|
18
18
|
|
19
|
-
def success(self, message: str
|
19
|
+
def success(self, message: str, timestamp: bool = True):
|
20
20
|
"""
|
21
21
|
Prints a success message with a green background.
|
22
22
|
|
@@ -29,7 +29,7 @@ class BaseCommand(IBaseCommand):
|
|
29
29
|
"""
|
30
30
|
Console.success(message, timestamp)
|
31
31
|
|
32
|
-
def textSuccess(self, message: str
|
32
|
+
def textSuccess(self, message: str):
|
33
33
|
"""
|
34
34
|
Prints a success message in green.
|
35
35
|
|
@@ -40,7 +40,7 @@ class BaseCommand(IBaseCommand):
|
|
40
40
|
"""
|
41
41
|
Console.textSuccess(message)
|
42
42
|
|
43
|
-
def textSuccessBold(self, message: str
|
43
|
+
def textSuccessBold(self, message: str):
|
44
44
|
"""
|
45
45
|
Prints a bold success message in green.
|
46
46
|
|
@@ -51,7 +51,7 @@ class BaseCommand(IBaseCommand):
|
|
51
51
|
"""
|
52
52
|
Console.textSuccessBold(message)
|
53
53
|
|
54
|
-
def info(self, message: str
|
54
|
+
def info(self, message: str, timestamp: bool = True):
|
55
55
|
"""
|
56
56
|
Prints an informational message with a blue background.
|
57
57
|
|
@@ -64,7 +64,7 @@ class BaseCommand(IBaseCommand):
|
|
64
64
|
"""
|
65
65
|
Console.info(message, timestamp)
|
66
66
|
|
67
|
-
def textInfo(self, message: str
|
67
|
+
def textInfo(self, message: str):
|
68
68
|
"""
|
69
69
|
Prints an informational message in blue.
|
70
70
|
|
@@ -75,7 +75,7 @@ class BaseCommand(IBaseCommand):
|
|
75
75
|
"""
|
76
76
|
Console.textInfo(message)
|
77
77
|
|
78
|
-
def textInfoBold(self, message: str
|
78
|
+
def textInfoBold(self, message: str):
|
79
79
|
"""
|
80
80
|
Prints a bold informational message in blue.
|
81
81
|
|
@@ -86,7 +86,7 @@ class BaseCommand(IBaseCommand):
|
|
86
86
|
"""
|
87
87
|
Console.textInfoBold(message)
|
88
88
|
|
89
|
-
def warning(self, message: str
|
89
|
+
def warning(self, message: str, timestamp: bool = True):
|
90
90
|
"""
|
91
91
|
Prints a warning message with a yellow background.
|
92
92
|
|
@@ -99,7 +99,7 @@ class BaseCommand(IBaseCommand):
|
|
99
99
|
"""
|
100
100
|
Console.warning(message, timestamp)
|
101
101
|
|
102
|
-
def textWarning(self, message: str
|
102
|
+
def textWarning(self, message: str):
|
103
103
|
"""
|
104
104
|
Prints a warning message in yellow.
|
105
105
|
|
@@ -110,7 +110,7 @@ class BaseCommand(IBaseCommand):
|
|
110
110
|
"""
|
111
111
|
Console.textWarning(message)
|
112
112
|
|
113
|
-
def textWarningBold(self, message: str
|
113
|
+
def textWarningBold(self, message: str):
|
114
114
|
"""
|
115
115
|
Prints a bold warning message in yellow.
|
116
116
|
|
@@ -121,7 +121,7 @@ class BaseCommand(IBaseCommand):
|
|
121
121
|
"""
|
122
122
|
Console.textWarningBold(message)
|
123
123
|
|
124
|
-
def fail(self, message: str
|
124
|
+
def fail(self, message: str, timestamp: bool = True):
|
125
125
|
"""
|
126
126
|
Prints a failure message with a red background.
|
127
127
|
|
@@ -134,7 +134,7 @@ class BaseCommand(IBaseCommand):
|
|
134
134
|
"""
|
135
135
|
Console.fail(message, timestamp)
|
136
136
|
|
137
|
-
def error(self, message: str
|
137
|
+
def error(self, message: str, timestamp: bool = True):
|
138
138
|
"""
|
139
139
|
Prints an error message with a red background.
|
140
140
|
|
@@ -147,7 +147,7 @@ class BaseCommand(IBaseCommand):
|
|
147
147
|
"""
|
148
148
|
Console.error(message, timestamp)
|
149
149
|
|
150
|
-
def textError(self, message: str
|
150
|
+
def textError(self, message: str):
|
151
151
|
"""
|
152
152
|
Prints an error message in red.
|
153
153
|
|
@@ -158,7 +158,7 @@ class BaseCommand(IBaseCommand):
|
|
158
158
|
"""
|
159
159
|
Console.textError(message)
|
160
160
|
|
161
|
-
def textErrorBold(self, message: str
|
161
|
+
def textErrorBold(self, message: str):
|
162
162
|
"""
|
163
163
|
Prints a bold error message in red.
|
164
164
|
|
@@ -169,7 +169,7 @@ class BaseCommand(IBaseCommand):
|
|
169
169
|
"""
|
170
170
|
Console.textErrorBold(message)
|
171
171
|
|
172
|
-
def textMuted(self, message: str
|
172
|
+
def textMuted(self, message: str):
|
173
173
|
"""
|
174
174
|
Prints a muted (gray) message.
|
175
175
|
|
@@ -180,7 +180,7 @@ class BaseCommand(IBaseCommand):
|
|
180
180
|
"""
|
181
181
|
Console.textMuted(message)
|
182
182
|
|
183
|
-
def textMutedBold(self, message: str
|
183
|
+
def textMutedBold(self, message: str):
|
184
184
|
"""
|
185
185
|
Prints a bold muted (gray) message.
|
186
186
|
|
@@ -191,7 +191,7 @@ class BaseCommand(IBaseCommand):
|
|
191
191
|
"""
|
192
192
|
Console.textMutedBold(message)
|
193
193
|
|
194
|
-
def textUnderline(self, message: str
|
194
|
+
def textUnderline(self, message: str):
|
195
195
|
"""
|
196
196
|
Prints an underlined message.
|
197
197
|
|
@@ -214,7 +214,7 @@ class BaseCommand(IBaseCommand):
|
|
214
214
|
"""
|
215
215
|
Console.clearLine()
|
216
216
|
|
217
|
-
def line(self, message: str
|
217
|
+
def line(self, message: str):
|
218
218
|
"""
|
219
219
|
Prints a line of text.
|
220
220
|
|
@@ -236,7 +236,7 @@ class BaseCommand(IBaseCommand):
|
|
236
236
|
"""
|
237
237
|
Console.newLine(count)
|
238
238
|
|
239
|
-
def write(self, message: str
|
239
|
+
def write(self, message: str):
|
240
240
|
"""
|
241
241
|
Prints a message without moving to the next line.
|
242
242
|
|
@@ -247,7 +247,7 @@ class BaseCommand(IBaseCommand):
|
|
247
247
|
"""
|
248
248
|
Console.write(message)
|
249
249
|
|
250
|
-
def writeLine(self, message: str
|
250
|
+
def writeLine(self, message: str):
|
251
251
|
"""
|
252
252
|
Prints a message and moves to the next line.
|
253
253
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
from orionis.luminate.console.base.command import BaseCommand
|
2
2
|
from orionis.luminate.console.exceptions.cli_exception import CLIOrionisRuntimeError
|
3
3
|
from orionis.luminate.contracts.application import IApplication
|
4
|
+
from orionis.framework import NAME
|
4
5
|
|
5
6
|
class HelpCommand(BaseCommand):
|
6
7
|
"""
|
@@ -35,7 +36,7 @@ class HelpCommand(BaseCommand):
|
|
35
36
|
|
36
37
|
# Display the available commands
|
37
38
|
self.newLine()
|
38
|
-
self.textSuccessBold(" (CLI Interpreter) Available Commands: ")
|
39
|
+
self.textSuccessBold(f" ({str(NAME).upper()} CLI Interpreter) Available Commands: ")
|
39
40
|
|
40
41
|
# Initialize an empty list to store the rows.
|
41
42
|
rows = []
|
@@ -442,8 +442,8 @@ class Console(IConsole):
|
|
442
442
|
"""
|
443
443
|
|
444
444
|
errors = ExceptionsToDict.parse(e)
|
445
|
-
error_type = errors.get("error_type").split(".")[-1]
|
446
|
-
error_message = errors.get("error_message").replace(error_type, "").replace("[]", "").strip()
|
445
|
+
error_type = str(errors.get("error_type")).split(".")[-1]
|
446
|
+
error_message = str(errors.get("error_message")).replace(error_type, "").replace("[]", "").strip()
|
447
447
|
stack_trace = errors.get("stack_trace")
|
448
448
|
|
449
449
|
# Format the output with a more eye-catching appearance
|
@@ -1,10 +1,10 @@
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
orionis/console.py,sha256=4gYWxf0fWYgJ4RKwARvnTPh06FL3GJ6SAZ7R2NzOICw,1342
|
3
|
-
orionis/framework.py,sha256=
|
3
|
+
orionis/framework.py,sha256=qRf3MBqE0BJyfxQWiCeS5RknzvE007hmit6b1ki-WsU,1469
|
4
4
|
orionis/installer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
orionis/installer/manager.py,sha256=
|
5
|
+
orionis/installer/manager.py,sha256=Li4TVziRXWfum02xNG4JHwbnLk-u8xzHjdqKz-D894k,2755
|
6
6
|
orionis/installer/output.py,sha256=7O9qa2xtXMB_4ZvVi-Klneom9YazwygAd_4uYAoxhbU,8548
|
7
|
-
orionis/installer/setup.py,sha256=
|
7
|
+
orionis/installer/setup.py,sha256=w5YBWN_wE_sLQ7cUSXomUgPH5lp5tfqnEfa1MUcFEok,7383
|
8
8
|
orionis/installer/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
orionis/installer/contracts/manager.py,sha256=Zfndhuyu0JaTKo3PsGsKmVsvotQMw8Pmt4KQp97elY8,1567
|
10
10
|
orionis/installer/contracts/output.py,sha256=t1KLw610-hHy63UbFFE2BYwWHWRbW8_ofuEvRLx_IUE,983
|
@@ -27,17 +27,17 @@ orionis/luminate/console/command_filter.py,sha256=fmqjQZFwhsEMKWuTtt4dIQF-souVSJ
|
|
27
27
|
orionis/luminate/console/kernel.py,sha256=knzOpbsHJJpAbCSrnFXgRHK9Uk4OisEW_jiylaR-PLA,891
|
28
28
|
orionis/luminate/console/parser.py,sha256=jQPDYHvGt-h2qnmDUObaxF9CmuX9YK_8XTYnQwKCSXE,5586
|
29
29
|
orionis/luminate/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
-
orionis/luminate/console/base/command.py,sha256=
|
30
|
+
orionis/luminate/console/base/command.py,sha256=Z5Pk2VhZEv7_0dP4f9Ay4DLX6DV4N78nraX4ty0pQ5g,12579
|
31
31
|
orionis/luminate/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
32
|
orionis/luminate/console/commands/cache_clear.py,sha256=UV2VFFK-LsUNDrqKb_Q8HWnwlwvIuTWTsbQ5x5rWHGk,2859
|
33
|
-
orionis/luminate/console/commands/help.py,sha256=
|
33
|
+
orionis/luminate/console/commands/help.py,sha256=ifo_5KfwI5mokWIvIAqjys2zSGSbudVACITlsSdbOVU,2281
|
34
34
|
orionis/luminate/console/commands/schedule_work.py,sha256=eYF94qgNjjAGLoN4JWA0e0zeNWc3fptj2NY2O7KGGGU,2174
|
35
35
|
orionis/luminate/console/commands/tests.py,sha256=Z7e6aM5Vu8C7R8iC8sJgUYVN9aJgtVMkqjUEFxPq91o,1281
|
36
36
|
orionis/luminate/console/commands/version.py,sha256=llVPK6ELtf8dIdPvLbybrtipWwZkzV0EXc9ShL-C-GY,1140
|
37
37
|
orionis/luminate/console/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
orionis/luminate/console/exceptions/cli_exception.py,sha256=T5rFjBEXWQf3RbpMb7KDoYayylm5DLPUPLC5OzkZ2-I,4623
|
39
39
|
orionis/luminate/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
|
-
orionis/luminate/console/output/console.py,sha256=
|
40
|
+
orionis/luminate/console/output/console.py,sha256=U4Hh1yf6ss9i1uzmMZ3kbOwxyBn4uBr9aem7bnpmB0E,16355
|
41
41
|
orionis/luminate/console/output/executor.py,sha256=91722rNiAsKpuq5QYiI7Aqw_7ccmn0DS9KYQrZt0TOs,3369
|
42
42
|
orionis/luminate/console/output/progress_bar.py,sha256=ZiPGcUaN3EINeLRKgLGtS1GAb1XWlCDx7wFQ7Ff0hqY,3096
|
43
43
|
orionis/luminate/console/output/styles.py,sha256=2e1_FJdNpKaVqmdlCx-udzTleH_6uEFE9_TjH7T1ZUk,3696
|
@@ -181,9 +181,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
181
181
|
tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
182
182
|
tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
|
183
183
|
tests/tools/test_reflection.py,sha256=bhLQ7VGVod4B8sv-rW9AjnOumvaBVsoxieA3sdoM2yM,5244
|
184
|
-
orionis-0.
|
185
|
-
orionis-0.
|
186
|
-
orionis-0.
|
187
|
-
orionis-0.
|
188
|
-
orionis-0.
|
189
|
-
orionis-0.
|
184
|
+
orionis-0.197.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
185
|
+
orionis-0.197.0.dist-info/METADATA,sha256=SiKzS2G5mQZoaRMQ0ByvKZ4DRcVmvBMrE15rBcmg1HQ,3003
|
186
|
+
orionis-0.197.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
187
|
+
orionis-0.197.0.dist-info/entry_points.txt,sha256=a_e0faeSqyUCVZd0MqljQ2oaHHdlsz6g9sU_bMqi5zQ,49
|
188
|
+
orionis-0.197.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
189
|
+
orionis-0.197.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|