orionis 0.648.0__py3-none-any.whl → 0.649.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/console/contracts/cli_request.py +1 -90
- orionis/console/request/cli_request.py +2 -96
- orionis/metadata/framework.py +1 -1
- {orionis-0.648.0.dist-info → orionis-0.649.0.dist-info}/METADATA +1 -1
- {orionis-0.648.0.dist-info → orionis-0.649.0.dist-info}/RECORD +8 -8
- {orionis-0.648.0.dist-info → orionis-0.649.0.dist-info}/WHEEL +0 -0
- {orionis-0.648.0.dist-info → orionis-0.649.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.648.0.dist-info → orionis-0.649.0.dist-info}/top_level.txt +0 -0
|
@@ -27,7 +27,7 @@ class ICLIRequest(ABC):
|
|
|
27
27
|
pass
|
|
28
28
|
|
|
29
29
|
@abstractmethod
|
|
30
|
-
def
|
|
30
|
+
def arguments(self) -> dict:
|
|
31
31
|
"""
|
|
32
32
|
Retrieve all command line arguments as a complete dictionary.
|
|
33
33
|
|
|
@@ -82,93 +82,4 @@ class ICLIRequest(ABC):
|
|
|
82
82
|
This method uses the dictionary's get() method to safely access values,
|
|
83
83
|
ensuring that missing arguments return None rather than raising a KeyError.
|
|
84
84
|
"""
|
|
85
|
-
pass
|
|
86
|
-
|
|
87
|
-
def getCWD(self) -> str:
|
|
88
|
-
"""
|
|
89
|
-
Retrieve the current working directory (CWD) as an absolute path.
|
|
90
|
-
|
|
91
|
-
This method returns the absolute path of the directory from which the Python process was started.
|
|
92
|
-
It is useful for determining the context in which the CLI command is being executed, especially
|
|
93
|
-
when dealing with relative file paths or when the working directory may affect application behavior.
|
|
94
|
-
|
|
95
|
-
Returns
|
|
96
|
-
-------
|
|
97
|
-
str
|
|
98
|
-
The absolute path to the current working directory as a string.
|
|
99
|
-
"""
|
|
100
|
-
pass
|
|
101
|
-
|
|
102
|
-
def getPID(self) -> int:
|
|
103
|
-
"""
|
|
104
|
-
Retrieve the process ID (PID) of the current Python process.
|
|
105
|
-
|
|
106
|
-
This method returns the unique identifier assigned by the operating system
|
|
107
|
-
to the currently running Python process. The PID can be useful for logging,
|
|
108
|
-
debugging, or managing process-related operations.
|
|
109
|
-
|
|
110
|
-
Returns
|
|
111
|
-
-------
|
|
112
|
-
int
|
|
113
|
-
The process ID (PID) of the current Python process as an integer.
|
|
114
|
-
"""
|
|
115
|
-
pass
|
|
116
|
-
|
|
117
|
-
def getParentPID(self) -> int:
|
|
118
|
-
"""
|
|
119
|
-
Retrieve the parent process ID (PPID) of the current Python process.
|
|
120
|
-
|
|
121
|
-
This method returns the process ID of the parent process that spawned the current
|
|
122
|
-
Python process. The parent process ID can be useful for tracking process hierarchies,
|
|
123
|
-
debugging, or managing process relationships in CLI applications.
|
|
124
|
-
|
|
125
|
-
Returns
|
|
126
|
-
-------
|
|
127
|
-
int
|
|
128
|
-
The parent process ID (PPID) as an integer. This value is assigned by the operating
|
|
129
|
-
system and uniquely identifies the parent process of the current Python process.
|
|
130
|
-
|
|
131
|
-
Notes
|
|
132
|
-
-----
|
|
133
|
-
The returned PPID is determined by the operating system and may vary depending on how
|
|
134
|
-
the Python process was started. If the parent process has terminated, the PPID may refer
|
|
135
|
-
to the init process or another system-defined process.
|
|
136
|
-
"""
|
|
137
|
-
pass
|
|
138
|
-
|
|
139
|
-
def getExecutable(self) -> str:
|
|
140
|
-
"""
|
|
141
|
-
Retrieve the absolute path to the Python interpreter executable.
|
|
142
|
-
|
|
143
|
-
This method returns the full filesystem path to the Python interpreter
|
|
144
|
-
that is currently executing the script. This can be useful for debugging,
|
|
145
|
-
spawning subprocesses, or determining the runtime environment.
|
|
146
|
-
|
|
147
|
-
Returns
|
|
148
|
-
-------
|
|
149
|
-
str
|
|
150
|
-
The absolute path to the Python executable as a string.
|
|
151
|
-
"""
|
|
152
|
-
pass
|
|
153
|
-
|
|
154
|
-
def getPlatform(self) -> str:
|
|
155
|
-
"""
|
|
156
|
-
Retrieve the name of the current operating system platform.
|
|
157
|
-
|
|
158
|
-
This method determines the name of the operating system on which the Python
|
|
159
|
-
interpreter is currently running. It uses the standard library's `platform`
|
|
160
|
-
module to obtain a human-readable string representing the platform, such as
|
|
161
|
-
'Windows', 'Linux', or 'Darwin' (for macOS).
|
|
162
|
-
|
|
163
|
-
Returns
|
|
164
|
-
-------
|
|
165
|
-
str
|
|
166
|
-
A string representing the name of the operating system platform. Typical
|
|
167
|
-
return values include 'Windows', 'Linux', or 'Darwin'.
|
|
168
|
-
|
|
169
|
-
Notes
|
|
170
|
-
-----
|
|
171
|
-
The returned value is determined by the underlying system and may vary
|
|
172
|
-
depending on the environment in which the code is executed.
|
|
173
|
-
"""
|
|
174
85
|
pass
|
|
@@ -155,7 +155,7 @@ class CLIRequest(ICLIRequest):
|
|
|
155
155
|
# This provides access to the command specified during initialization
|
|
156
156
|
return self.__command
|
|
157
157
|
|
|
158
|
-
def
|
|
158
|
+
def arguments(self) -> dict:
|
|
159
159
|
"""
|
|
160
160
|
Retrieve all command line arguments as a complete dictionary.
|
|
161
161
|
|
|
@@ -218,98 +218,4 @@ class CLIRequest(ICLIRequest):
|
|
|
218
218
|
return default
|
|
219
219
|
|
|
220
220
|
# Return the value associated with the specified argument name
|
|
221
|
-
return self.__args.get(name, default)
|
|
222
|
-
|
|
223
|
-
def getCWD(self) -> str:
|
|
224
|
-
"""
|
|
225
|
-
Retrieve the current working directory (CWD) as an absolute path.
|
|
226
|
-
|
|
227
|
-
This method returns the absolute path of the directory from which the Python process was started.
|
|
228
|
-
It is useful for determining the context in which the CLI command is being executed, especially
|
|
229
|
-
when dealing with relative file paths or when the working directory may affect application behavior.
|
|
230
|
-
|
|
231
|
-
Returns
|
|
232
|
-
-------
|
|
233
|
-
str
|
|
234
|
-
The absolute path to the current working directory as a string.
|
|
235
|
-
"""
|
|
236
|
-
import os # Import the os module to interact with the operating system
|
|
237
|
-
return os.getcwd() # Return the current working directory
|
|
238
|
-
|
|
239
|
-
def getPID(self) -> int:
|
|
240
|
-
"""
|
|
241
|
-
Retrieve the process ID (PID) of the current Python process.
|
|
242
|
-
|
|
243
|
-
This method returns the unique identifier assigned by the operating system
|
|
244
|
-
to the currently running Python process. The PID can be useful for logging,
|
|
245
|
-
debugging, or managing process-related operations.
|
|
246
|
-
|
|
247
|
-
Returns
|
|
248
|
-
-------
|
|
249
|
-
int
|
|
250
|
-
The process ID (PID) of the current Python process as an integer.
|
|
251
|
-
"""
|
|
252
|
-
import os # Import the os module to access operating system functionality
|
|
253
|
-
return os.getpid() # Return the current process ID
|
|
254
|
-
|
|
255
|
-
def getParentPID(self) -> int:
|
|
256
|
-
"""
|
|
257
|
-
Retrieve the parent process ID (PPID) of the current Python process.
|
|
258
|
-
|
|
259
|
-
This method returns the process ID of the parent process that spawned the current
|
|
260
|
-
Python process. The parent process ID can be useful for tracking process hierarchies,
|
|
261
|
-
debugging, or managing process relationships in CLI applications.
|
|
262
|
-
|
|
263
|
-
Returns
|
|
264
|
-
-------
|
|
265
|
-
int
|
|
266
|
-
The parent process ID (PPID) as an integer. This value is assigned by the operating
|
|
267
|
-
system and uniquely identifies the parent process of the current Python process.
|
|
268
|
-
|
|
269
|
-
Notes
|
|
270
|
-
-----
|
|
271
|
-
The returned PPID is determined by the operating system and may vary depending on how
|
|
272
|
-
the Python process was started. If the parent process has terminated, the PPID may refer
|
|
273
|
-
to the init process or another system-defined process.
|
|
274
|
-
"""
|
|
275
|
-
import os # Import the os module to interact with the operating system
|
|
276
|
-
return os.getppid() # Return the parent process ID of the current process
|
|
277
|
-
|
|
278
|
-
def getExecutable(self) -> str:
|
|
279
|
-
"""
|
|
280
|
-
Retrieve the absolute path to the Python interpreter executable.
|
|
281
|
-
|
|
282
|
-
This method returns the full filesystem path to the Python interpreter
|
|
283
|
-
that is currently executing the script. This can be useful for debugging,
|
|
284
|
-
spawning subprocesses, or determining the runtime environment.
|
|
285
|
-
|
|
286
|
-
Returns
|
|
287
|
-
-------
|
|
288
|
-
str
|
|
289
|
-
The absolute path to the Python executable as a string.
|
|
290
|
-
"""
|
|
291
|
-
import sys # Import sys module to access interpreter information
|
|
292
|
-
return sys.executable # Return the path to the Python executable
|
|
293
|
-
|
|
294
|
-
def getPlatform(self) -> str:
|
|
295
|
-
"""
|
|
296
|
-
Retrieve the name of the current operating system platform.
|
|
297
|
-
|
|
298
|
-
This method determines the name of the operating system on which the Python
|
|
299
|
-
interpreter is currently running. It uses the standard library's `platform`
|
|
300
|
-
module to obtain a human-readable string representing the platform, such as
|
|
301
|
-
'Windows', 'Linux', or 'Darwin' (for macOS).
|
|
302
|
-
|
|
303
|
-
Returns
|
|
304
|
-
-------
|
|
305
|
-
str
|
|
306
|
-
A string representing the name of the operating system platform. Typical
|
|
307
|
-
return values include 'Windows', 'Linux', or 'Darwin'.
|
|
308
|
-
|
|
309
|
-
Notes
|
|
310
|
-
-----
|
|
311
|
-
The returned value is determined by the underlying system and may vary
|
|
312
|
-
depending on the environment in which the code is executed.
|
|
313
|
-
"""
|
|
314
|
-
import platform # Import the platform module to access system information
|
|
315
|
-
return platform.system() # Return the platform name as a string
|
|
221
|
+
return self.__args.get(name, default)
|
orionis/metadata/framework.py
CHANGED
|
@@ -21,7 +21,7 @@ orionis/console/commands/version.py,sha256=u5_8CfnEVdS3VSME8rbP6o3Z0XFZ30nSz8uHd
|
|
|
21
21
|
orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
orionis/console/contracts/base_command.py,sha256=UlDN41Ts0ulxM-B2kgeKNr9_gNv_0LCth_pon1os-8U,7617
|
|
23
23
|
orionis/console/contracts/base_scheduler.py,sha256=RSxEW57MoMU3pXfliIrQw9WuMk95p-xHXi1yACp1qsU,7728
|
|
24
|
-
orionis/console/contracts/cli_request.py,sha256=
|
|
24
|
+
orionis/console/contracts/cli_request.py,sha256=Q5eiOitdZve-33e5dqO_O-Fha5I1u4u7z7XFPz79dZU,3366
|
|
25
25
|
orionis/console/contracts/command.py,sha256=Wvm62hw2gDIPNmoEUFyhKUERjZ6wnAbI-UDY_5gJE24,3626
|
|
26
26
|
orionis/console/contracts/console.py,sha256=TuoyCLInhp5ztlyJ82rBsw_1Ki3_fOnF_gtaWUxSW1M,14253
|
|
27
27
|
orionis/console/contracts/dumper.py,sha256=h8ScHF31Q3oOdEe5_EyozOD8OGcLvkMG4KkJwa3ANX8,4538
|
|
@@ -61,7 +61,7 @@ orionis/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
61
61
|
orionis/console/output/console.py,sha256=8gxl0gfYyxAKt9rdkMjJU71CdTn84yvzOWbtIF3u0EE,24215
|
|
62
62
|
orionis/console/output/executor.py,sha256=uQjFPOlyZLFj9pcyYPugCqxwJog0AJgK1OcmQH2ELbw,7314
|
|
63
63
|
orionis/console/request/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
64
|
-
orionis/console/request/cli_request.py,sha256=
|
|
64
|
+
orionis/console/request/cli_request.py,sha256=NfZ7Z21cvulwo_quSmu7pQWhXtYaxycO6yh44ZN6_Ps,9061
|
|
65
65
|
orionis/console/stubs/command.stub,sha256=ABQ2eFxJ0u0DvTfmoO_DdECkBy-rie-woG62G2Gxw8Y,805
|
|
66
66
|
orionis/console/stubs/listener.stub,sha256=DbX-ghx2-vb73kzQ6L20lyg5vSKn58jSLTwFuwNQU9k,4331
|
|
67
67
|
orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -217,7 +217,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
|
|
|
217
217
|
orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
|
|
218
218
|
orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
|
|
219
219
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
220
|
-
orionis/metadata/framework.py,sha256=
|
|
220
|
+
orionis/metadata/framework.py,sha256=gI4Ag6LAJ9jCcnmoA9_zhRISxwe7C2TuuwZYK-rshKg,4089
|
|
221
221
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
222
222
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
223
223
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -404,8 +404,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
|
|
|
404
404
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
405
405
|
orionis/test/view/render.py,sha256=R55ykeRs0wDKcdTf4O1YZ8GDHTFmJ0IK6VQkbJkYUvo,5571
|
|
406
406
|
orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
|
|
407
|
-
orionis-0.
|
|
408
|
-
orionis-0.
|
|
409
|
-
orionis-0.
|
|
410
|
-
orionis-0.
|
|
411
|
-
orionis-0.
|
|
407
|
+
orionis-0.649.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
408
|
+
orionis-0.649.0.dist-info/METADATA,sha256=6D9of_YNLr6nrNTcT4I0ehJoZs6QiCnRBPN_37zUg8Y,4772
|
|
409
|
+
orionis-0.649.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
410
|
+
orionis-0.649.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
|
411
|
+
orionis-0.649.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|