orionis 0.344.0__py3-none-any.whl → 0.346.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.
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.344.0"
8
+ VERSION = "0.346.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,4 +1,4 @@
1
- # Importing the ICoroutine interface from the orionis.services.asynchrony.contracts module
1
+ # Importing the ICoroutine interface
2
2
  from .coroutines import ICoroutine
3
3
 
4
4
  # Define the public API of this module
@@ -0,0 +1,7 @@
1
+ # Import environment helpers
2
+ from .functions import env
3
+
4
+ # Define the public API of this module
5
+ __all__ = [
6
+ "env"
7
+ ]
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.344.0
3
+ Version: 0.346.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -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=VSeUyY-nW9_KPODUlHn2VvqrUGOdGzuCQzkppTNuwf8,4960
226
+ orionis/metadata/framework.py,sha256=jOS_l0FnNOPQyCHIyIGImlrbwTf90pJIqdiXIaWo3KI,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,7 +231,7 @@ 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=SclRf6P6lLJ6s4p66kf8MZI1ykSZguXfooNCWNut_Co,202
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
@@ -245,6 +245,8 @@ orionis/services/environment/core/dot_env.py,sha256=CGTwddKJKlQShggCu3R5OdIdJVQd
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
248
250
  orionis/services/environment/types/__init__.py,sha256=gXdVw9ti2qKfosgz92LqMkAqiHRagSebqR1wrqy9CI4,133
249
251
  orionis/services/environment/types/env_types.py,sha256=nf7HJjm-1S-BH2YnuBQNNWvb3Aqu-QYPUTfJRgVYZ1Y,18336
250
252
  orionis/services/introspection/__init__.py,sha256=tZ6ypxoouSwemcmQvdjP3hV3537hlyNXj7RzhfPXHHM,1594
@@ -340,7 +342,7 @@ orionis/test/suite/__init__.py,sha256=5jgkmkeLwF26x3UxGXHZ7WZzlLMpuAQu9Fo1Rng0iE
340
342
  orionis/test/suite/unit_test.py,sha256=4xFDYUW6GYoyCAh5MRMilwQN-BYB7CeWkDSf6IyBqLM,52137
341
343
  orionis/test/view/__init__.py,sha256=2LWCbH_jT9Dc5a-wV3uxddDxgb6ZLayFQ84w_Cwae6o,84
342
344
  orionis/test/view/render.py,sha256=N1zUp4wruevaYwvHB1T8CizrTLDL0UgP7B4zoKJia1w,4891
343
- orionis-0.344.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
345
+ orionis-0.346.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
344
346
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
345
347
  tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
346
348
  tests/example/test_example.py,sha256=4ebBTg7vjtA8INm1lhi0NFPpZBLr8TfI5qqU-73g4vc,585
@@ -402,12 +404,12 @@ tests/metadata/test_metadata_framework.py,sha256=_YVn_BS5yfXIst3Q_qjNT1fMaI-iMOe
402
404
  tests/metadata/test_metadata_package.py,sha256=EOSGebpQyvRMY0Gv8Ni8M_EZEfj7ReSu_1_AVET-aR4,2815
403
405
  tests/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
404
406
  tests/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
405
- tests/patterns/singleton/test_patterns_singleton.py,sha256=fkFhoIbO8JnYLMSHEpNwGv8ndOJ32s5vQtNyB94Df1I,935
407
+ tests/patterns/singleton/test_patterns_singleton.py,sha256=9rTB1N2XH459hBNmci4VGclYG4tF9XRMDekjHB4caTw,924
406
408
  tests/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
407
409
  tests/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
408
- tests/services/asynchrony/test_services_asynchrony_coroutine.py,sha256=WJiKRiFvdiPDUj-vYdKNoOqiHaCtQsTTntt6V2BAhGI,1650
410
+ tests/services/asynchrony/test_services_asynchrony_coroutine.py,sha256=m0zmh_Vse0a0dT3s8bh-ZOvsuSD6x0yc8nnU9vcj3XU,1619
409
411
  tests/services/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
410
- tests/services/environment/test_services_environment.py,sha256=r15zkFl9DkTyWVVP-RFjJ88rqLHKkbtSTGLEBs6JaRA,3738
412
+ tests/services/environment/test_services_environment.py,sha256=294vz9ztPYOctkqlNjtxnYcJ_nsv0p827gkP9ptnKAo,3724
411
413
  tests/services/inspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
412
414
  tests/services/inspection/test_reflection.py,sha256=zjtB-we6N5UmnJUpfLpVJzgnlTk1T62OEBX4TnK4IEg,13671
413
415
  tests/services/inspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -441,8 +443,8 @@ tests/support/wrapper/test_services_wrapper_docdict.py,sha256=5cnxPqMWLAqKQck7wh
441
443
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
442
444
  tests/testing/test_testing_result.py,sha256=ypIHgSoWCy2GGJQU-RVYJ3adhPqlCSr0OrTlemQ6Wzc,4308
443
445
  tests/testing/test_testing_unit.py,sha256=2mPUcogIM6hOuWXDQhStVrUyBzwkVl1ucqOT2WD7kN8,7390
444
- orionis-0.344.0.dist-info/METADATA,sha256=MFZIlYtIA4SNzPxjn-u9HUqGOEcNu6RNLuhCj9XlTLc,4772
445
- orionis-0.344.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
446
- orionis-0.344.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
447
- orionis-0.344.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
448
- orionis-0.344.0.dist-info/RECORD,,
446
+ orionis-0.346.0.dist-info/METADATA,sha256=LDL5YzhkhTqlHuFhwrIAALyBSXoLJ9fxJTgmoRytZzQ,4772
447
+ orionis-0.346.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
448
+ orionis-0.346.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
449
+ orionis-0.346.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
450
+ orionis-0.346.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
- from orionis.patterns.singleton.meta_class import Singleton
1
+ from orionis.patterns.singleton import Singleton
2
2
  from orionis.test import TestCase
3
3
 
4
4
  class TestPatternsSingleton(TestCase):
@@ -1,6 +1,6 @@
1
1
 
2
- from orionis.services.asynchrony.coroutines import Coroutine
3
- from orionis.services.asynchrony.exceptions.coroutine_exception import OrionisCoroutineException
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.env import Env
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.framework import (
19
+ from orionis.metadata import (
20
20
  NAME, VERSION, AUTHOR, AUTHOR_EMAIL, DESCRIPTION,
21
21
  SKELETON, FRAMEWORK, DOCS, API, PYTHON_REQUIRES
22
22
  )