orionis 0.666.0__py3-none-any.whl → 0.668.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.666.0"
8
+ VERSION = "0.668.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
- from typing import Any
1
+ from typing import Any, Optional
2
2
  from orionis.services.environment.contracts.caster import IEnvironmentCaster
3
3
  from orionis.services.environment.enums.value_type import EnvironmentValueType
4
4
  from orionis.services.environment.exceptions import OrionisEnvironmentValueError, OrionisEnvironmentValueException
@@ -9,7 +9,7 @@ class EnvironmentCaster(IEnvironmentCaster):
9
9
  OPTIONS = {e.value for e in EnvironmentValueType}
10
10
 
11
11
  @staticmethod
12
- def options() -> set:
12
+ def options() -> set: # NOSONAR
13
13
  """
14
14
  Get the set of valid type hints supported by this class.
15
15
 
@@ -50,7 +50,7 @@ class EnvironmentCaster(IEnvironmentCaster):
50
50
  """
51
51
 
52
52
  # Initialize type hint and value to default None
53
- self.__type_hint: str = None
53
+ self.__type_hint: Optional[str] = None
54
54
  self.__value_raw: str | Any = None
55
55
 
56
56
  # If the input is a string, attempt to parse type hint and value
@@ -75,7 +75,7 @@ class EnvironmentCaster(IEnvironmentCaster):
75
75
  # If input is not a string, treat it as the value with no type hint
76
76
  self.__value_raw = raw
77
77
 
78
- def get(self):
78
+ def get(self): # NOSONAR
79
79
  """
80
80
  Returns the processed value based on the specified type hint.
81
81
 
@@ -72,7 +72,7 @@ class ReflectDependencies(IReflectDependencies):
72
72
 
73
73
  try:
74
74
  return inspect.signature(target)
75
- except (ReflectionValueError, TypeError, Exception) as e:
75
+ except (ReflectionValueError, TypeError) as e:
76
76
  raise ReflectionValueError(f"Unable to inspect signature of {target}: {str(e)}")
77
77
 
78
78
  def __getDependencies(self, signature: inspect.Signature) -> ResolveArguments:
@@ -183,7 +183,6 @@ class ReflectDependencies(IReflectDependencies):
183
183
  full_class_path=f"{param.annotation.__module__}.{param.annotation.__name__}"
184
184
  )
185
185
  ordered_dependencies[param_name] = resolved_dependencies[param_name]
186
- continue
187
186
 
188
187
  # Return the categorized dependencies
189
188
  return ResolveArguments(
@@ -315,9 +315,8 @@ class ReflectionModule(IReflectionModule):
315
315
  """
316
316
  functions = {}
317
317
  for k, v in self.__module.__dict__.items():
318
- if callable(v):
319
- if hasattr(v, '__code__'):
320
- functions[k] = v
318
+ if callable(v) and hasattr(v, '__code__'):
319
+ functions[k] = v
321
320
 
322
321
  return functions
323
322
 
@@ -1,19 +1,19 @@
1
1
  class LoggerRuntimeError(RuntimeError):
2
+ """
3
+ Exception raised for runtime errors encountered in the logging service.
2
4
 
3
- def __init__(self, msg: str):
4
- """
5
- Parameters
6
- ----------
7
- msg : str
8
- Descriptive error message explaining the cause of the exception.
9
- """
10
- super().__init__(msg)
5
+ This exception is triggered when the logger faces unexpected conditions during
6
+ execution that hinder its normal operation, such as configuration problems,
7
+ file system errors, or other runtime issues related to logging.
11
8
 
12
- def __str__(self) -> str:
13
- """
14
- Returns
15
- -------
16
- str
17
- Formatted string describing the exception.
18
- """
19
- return str(self.args[0])
9
+ Inherits
10
+ --------
11
+ RuntimeError
12
+ The base class for runtime errors.
13
+
14
+ Returns
15
+ -------
16
+ None
17
+ This exception class does not return a value.
18
+ """
19
+ pass
@@ -21,7 +21,7 @@ class Imports(IImports):
21
21
  # List to hold information about imported modules
22
22
  self.imports: List[Dict[str, Any]] = []
23
23
 
24
- def collect(self) -> 'Imports':
24
+ def collect(self) -> 'Imports': # NOSONAR
25
25
  """
26
26
  Collect information about user-defined Python modules currently loaded.
27
27
 
@@ -60,7 +60,7 @@ class Imports(IImports):
60
60
  venv_path = os.path.abspath(venv_path)
61
61
 
62
62
  # Iterate over all loaded modules
63
- for name, module in list(sys.modules.items()):
63
+ for name, module in sys.modules.items():
64
64
  file: str = getattr(module, '__file__', None)
65
65
 
66
66
  # Filter out unwanted modules based on path, type, and name
@@ -31,7 +31,7 @@ class BaseEntity:
31
31
  """
32
32
  return asdict(self)
33
33
 
34
- def getFields(self):
34
+ def getFields(self): # NOSONAR
35
35
  """
36
36
  Get detailed information about each field in the dataclass instance.
37
37
 
@@ -21,4 +21,4 @@ class Log(Facade):
21
21
  """
22
22
 
23
23
  # Return the unique binding key for the logger service in the container
24
- return f"x-orionis.services.log.contracts.log_service.ILogger"
24
+ return "x-orionis.services.log.contracts.log_service.ILogger"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.666.0
3
+ Version: 0.668.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
@@ -207,7 +207,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
207
207
  orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
208
208
  orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
209
209
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
210
- orionis/metadata/framework.py,sha256=et8zGm7BdiVSikkAN9Q3JIun33k3V5FK7JLSwnhLvTM,4089
210
+ orionis/metadata/framework.py,sha256=2NK8a3iWQ6lvQxS-rr9G9sZji_uV5EsFTCSL0JOf9Bw,4089
211
211
  orionis/metadata/package.py,sha256=s1JeGJPwdVh4jO3IOfmpwMuJ_oX6Vf9NL7jgPEQNf5Y,16050
212
212
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
213
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -225,7 +225,7 @@ orionis/services/environment/contracts/env.py,sha256=ozdYs3TkOsowPUrXSPEvm6mjoxY
225
225
  orionis/services/environment/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
226
226
  orionis/services/environment/core/dot_env.py,sha256=y26uPIKyyIWBCupMSrevUrq9_Mo1W1a1PzlexyoC2Zw,12665
227
227
  orionis/services/environment/dynamic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
228
- orionis/services/environment/dynamic/caster.py,sha256=LQZtNcNvD0s9QBthUe5sz7jor3IMjRtsmwnRb5CH7t0,34460
228
+ orionis/services/environment/dynamic/caster.py,sha256=XqmyvnTn5B2C0Rys4mdsZ-3jPjYlPqjDev_M0o1Fnu4,34500
229
229
  orionis/services/environment/enums/__init__.py,sha256=lV7sRtjZk3pUvqp21A_GZFkKPYSY6UHZzlQarkQOBjA,90
230
230
  orionis/services/environment/enums/value_type.py,sha256=s-tTLgJLhI-ISmDNRpmEdj69DSmL3mDO1nrjRWAO7fU,1262
231
231
  orionis/services/environment/exceptions/__init__.py,sha256=7gTD23tiwO3iUKVlcMWlj5ni3nhl6doDqUSynmaoUDA,415
@@ -261,7 +261,7 @@ orionis/services/introspection/concretes/reflection.py,sha256=WINn-MAaMBLz36jUh2
261
261
  orionis/services/introspection/concretes/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
262
262
  orionis/services/introspection/concretes/contracts/reflection.py,sha256=LwEAgdN_WLCfS9b8pnFRVfN0PTRK4Br9qngu5km5aIk,24955
263
263
  orionis/services/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
264
- orionis/services/introspection/dependencies/reflection.py,sha256=3aQl541JkohRcoZFxQGiGPz3CnBMK8gmcRwO9XiLSY0,13906
264
+ orionis/services/introspection/dependencies/reflection.py,sha256=JE8UT-0lUW1BP47M1uBQ5SUYyqCrKZlYPgwAB3chGv4,13869
265
265
  orionis/services/introspection/dependencies/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
266
266
  orionis/services/introspection/dependencies/contracts/reflection.py,sha256=DhkAmsl8fxNr3L1kCSpVmTZx9YBejq2kYcfUrCWG8o0,5364
267
267
  orionis/services/introspection/dependencies/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -274,7 +274,7 @@ orionis/services/introspection/instances/reflection.py,sha256=ziyaJ7zjlvX0wkbpm7
274
274
  orionis/services/introspection/instances/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
275
275
  orionis/services/introspection/instances/contracts/reflection.py,sha256=OBZ7vI6KsII76oqIF63v1I-msh94_xGfhPZQvqAVLgY,20834
276
276
  orionis/services/introspection/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
277
- orionis/services/introspection/modules/reflection.py,sha256=I-8lMA_9ebBJo33MuZe4M0aymCKBojIj-IRuE9fO1Go,15549
277
+ orionis/services/introspection/modules/reflection.py,sha256=22HKXMkr6sCm1YgA1S7KPto55vhe-lZn1zURkMFqPlQ,15528
278
278
  orionis/services/introspection/modules/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
279
279
  orionis/services/introspection/modules/contracts/reflection.py,sha256=YLqKg5EhaddUBrytMHX1-uz9mNsRISK1iVyG_iUiVYA,9666
280
280
  orionis/services/introspection/objects/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -284,13 +284,13 @@ orionis/services/log/log_service.py,sha256=y1ysxZ7MuO2NuJXGnPVp1xXsJf6TVkOiMdd-Z
284
284
  orionis/services/log/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  orionis/services/log/contracts/log_service.py,sha256=YVWkK5z6-3jyJv6aT8fbp53nQBF8jlD-aHGKqFYPdAM,1692
286
286
  orionis/services/log/exceptions/__init__.py,sha256=79C0x3Q8l5ri7w_zT3PZXezMUIxK1a_TWwnxZRClQZQ,80
287
- orionis/services/log/exceptions/log.py,sha256=LnaK0w0WlgxtZ9Zjn9RYIgp6fbQZmXZ_1fy9dkuA2jQ,468
287
+ orionis/services/log/exceptions/log.py,sha256=-aZupMf5OxUf3_QCh_ADZ3V9HJ_qKTaVUbsrOuwjcuE,565
288
288
  orionis/services/log/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
289
289
  orionis/services/log/handlers/filename.py,sha256=722mnk075vvq02MtpKaDWzLHEUd3sQyhL0a6xd0vLeA,20122
290
290
  orionis/services/log/handlers/size_rotating.py,sha256=VWqTGR3qSYbhuUxGfRf_NNxXAds3tt3EEWSQaV9phEk,1450
291
291
  orionis/services/log/handlers/timed_rotating.py,sha256=2WdQhlLTUfCV48FqtL_igwPpst46XxoajRGHLWLHGuA,1460
292
292
  orionis/services/system/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
293
- orionis/services/system/imports.py,sha256=aSXG9879ur91d6OsqV2DUYWmmwbwFHX8CHb99cPfFcU,7057
293
+ orionis/services/system/imports.py,sha256=OEsRLzf1s2rAUqIOuMbCKD9d35ilXrFueYxk6NC5tMs,7061
294
294
  orionis/services/system/workers.py,sha256=EfGxU_w42xRnZ1yslsui3wVG8pfe__V3GYGEIyo8JxQ,3144
295
295
  orionis/services/system/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
296
296
  orionis/services/system/contracts/imports.py,sha256=wTlr0ck1vcrAoBU91_rgu8cN4dCRnWixsq-ovwXQOn0,2767
@@ -299,7 +299,7 @@ orionis/services/system/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
299
299
  orionis/services/system/runtime/imports.py,sha256=iIwIx8RjBHaiveCdj_WPiMMbWsKGbIs02qpAzL_L3Z0,3158
300
300
  orionis/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
301
301
  orionis/support/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
302
- orionis/support/entities/base.py,sha256=kVx9YWZjYS6C9MraarU7U12OeT5enBp5XqizrQm4RQs,4801
302
+ orionis/support/entities/base.py,sha256=seuNuESVI7HcB4V_yKiSnMNoBK9fVB3choaKOn1ePFQ,4811
303
303
  orionis/support/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
304
304
  orionis/support/facades/application.py,sha256=JmmZeN189hVMKHRKkt1YKQvT_A0AIn7tlbP0PoSS8Uc,930
305
305
  orionis/support/facades/application.pyi,sha256=_ozRru3GNcD5mLUjIuGe3HBm-U1JkozjKpjVdJBRD8U,2070
@@ -313,7 +313,7 @@ orionis/support/facades/executor.py,sha256=276MKqXsvrW947SvSzEcl8wleAtsjxhVq_r8F
313
313
  orionis/support/facades/executor.pyi,sha256=JS0h8ddYD62o79yXL5UzeZmPWOXNasyMgXKL8ZCOkBE,547
314
314
  orionis/support/facades/inspire.py,sha256=oGPMP_mNEmQRbPx7W-TwvW_xwbn4c04rHzu_ivgVKdw,964
315
315
  orionis/support/facades/inspire.pyi,sha256=LbVrw3-PkpkaLfsihDaBKvjYTk4CoPuuMNMMVcoQvx8,581
316
- orionis/support/facades/logger.py,sha256=oiikbyrv3qxgwWR2HdKiuF8bQrz_QP3y9gTwFEN__so,956
316
+ orionis/support/facades/logger.py,sha256=-9ng4dc_nvTf8SpBDGAK12ImnVYtbv4ypu5ZQAXT9M4,955
317
317
  orionis/support/facades/logger.pyi,sha256=0jxUlRixL5U_e0HWw0DN3MeCbDKd0e-2Oro-rB3csck,701
318
318
  orionis/support/facades/performance_counter.py,sha256=h5YaJvKXGDDJaGG5PyLAJKXFsFJr6gQ-4W-Q7PuHTV8,1059
319
319
  orionis/support/facades/performance_counter.pyi,sha256=6C8b1mXyjDLJ_Qoa2T6VQhhnpK2FIU7kh-CG3SjTj50,583
@@ -394,8 +394,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
394
394
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
395
395
  orionis/test/view/render.py,sha256=arysoswhkV2vUd2aVMZRPpmH317jaWbgjDpQ_AWQ5AE,5663
396
396
  orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
397
- orionis-0.666.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
398
- orionis-0.666.0.dist-info/METADATA,sha256=uQChvkJgPGoWwmvThwqg0T4_y8KlXIU7AwGn-vrm69M,4772
399
- orionis-0.666.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
400
- orionis-0.666.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
401
- orionis-0.666.0.dist-info/RECORD,,
397
+ orionis-0.668.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
398
+ orionis-0.668.0.dist-info/METADATA,sha256=nnfD1yuIBxebjInp1pf8je50dCHzJXaj_4BRmNxIxpg,4772
399
+ orionis-0.668.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
400
+ orionis-0.668.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
401
+ orionis-0.668.0.dist-info/RECORD,,