orionis 0.343.0__py3-none-any.whl → 0.345.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/metadata/framework.py +1 -1
- orionis/services/asynchrony/contracts/__init__.py +1 -1
- orionis/services/environment/__init__.py +1 -5
- orionis/services/environment/core/__init__.py +7 -0
- orionis/services/environment/env.py +1 -1
- orionis/services/environment/helpers/__init__.py +7 -0
- orionis/services/environment/helpers/functions.py +21 -0
- orionis/services/environment/types/__init__.py +7 -0
- {orionis-0.343.0.dist-info → orionis-0.345.0.dist-info}/METADATA +1 -1
- {orionis-0.343.0.dist-info → orionis-0.345.0.dist-info}/RECORD +18 -14
- tests/services/asynchrony/test_services_asynchrony_coroutine.py +2 -2
- tests/services/environment/test_services_environment.py +2 -2
- /orionis/services/environment/{dot_env.py → core/dot_env.py} +0 -0
- /orionis/services/environment/{types.py → types/env_types.py} +0 -0
- {orionis-0.343.0.dist-info → orionis-0.345.0.dist-info}/WHEEL +0 -0
- {orionis-0.343.0.dist-info → orionis-0.345.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.343.0.dist-info → orionis-0.345.0.dist-info}/top_level.txt +0 -0
- {orionis-0.343.0.dist-info → orionis-0.345.0.dist-info}/zip-safe +0 -0
orionis/metadata/framework.py
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
from orionis.services.environment.core import DotEnv
|
|
3
|
+
|
|
4
|
+
def env(key: str, default: Any = None) -> Any:
|
|
5
|
+
"""
|
|
6
|
+
Retrieve the value of an environment variable.
|
|
7
|
+
|
|
8
|
+
Parameters
|
|
9
|
+
----------
|
|
10
|
+
key : str
|
|
11
|
+
The name of the environment variable to retrieve.
|
|
12
|
+
default : Any, optional
|
|
13
|
+
The value to return if the environment variable is not found. Default is None.
|
|
14
|
+
|
|
15
|
+
Returns
|
|
16
|
+
-------
|
|
17
|
+
Any
|
|
18
|
+
The value of the environment variable if it exists, otherwise the default value.
|
|
19
|
+
"""
|
|
20
|
+
dotenv = DotEnv()
|
|
21
|
+
return dotenv.get(key, default)
|
|
@@ -223,7 +223,7 @@ orionis/foundation/exceptions/__init__.py,sha256=IqjZ970Nsck5dMaaknbyn5X4cj796Jq
|
|
|
223
223
|
orionis/foundation/exceptions/integrity.py,sha256=mc4pL1UMoYRHEmphnpW2oGk5URhu7DJRREyzHaV-cs8,472
|
|
224
224
|
orionis/foundation/exceptions/value_error.py,sha256=hQhXybXEnaa59ba7JxG65jceHt3mnql9MyekF-TChpM,465
|
|
225
225
|
orionis/metadata/__init__.py,sha256=4E7FOLUw8NMYkEjQ1-IA-x5PyfA3qsMnhx6QBkVzBKk,594
|
|
226
|
-
orionis/metadata/framework.py,sha256=
|
|
226
|
+
orionis/metadata/framework.py,sha256=nrrW2c2plRJN-EXlMG-zoZnolx7nTnGf_ZwdvmcBxY4,4960
|
|
227
227
|
orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
|
|
228
228
|
orionis/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
229
229
|
orionis/patterns/singleton/__init__.py,sha256=5mdiQLrkfJ8uAryx_EjdREf8z-c9oIr8hanbr3E-dKA,152
|
|
@@ -231,20 +231,24 @@ orionis/patterns/singleton/meta_class.py,sha256=YN5mSSQeIX_Gh_TK5HD-ms6IYBTRsRcu
|
|
|
231
231
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
232
232
|
orionis/services/asynchrony/__init__.py,sha256=VojgnK7BrSl7fKaJApG90-ioCxWeXXYntGqKuFUNAcc,186
|
|
233
233
|
orionis/services/asynchrony/coroutines.py,sha256=S6s_Kk5JxGCm44NpgBdZ_YNSamBl8Julpd8FJV1laEM,2352
|
|
234
|
-
orionis/services/asynchrony/contracts/__init__.py,sha256=
|
|
234
|
+
orionis/services/asynchrony/contracts/__init__.py,sha256=giKCC81bbr3RTMd0xlINVnD9CNBDyHYpgMrvGgY-K4c,148
|
|
235
235
|
orionis/services/asynchrony/contracts/coroutines.py,sha256=Wuwp2k4HXAX-tQ3waVIT8AmzX_HeIbjliRchKIqy2k0,688
|
|
236
236
|
orionis/services/asynchrony/exceptions/__init__.py,sha256=VZUzDi10kGx_A2be7jDBs7Fkq_dHGOvI25gBMRDXj2I,229
|
|
237
237
|
orionis/services/asynchrony/exceptions/coroutine_exception.py,sha256=eopQpl-2chut-iN1drBy-53EDKava1icwtcWUF4S1Cc,472
|
|
238
|
-
orionis/services/environment/__init__.py,sha256=
|
|
239
|
-
orionis/services/environment/
|
|
240
|
-
orionis/services/environment/env.py,sha256=GzpyOQZF6ql5WFStgKuJq86dVaJMAa5TuWaLuKlHrvs,2795
|
|
241
|
-
orionis/services/environment/types.py,sha256=nf7HJjm-1S-BH2YnuBQNNWvb3Aqu-QYPUTfJRgVYZ1Y,18336
|
|
238
|
+
orionis/services/environment/__init__.py,sha256=7evIQkzVpjTv4mRPilOXcTswGgpoEMvD5c9VUFqZu2U,120
|
|
239
|
+
orionis/services/environment/env.py,sha256=0zK_84iY7v_I7XG0z24WL7kioh5Sdngbd4uOfmpNejM,2792
|
|
242
240
|
orionis/services/environment/contracts/__init__.py,sha256=NJe6DDdq8XKbrI2-BDEN8aB_G8bp0QORO1J1ECzZqgA,172
|
|
243
241
|
orionis/services/environment/contracts/env.py,sha256=7lezGxABAG63pEEvzAmHXgr9izBI6TCp05Trx_SRvc4,2054
|
|
244
242
|
orionis/services/environment/contracts/types.py,sha256=n0USxUblz0Ofbo1ef0hnGHGkuGjSiWk-SBWVPXv33mE,1994
|
|
243
|
+
orionis/services/environment/core/__init__.py,sha256=JDh6jfkAaJjETZA0VjEFIqPHPLvZbw_ky5DNb_nRC_U,130
|
|
244
|
+
orionis/services/environment/core/dot_env.py,sha256=CGTwddKJKlQShggCu3R5OdIdJVQdfDNergGtFVHYHJg,10141
|
|
245
245
|
orionis/services/environment/exceptions/__init__.py,sha256=izq_808HYWZn1DTVNITeaafcR1mb6vj4I3B8w9GprH0,309
|
|
246
246
|
orionis/services/environment/exceptions/environment_value_error.py,sha256=Pe1qNHRrM9T0AzESN284CzA3GQYxzokfXPMOVqOTlyQ,475
|
|
247
247
|
orionis/services/environment/exceptions/environment_value_exception.py,sha256=NnxWmgoSca7LXi7GLDa95HSBPKotFfy8u729d1OAmCc,479
|
|
248
|
+
orionis/services/environment/helpers/__init__.py,sha256=jGu6WuVI2y-cpskhPHCzoExUZdi10Ponv9xyFEES56I,125
|
|
249
|
+
orionis/services/environment/helpers/functions.py,sha256=BFo71vbMBROx5Lrfq5zHwZrkItFoF_VA83FRsUhl-RA,610
|
|
250
|
+
orionis/services/environment/types/__init__.py,sha256=gXdVw9ti2qKfosgz92LqMkAqiHRagSebqR1wrqy9CI4,133
|
|
251
|
+
orionis/services/environment/types/env_types.py,sha256=nf7HJjm-1S-BH2YnuBQNNWvb3Aqu-QYPUTfJRgVYZ1Y,18336
|
|
248
252
|
orionis/services/introspection/__init__.py,sha256=tZ6ypxoouSwemcmQvdjP3hV3537hlyNXj7RzhfPXHHM,1594
|
|
249
253
|
orionis/services/introspection/inspection.py,sha256=jxHaC5Q7aydCJ66WPugplB7cfHVOgyTP9zMubqyLjUo,6349
|
|
250
254
|
orionis/services/introspection/reflection.py,sha256=_3Zns_hRFoz7pG8C3YoZWJ5P7ikzwjJi0J09WLAJIXk,11639
|
|
@@ -338,7 +342,7 @@ orionis/test/suite/__init__.py,sha256=5jgkmkeLwF26x3UxGXHZ7WZzlLMpuAQu9Fo1Rng0iE
|
|
|
338
342
|
orionis/test/suite/unit_test.py,sha256=4xFDYUW6GYoyCAh5MRMilwQN-BYB7CeWkDSf6IyBqLM,52137
|
|
339
343
|
orionis/test/view/__init__.py,sha256=2LWCbH_jT9Dc5a-wV3uxddDxgb6ZLayFQ84w_Cwae6o,84
|
|
340
344
|
orionis/test/view/render.py,sha256=N1zUp4wruevaYwvHB1T8CizrTLDL0UgP7B4zoKJia1w,4891
|
|
341
|
-
orionis-0.
|
|
345
|
+
orionis-0.345.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
|
342
346
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
343
347
|
tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
344
348
|
tests/example/test_example.py,sha256=4ebBTg7vjtA8INm1lhi0NFPpZBLr8TfI5qqU-73g4vc,585
|
|
@@ -403,9 +407,9 @@ tests/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
403
407
|
tests/patterns/singleton/test_patterns_singleton.py,sha256=fkFhoIbO8JnYLMSHEpNwGv8ndOJ32s5vQtNyB94Df1I,935
|
|
404
408
|
tests/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
405
409
|
tests/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
406
|
-
tests/services/asynchrony/test_services_asynchrony_coroutine.py,sha256=
|
|
410
|
+
tests/services/asynchrony/test_services_asynchrony_coroutine.py,sha256=m0zmh_Vse0a0dT3s8bh-ZOvsuSD6x0yc8nnU9vcj3XU,1619
|
|
407
411
|
tests/services/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
408
|
-
tests/services/environment/test_services_environment.py,sha256=
|
|
412
|
+
tests/services/environment/test_services_environment.py,sha256=294vz9ztPYOctkqlNjtxnYcJ_nsv0p827gkP9ptnKAo,3724
|
|
409
413
|
tests/services/inspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
410
414
|
tests/services/inspection/test_reflection.py,sha256=zjtB-we6N5UmnJUpfLpVJzgnlTk1T62OEBX4TnK4IEg,13671
|
|
411
415
|
tests/services/inspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -439,8 +443,8 @@ tests/support/wrapper/test_services_wrapper_docdict.py,sha256=5cnxPqMWLAqKQck7wh
|
|
|
439
443
|
tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
440
444
|
tests/testing/test_testing_result.py,sha256=ypIHgSoWCy2GGJQU-RVYJ3adhPqlCSr0OrTlemQ6Wzc,4308
|
|
441
445
|
tests/testing/test_testing_unit.py,sha256=2mPUcogIM6hOuWXDQhStVrUyBzwkVl1ucqOT2WD7kN8,7390
|
|
442
|
-
orionis-0.
|
|
443
|
-
orionis-0.
|
|
444
|
-
orionis-0.
|
|
445
|
-
orionis-0.
|
|
446
|
-
orionis-0.
|
|
446
|
+
orionis-0.345.0.dist-info/METADATA,sha256=sQEyVI8hQNGYiU_XAMi385c9rAUODGcPS7Zn90WYctk,4772
|
|
447
|
+
orionis-0.345.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
448
|
+
orionis-0.345.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
449
|
+
orionis-0.345.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
450
|
+
orionis-0.345.0.dist-info/RECORD,,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
from orionis.services.asynchrony
|
|
3
|
-
from orionis.services.asynchrony.exceptions
|
|
2
|
+
from orionis.services.asynchrony import Coroutine
|
|
3
|
+
from orionis.services.asynchrony.exceptions import OrionisCoroutineException
|
|
4
4
|
from orionis.test import TestCase
|
|
5
5
|
|
|
6
6
|
class TestServicesAsynchronyCoroutine(TestCase):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from orionis.services.environment
|
|
1
|
+
from orionis.services.environment import Env
|
|
2
2
|
from orionis.test import TestCase
|
|
3
3
|
|
|
4
4
|
class TestServicesEnvironment(TestCase):
|
|
@@ -16,7 +16,7 @@ class TestServicesEnvironment(TestCase):
|
|
|
16
16
|
- `Env.set` returns True for each constant.
|
|
17
17
|
- `Env.get` returns the correct value for each constant.
|
|
18
18
|
"""
|
|
19
|
-
from orionis.metadata
|
|
19
|
+
from orionis.metadata import (
|
|
20
20
|
NAME, VERSION, AUTHOR, AUTHOR_EMAIL, DESCRIPTION,
|
|
21
21
|
SKELETON, FRAMEWORK, DOCS, API, PYTHON_REQUIRES
|
|
22
22
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|