orionis 0.13.0__py3-none-any.whl → 0.15.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/luminate/bootstrap/config/bootstrapper.py +4 -5
- orionis/luminate/contracts/bootstrap/bootstrapper_interface.py +1 -2
- {orionis-0.13.0.dist-info → orionis-0.15.0.dist-info}/METADATA +1 -1
- {orionis-0.13.0.dist-info → orionis-0.15.0.dist-info}/RECORD +9 -9
- {orionis-0.13.0.dist-info → orionis-0.15.0.dist-info}/LICENCE +0 -0
- {orionis-0.13.0.dist-info → orionis-0.15.0.dist-info}/WHEEL +0 -0
- {orionis-0.13.0.dist-info → orionis-0.15.0.dist-info}/entry_points.txt +0 -0
- {orionis-0.13.0.dist-info → orionis-0.15.0.dist-info}/top_level.txt +0 -0
orionis/framework.py
CHANGED
@@ -3,7 +3,6 @@ import importlib
|
|
3
3
|
import os
|
4
4
|
from orionis.luminate.bootstrap.config.register import Register
|
5
5
|
from orionis.luminate.contracts.bootstrap.bootstrapper_interface import IBootstrapper
|
6
|
-
from typing import List
|
7
6
|
|
8
7
|
class Bootstrapper(IBootstrapper):
|
9
8
|
"""
|
@@ -43,12 +42,12 @@ class Bootstrapper(IBootstrapper):
|
|
43
42
|
"""
|
44
43
|
self.register = register
|
45
44
|
|
46
|
-
def findClasses(self, file_path: str)
|
45
|
+
def findClasses(self, file_path: str):
|
47
46
|
"""
|
48
47
|
Parses a Python file to extract and return all defined class names.
|
49
48
|
|
50
|
-
This method opens the file at the given path, parses it using the Abstract
|
51
|
-
Syntax Tree (AST) module to extract class definitions, and returns a
|
49
|
+
This method opens the file at the given path, parses it using the Abstract
|
50
|
+
Syntax Tree (AST) module to extract class definitions, and returns a
|
52
51
|
list of class names found within the file.
|
53
52
|
|
54
53
|
Parameters
|
@@ -103,7 +102,7 @@ class Bootstrapper(IBootstrapper):
|
|
103
102
|
if classes:
|
104
103
|
for class_name in classes:
|
105
104
|
# Construct the module path and import the module
|
106
|
-
module_path = root.replace(os.getcwd(), "").replace(os.sep, ".")
|
105
|
+
module_path = root.replace(os.getcwd(), "").replace(os.sep, ".") + "." + file[:-3]
|
107
106
|
module = importlib.import_module(module_path)
|
108
107
|
class_obj = getattr(module, class_name)
|
109
108
|
|
@@ -1,5 +1,4 @@
|
|
1
1
|
from abc import ABC, abstractmethod
|
2
|
-
from ast import List
|
3
2
|
|
4
3
|
class IBootstrapper(ABC):
|
5
4
|
"""
|
@@ -22,7 +21,7 @@ class IBootstrapper(ABC):
|
|
22
21
|
"""
|
23
22
|
|
24
23
|
@abstractmethod
|
25
|
-
def findClasses(self, file_path: str)
|
24
|
+
def findClasses(self, file_path: str):
|
26
25
|
"""
|
27
26
|
Parses a Python file to extract and return all defined class names.
|
28
27
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
orionis/cli_manager.py,sha256=9wNVJxB0HyqUbNesUvkwlsqTyUbZwK6R46iVLE5WVBQ,1715
|
3
|
-
orionis/framework.py,sha256=
|
3
|
+
orionis/framework.py,sha256=D-cQGMKiHMFPL-eLRnSnH5BPExd0cvXHnaGHojYuCQI,1386
|
4
4
|
orionis/luminate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
orionis/luminate/app.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
orionis/luminate/bootstrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
orionis/luminate/bootstrap/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
orionis/luminate/bootstrap/config/bootstrapper.py,sha256=
|
8
|
+
orionis/luminate/bootstrap/config/bootstrapper.py,sha256=WHgO7jv5nSeoCuyUSGu5id_uxk7YP4gPZHKd-lEfXw4,4178
|
9
9
|
orionis/luminate/bootstrap/config/parser.py,sha256=Ez8HsMdSMMZ_5a842ZCFjkSLqbIvUrKnXGxeVP92eRo,1943
|
10
10
|
orionis/luminate/bootstrap/config/register.py,sha256=OI1M0dr_wQnfPiXhMZqhDFK1SZnTmRe_Q5_G4S8rnJs,3134
|
11
11
|
orionis/luminate/cache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -58,7 +58,7 @@ orionis/luminate/container/container.py,sha256=rgUQ1fJslFR-0nxzpubAGEMXAiZZlVd_T
|
|
58
58
|
orionis/luminate/container/exception.py,sha256=Tf7KdfbEtr0YldhZ1WrKfkBlI5W_KvZO61xWAGFdF0A,1156
|
59
59
|
orionis/luminate/container/types.py,sha256=PbPNOJ8e4SGzCmu-zOmCQmDzt1b9I73v3fw_xzLq9RU,932
|
60
60
|
orionis/luminate/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
61
|
-
orionis/luminate/contracts/bootstrap/bootstrapper_interface.py,sha256
|
61
|
+
orionis/luminate/contracts/bootstrap/bootstrapper_interface.py,sha256=sTJAlw0yja-fomUvDsS_7VsvrA8yhIBIcDyvG5URx7E,2249
|
62
62
|
orionis/luminate/contracts/bootstrap/parser_interface.py,sha256=7DLnp7yB7edayVkSm-piTi8JSf0QKaYYI82qDZudgM0,1641
|
63
63
|
orionis/luminate/contracts/bootstrap/register_interface.py,sha256=600rNNM9SaYlVuDTSirfNpwEVHODdu_ZMj_dOx_vJkU,1506
|
64
64
|
orionis/luminate/contracts/cache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -141,9 +141,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
141
141
|
tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
142
142
|
tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
|
143
143
|
tests/tools/test_reflection.py,sha256=dNN5p_xAosyEf0ddAElmmmTfhcTtBd4zBNl7qzgnsc0,5242
|
144
|
-
orionis-0.
|
145
|
-
orionis-0.
|
146
|
-
orionis-0.
|
147
|
-
orionis-0.
|
148
|
-
orionis-0.
|
149
|
-
orionis-0.
|
144
|
+
orionis-0.15.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
145
|
+
orionis-0.15.0.dist-info/METADATA,sha256=-OHH48OBvDlgkRYfLLjkdN4t5rOjFf_oPwFxDJLUXCc,2978
|
146
|
+
orionis-0.15.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
147
|
+
orionis-0.15.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
|
148
|
+
orionis-0.15.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
149
|
+
orionis-0.15.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|