orionis 0.548.0__py3-none-any.whl → 0.549.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 +89 -0
- orionis/console/request/cli_request.py +95 -1
- orionis/metadata/framework.py +1 -1
- {orionis-0.548.0.dist-info → orionis-0.549.0.dist-info}/METADATA +1 -1
- {orionis-0.548.0.dist-info → orionis-0.549.0.dist-info}/RECORD +8 -8
- {orionis-0.548.0.dist-info → orionis-0.549.0.dist-info}/WHEEL +0 -0
- {orionis-0.548.0.dist-info → orionis-0.549.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.548.0.dist-info → orionis-0.549.0.dist-info}/top_level.txt +0 -0
@@ -82,4 +82,93 @@ 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
|
+
"""
|
85
174
|
pass
|
@@ -218,4 +218,98 @@ 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)
|
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
|
orionis/metadata/framework.py
CHANGED
@@ -21,7 +21,7 @@ orionis/console/commands/workflow.py,sha256=NYOmjTSvm2o6AE4h9LSTZMFSYPQreNmEJtro
|
|
21
21
|
orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
orionis/console/contracts/base_command.py,sha256=vmAJD0yMQ5-AD_s9_xCFEAl64sKk65z7U2E196dALQM,5760
|
23
23
|
orionis/console/contracts/base_scheduler.py,sha256=OW-a_YDDNPrenYT9z8Tv71VjyZ1aSzqzqhTBhTCZhGM,7698
|
24
|
-
orionis/console/contracts/cli_request.py,sha256=
|
24
|
+
orionis/console/contracts/cli_request.py,sha256=qIV8ig8PG39LYp1acnUD8GYsNRSHncxIxGjO3B3YsUo,6755
|
25
25
|
orionis/console/contracts/command.py,sha256=Wvm62hw2gDIPNmoEUFyhKUERjZ6wnAbI-UDY_5gJE24,3626
|
26
26
|
orionis/console/contracts/console.py,sha256=phaQhCLWa81MLzB5ydOSaUfEIdDq7fOjvym8Rmi-arc,11908
|
27
27
|
orionis/console/contracts/dump.py,sha256=LqT4nAyn37eACNz0c_WqQd8BDXgZ9pugtkiVlHOP6yc,1012
|
@@ -80,7 +80,7 @@ orionis/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
80
80
|
orionis/console/output/console.py,sha256=EtSDWRBW8wk0iJdPfB1mzU49krLJBaSAUdVdVOzzhQ4,17888
|
81
81
|
orionis/console/output/executor.py,sha256=uQjFPOlyZLFj9pcyYPugCqxwJog0AJgK1OcmQH2ELbw,7314
|
82
82
|
orionis/console/request/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
83
|
-
orionis/console/request/cli_request.py,sha256=
|
83
|
+
orionis/console/request/cli_request.py,sha256=zFuoFzLVDCcSNcJZAuLAlsc9jfhck5o23qaKc2C0QAg,13231
|
84
84
|
orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
85
85
|
orionis/console/tasks/schedule.py,sha256=FgZWJtfXRcZ_-FfJaxP1LzHmDtm5QD9QRRCJ--QMqK8,83385
|
86
86
|
orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -241,7 +241,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=1do4B09bU_6xbFHHVYYTGM
|
|
241
241
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
242
242
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
243
243
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
244
|
-
orionis/metadata/framework.py,sha256=
|
244
|
+
orionis/metadata/framework.py,sha256=dNCXPNRAN0XUaGbBHf3pbs-glIqhnCpmevRzDEeDj-c,4109
|
245
245
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
246
246
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
247
247
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -433,8 +433,8 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
433
433
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
434
434
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
435
435
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
436
|
-
orionis-0.
|
437
|
-
orionis-0.
|
438
|
-
orionis-0.
|
439
|
-
orionis-0.
|
440
|
-
orionis-0.
|
436
|
+
orionis-0.549.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
437
|
+
orionis-0.549.0.dist-info/METADATA,sha256=kIuCc2awemPVuMkEd_rYpQpZ3N7aanweQd-Knrpfcvw,4801
|
438
|
+
orionis-0.549.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
439
|
+
orionis-0.549.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
440
|
+
orionis-0.549.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|