orionis 0.39.0__py3-none-any.whl → 0.40.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/facades/config.py +3 -4
- orionis/luminate/orionis.py +4 -1
- {orionis-0.39.0.dist-info → orionis-0.40.0.dist-info}/METADATA +1 -1
- {orionis-0.39.0.dist-info → orionis-0.40.0.dist-info}/RECORD +9 -9
- {orionis-0.39.0.dist-info → orionis-0.40.0.dist-info}/LICENCE +0 -0
- {orionis-0.39.0.dist-info → orionis-0.40.0.dist-info}/WHEEL +0 -0
- {orionis-0.39.0.dist-info → orionis-0.40.0.dist-info}/entry_points.txt +0 -0
- {orionis-0.39.0.dist-info → orionis-0.40.0.dist-info}/top_level.txt +0 -0
orionis/framework.py
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
from orionis.luminate.container.container import Container
|
2
2
|
from orionis.luminate.cache.app.config import CacheConfig
|
3
|
-
from orionis.luminate.orionis import
|
3
|
+
from orionis.luminate.orionis import OrionisContext
|
4
4
|
|
5
5
|
class Config:
|
6
6
|
|
7
7
|
@staticmethod
|
8
8
|
def get():
|
9
|
-
with OrionisContext() as
|
10
|
-
|
11
|
-
return cont.make(CacheConfig).config
|
9
|
+
with OrionisContext() as ctx:
|
10
|
+
return ctx.make(CacheConfig).config
|
orionis/luminate/orionis.py
CHANGED
@@ -131,8 +131,11 @@ class OrionisContext(metaclass=SingletonMeta):
|
|
131
131
|
|
132
132
|
def __enter__(self):
|
133
133
|
if self.orionis.isStarted():
|
134
|
-
return self
|
134
|
+
return self.orionis.container
|
135
135
|
raise Exception(
|
136
136
|
"Error: Not running within a valid Orionis Framework context. "
|
137
137
|
"Please ensure that you are using the proper context manager."
|
138
138
|
)
|
139
|
+
|
140
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
141
|
+
pass
|
@@ -1,8 +1,8 @@
|
|
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=MnrjDYY-H6A2jU-u_U17nBEbHRRNy9rh_mWVZZTi3nY,1386
|
4
4
|
orionis/luminate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
orionis/luminate/orionis.py,sha256=
|
5
|
+
orionis/luminate/orionis.py,sha256=MYwyppBfeYf4y3C_zprXOis93dMKe9Ku9WgadlTfPH8,4528
|
6
6
|
orionis/luminate/bootstrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
orionis/luminate/bootstrap/cli_exception.py,sha256=wDKfEW295c7-bavr7YUHK2CLYcTSZgjT9ZRSBne6GOE,1356
|
8
8
|
orionis/luminate/bootstrap/commands/bootstrapper.py,sha256=TuXuQUzeaiDL8sJyZNdqnFl2h2MfxcnSU045IeIKVQE,4016
|
@@ -108,7 +108,7 @@ orionis/luminate/contracts/tools/exception_to_dict_interface.py,sha256=rCuhx2tmU
|
|
108
108
|
orionis/luminate/contracts/tools/reflection_interface.py,sha256=k9y7So3Z-_QFBBaCl-4t50ZRixt1pcxPtpwlo1NrSGk,8140
|
109
109
|
orionis/luminate/contracts/tools/std_interface.py,sha256=VtOlmz7c1llBRVzKnEBA4aJE5m0Y0w7pFJ_1TgG1-G0,1408
|
110
110
|
orionis/luminate/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
111
|
-
orionis/luminate/facades/config.py,sha256=
|
111
|
+
orionis/luminate/facades/config.py,sha256=Wa8WDE6NmKVwwFO-MuLK_mhA7jLiZsEDz8f7Yo3myAA,314
|
112
112
|
orionis/luminate/facades/environment.py,sha256=HFnePQKzbBuJxKuL2bv3-6Fwm2xXeJdqDIpGTeY2HUM,2225
|
113
113
|
orionis/luminate/facades/log.py,sha256=yHht-ok-eseVmwZgsAiHuFOS3MRLJ-YJrbG7VmHguMU,1643
|
114
114
|
orionis/luminate/facades/paths.py,sha256=qXU9KvgNw54IsNc82_S66o198CA9bMZqO8wuCMW1Rnk,7300
|
@@ -147,9 +147,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
147
147
|
tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
148
148
|
tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
|
149
149
|
tests/tools/test_reflection.py,sha256=dNN5p_xAosyEf0ddAElmmmTfhcTtBd4zBNl7qzgnsc0,5242
|
150
|
-
orionis-0.
|
151
|
-
orionis-0.
|
152
|
-
orionis-0.
|
153
|
-
orionis-0.
|
154
|
-
orionis-0.
|
155
|
-
orionis-0.
|
150
|
+
orionis-0.40.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
151
|
+
orionis-0.40.0.dist-info/METADATA,sha256=XOmuN0L2Uu0xe_bgDXrZr_ujm4NZu493JMkrZauwv7k,2978
|
152
|
+
orionis-0.40.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
153
|
+
orionis-0.40.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
|
154
|
+
orionis-0.40.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
155
|
+
orionis-0.40.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|