orionis 0.447.0__py3-none-any.whl → 0.448.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/core/reactor.py +19 -17
- orionis/metadata/framework.py +1 -1
- {orionis-0.447.0.dist-info → orionis-0.448.0.dist-info}/METADATA +1 -1
- {orionis-0.447.0.dist-info → orionis-0.448.0.dist-info}/RECORD +8 -8
- {orionis-0.447.0.dist-info → orionis-0.448.0.dist-info}/WHEEL +0 -0
- {orionis-0.447.0.dist-info → orionis-0.448.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.447.0.dist-info → orionis-0.448.0.dist-info}/top_level.txt +0 -0
- {orionis-0.447.0.dist-info → orionis-0.448.0.dist-info}/zip-safe +0 -0
orionis/console/core/reactor.py
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from orionis.services.introspection.modules.reflection import ReflectionModule
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
class Reactor:
|
|
2
7
|
|
|
3
8
|
def __init__(
|
|
4
9
|
self
|
|
5
10
|
):
|
|
6
11
|
self.__reactors = {}
|
|
7
|
-
|
|
8
|
-
def config(
|
|
9
|
-
self,
|
|
10
|
-
command_path: str = None,
|
|
11
|
-
):
|
|
12
|
-
"""
|
|
13
|
-
Configures the reactor with a command path.
|
|
14
|
-
:param command_path: The path to the command configuration.
|
|
15
|
-
"""
|
|
16
|
-
self.__command_path = command_path
|
|
12
|
+
self.__command_path = str((Path.cwd() / 'app' / 'console' / 'commands').resolve())
|
|
17
13
|
self.__loadCommands()
|
|
18
14
|
|
|
19
15
|
def __loadCommands(self):
|
|
20
|
-
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
|
|
17
|
+
# Base path of the project
|
|
18
|
+
root_path = str(Path.cwd())
|
|
19
|
+
|
|
20
|
+
# Iterate through the command path and load command modules
|
|
21
|
+
for current_directory, _, files in os.walk(self.__command_path):
|
|
22
|
+
for file in files:
|
|
23
|
+
if file.endswith('.py'):
|
|
24
|
+
pre_module = current_directory.replace(root_path, '').replace(os.sep, '.').lstrip('.')
|
|
25
|
+
file_name = file[:-3]
|
|
26
|
+
print(f"{pre_module}.{file_name}")
|
|
27
|
+
rf_module = ReflectionModule(f"{pre_module}.{file_name}")
|
|
28
|
+
print(rf_module.getClasses())
|
orionis/metadata/framework.py
CHANGED
|
@@ -13,7 +13,7 @@ orionis/console/base/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
13
13
|
orionis/console/base/contracts/command.py,sha256=s9yjma-s1URkVm0EbVvSkETAm-N8xX7OnZS43P8pvk8,1957
|
|
14
14
|
orionis/console/commands/version.py,sha256=kR8xzyc-Wisk7AXqg3Do7M9xTg_CxJgAtESPGrbRtpI,1673
|
|
15
15
|
orionis/console/contracts/kernel.py,sha256=mh4LlhEYHh3FuGZZQ0GBhD6ZLa5YQvaNj2r01IIHI5Y,826
|
|
16
|
-
orionis/console/core/reactor.py,sha256=
|
|
16
|
+
orionis/console/core/reactor.py,sha256=K3hPCdQpMskSSVDVAwi5caUVWbYJzbQJunuziZ5Hktk,995
|
|
17
17
|
orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
orionis/console/dumper/dump.py,sha256=CATERiQ6XuIrKQsDaWcVxzTtlAJI9qLJX44fQxEX8ws,22443
|
|
19
19
|
orionis/console/dumper/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -178,7 +178,7 @@ orionis/foundation/providers/progress_bar_provider.py,sha256=P__zpCyC29WCwErYGbh
|
|
|
178
178
|
orionis/foundation/providers/testing_provider.py,sha256=TGklBDI4hcCnZ26ZYRQ5n_2xSDfTk4X7YJPv1CHRkN0,2884
|
|
179
179
|
orionis/foundation/providers/workers_provider.py,sha256=YMRLdq_YQnR1unnoYvDpYQZbLli04f0CckuR6Q--wKg,1379
|
|
180
180
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
181
|
-
orionis/metadata/framework.py,sha256=
|
|
181
|
+
orionis/metadata/framework.py,sha256=V6LicbR5Jcc2HsX4LtWkblm3ndhL_OIa9aJlXVZN9-g,4088
|
|
182
182
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
183
183
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
184
184
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -343,7 +343,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
343
343
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
344
344
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
345
345
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
346
|
-
orionis-0.
|
|
346
|
+
orionis-0.448.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
347
347
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
348
348
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
349
349
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -487,8 +487,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
487
487
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
488
488
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
489
489
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
490
|
-
orionis-0.
|
|
491
|
-
orionis-0.
|
|
492
|
-
orionis-0.
|
|
493
|
-
orionis-0.
|
|
494
|
-
orionis-0.
|
|
490
|
+
orionis-0.448.0.dist-info/METADATA,sha256=cIvEnppWITYHQEX4OFtclDYGLRI4fy4F4249r0nJuGg,4772
|
|
491
|
+
orionis-0.448.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
492
|
+
orionis-0.448.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
493
|
+
orionis-0.448.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
494
|
+
orionis-0.448.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|