orionis 0.297.0__py3-none-any.whl → 0.299.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.297.0
3
+ Version: 0.299.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
@@ -226,7 +226,7 @@ orionis/foundation/config/testing/entities/testing.py,sha256=AuhPU9O15Aeqs8jQVHW
226
226
  orionis/foundation/config/testing/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  orionis/foundation/config/testing/enums/test_mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
228
228
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
229
- orionis/metadata/framework.py,sha256=xF9FFqa1vxZSYY1J41A8ricEgel3i2NGXzE5CAHoG7c,4960
229
+ orionis/metadata/framework.py,sha256=V0Njw6A_n77pfzcsuWrz9OHH5PO8Y2DrOHT7w8Yq2lw,4960
230
230
  orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
231
231
  orionis/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
232
232
  orionis/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -262,11 +262,9 @@ orionis/services/introspection/exceptions/reflection_attribute_error.py,sha256=7
262
262
  orionis/services/introspection/exceptions/reflection_type_error.py,sha256=6BizQOgt50qlLPDBvBJfUWgAwAr_8GAk1FhownPs-8A,747
263
263
  orionis/services/introspection/exceptions/reflection_value_error.py,sha256=X38649JMKSPbdpa1lmo69RhhTATH8ykTF-UAqe7IAaU,748
264
264
  orionis/services/introspection/instances/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
265
- orionis/services/introspection/instances/reflection_instance.py,sha256=Kvdlkm3BM_JX-g0LbQff26NQrkcv8vNeS1Wc9B-c92o,37755
266
- orionis/services/introspection/instances/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
- orionis/services/introspection/instances/entities/class_attributes.py,sha256=zY8VDZk3Fa6kVj4VC5zGDhwA4iFe0OzB5nxGbWFgTLA,577
268
- orionis/services/introspection/instances/entities/class_method.py,sha256=yvFSDR04Ga-9thoPrNM0lgPu7nfUSdDuw9aQtgnQN90,1201
269
- orionis/services/introspection/instances/entities/class_property.py,sha256=QwXmCnyPpmORELuTU2VH85nO_1rKMQFvhPKUP6tMCSU,631
265
+ orionis/services/introspection/instances/reflection_instance.py,sha256=EXs9CNH8n09LsEc3kB0jhim4n6qFSE5z_6pmoJdMAi0,50832
266
+ orionis/services/introspection/instances/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
+ orionis/services/introspection/instances/contracts/reflection_instance.py,sha256=zc-uOHDixR4Wg2PwF4mX9lpl-AGMKtMvJUN7_Pixr2Q,20938
270
268
  orionis/services/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
271
269
  orionis/services/parsers/serializer.py,sha256=mxWlzqgkoO7EeIr3MZ5gdzQUuSfjqWDMau85PEqlBQY,531
272
270
  orionis/services/parsers/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -355,10 +353,10 @@ orionis/test/suites/contracts/test_suite.py,sha256=eluzYwkNBbKjxYStj_tHN_Fm3YDPp
355
353
  orionis/test/suites/contracts/test_unit.py,sha256=l1LQllODyvcSByXMl1lGrUkoLsXbBHZZLWZI4A-mlQg,5881
356
354
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
355
  orionis/test/view/render.py,sha256=jXZkbITBknbUwm_mD8bcTiwLDvsFkrO9qrf0ZgPwqxc,4903
358
- orionis-0.297.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
356
+ orionis-0.299.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
359
357
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
360
358
  tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
361
- tests/example/test_example.py,sha256=byd_lI6tVDgGPEIrr7PLZbBu0UoZOymmdmyA_4u-QUw,601
359
+ tests/example/test_example.py,sha256=vt4UsQ1sDWZU9zFjrO2zcfZNDFj8h9TgnCRGtdNN358,601
362
360
  tests/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
363
361
  tests/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
364
362
  tests/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -452,15 +450,15 @@ tests/support/inspection/test_reflection_concrete_with_abstract.py,sha256=Qzd87J
452
450
  tests/support/inspection/test_reflection_instance_with_abstract.py,sha256=L3nQy2l95yEIyvAHErqxGRVVF5x8YkyM82uGm0wUlxk,4064
453
451
  tests/support/inspection/fakes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
454
452
  tests/support/inspection/fakes/fake_reflect_abstract.py,sha256=woE15uLmoD3fLgPBMjNh5XkwvMDmW2VDbADYPIS_88o,6387
455
- tests/support/inspection/fakes/fake_reflect_instance.py,sha256=nF_2jnadQiHTDoIOjeNxQqi7XoArw_rhr5UyPPfbeEY,1921
453
+ tests/support/inspection/fakes/fake_reflect_instance.py,sha256=E2omio0BHq6uzPHPj90mLkWLqeDXWubV0ZBmbv-9LYQ,5069
456
454
  tests/support/inspection/fakes/fake_reflection_concrete.py,sha256=j6gzsxE3xq5oJ30H_Hm1RsUwEY3jOYBu4sclxtD1ayo,1047
457
455
  tests/support/inspection/fakes/fake_reflection_concrete_with_abstract.py,sha256=ibCjrtNM6BMf5Z5VMvat7E6zOAk5g9z--gj4ykKJWY8,2118
458
456
  tests/support/inspection/fakes/fake_reflection_instance_with_abstract.py,sha256=SfL8FuFmr650RlzXTrP4tGMfsPVZLhOxVnBXu_g1POg,1471
459
457
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
460
458
  tests/testing/test_testing_result.py,sha256=MrGK3ZimedL0b5Ydu69Dg8Iul017AzLTm7VPxpXlpfU,4315
461
459
  tests/testing/test_testing_unit.py,sha256=A6QkiOkP7GPC1Szh_GqsrV7GxjWjK8cIwFez6YfrzmM,7683
462
- orionis-0.297.0.dist-info/METADATA,sha256=b_Y_DA0m75u38En-XLufIfANokJdY0gzy45X4YwHcCM,4772
463
- orionis-0.297.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
464
- orionis-0.297.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
465
- orionis-0.297.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
466
- orionis-0.297.0.dist-info/RECORD,,
460
+ orionis-0.299.0.dist-info/METADATA,sha256=PjQHJoRlvFmjKkrTsGZK8VNV-SJRbO12VsBeS5QRKVU,4772
461
+ orionis-0.299.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
462
+ orionis-0.299.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
463
+ orionis-0.299.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
464
+ orionis-0.299.0.dist-info/RECORD,,
@@ -20,4 +20,4 @@ class TestExample(TestCase):
20
20
  self.assertEqual(1, 1)
21
21
 
22
22
  # Check if 2 equals 2
23
- self.assertEqual(2, 2)
23
+ self.assertEqual(2, 3)
@@ -4,7 +4,42 @@ class BaseFakeClass:
4
4
  pass
5
5
 
6
6
  class FakeClass(BaseFakeClass):
7
- """This is a test class for ReflexionInstance."""
7
+ """
8
+ FakeClass is a test double for inspection and reflection scenarios.
9
+ Attributes:
10
+ class_attr (str): A class-level attribute with a default value "class_value".
11
+ Instance Attributes:
12
+ public_attr (int): A public instance attribute initialized to 42.
13
+ _protected_attr (str): A protected instance attribute initialized to "protected".
14
+ __private_attr (str): A private instance attribute initialized to "private".
15
+ dynamic_attr: An instance attribute initialized to None.
16
+ __dd__ (str): A dunder-named attribute initialized to "dunder_value".
17
+ Methods:
18
+ instanceMethod(x: int, y: int) -> int:
19
+ Adds two numbers and returns the result.
20
+ computed_property -> str:
21
+ A computed property that returns a string based on public_attr.
22
+ classMethod() -> str:
23
+ Class method returning a string representation of the class attribute.
24
+ _classMethodProte() -> str:
25
+ Protected class method returning a string representation of the class attribute.
26
+ __classMethodPP() -> str:
27
+ Private class method returning a string representation of the class attribute.
28
+ staticMethod(text: str) -> str:
29
+ Static method that returns the uppercase version of the input text.
30
+ __staticMethodPP(text: str) -> str:
31
+ Private static method that returns the uppercase version of the input text.
32
+ staticAsyncMethod(text: str) -> Awaitable[str]:
33
+ Asynchronous static method that returns the uppercase version of the input text after a delay.
34
+ __privateMethod() -> str:
35
+ Private instance method returning a string indicating it is private.
36
+ _protectedMethod() -> str:
37
+ Protected instance method returning a string indicating it is protected.
38
+ asyncMethod() -> Awaitable[str]:
39
+ Asynchronous instance method returning a string indicating it is async.
40
+ __str__() -> Awaitable[str]:
41
+ Asynchronous string representation of the instance.
42
+ """
8
43
 
9
44
  class_attr: str = "class_value"
10
45
 
@@ -22,30 +57,55 @@ class FakeClass(BaseFakeClass):
22
57
  @property
23
58
  def computed_property(self) -> str:
24
59
  """A computed property."""
25
- return f"Value: {self.public_attr}"
60
+ return f"public"
61
+
62
+ @property
63
+ def _computed_property_protected(self) -> str:
64
+ """A computed property."""
65
+ return f"protected"
66
+
67
+ @property
68
+ def __computed_property_private(self) -> str:
69
+ """A computed property."""
70
+ return f"private"
26
71
 
27
72
  @classmethod
28
73
  def classMethod(cls) -> str:
29
74
  """A class method."""
30
75
  return f"Class attr: {cls.class_attr}"
31
76
 
77
+ @classmethod
78
+ async def classMethodAsync(cls) -> str:
79
+ """A class method."""
80
+ return f"Class attr: {cls.class_attr}"
81
+
32
82
  @classmethod
33
83
  def _classMethodProte(cls) -> str:
34
84
  """A class method."""
35
85
  return f"Class attr: {cls.class_attr}"
36
86
 
87
+ @classmethod
88
+ async def _classMethodProteAsync(cls) -> str:
89
+ """A class method."""
90
+ return f"Class attr: {cls.class_attr}"
91
+
37
92
  @classmethod
38
93
  def __classMethodPP(cls) -> str:
39
94
  """A class method."""
40
95
  return f"Class attr: {cls.class_attr}"
41
96
 
97
+ @classmethod
98
+ async def __classMethodPPAsync(cls) -> str:
99
+ """A class method."""
100
+ return f"Class attr: {cls.class_attr}"
101
+
42
102
  @staticmethod
43
103
  def staticMethod(text: str) -> str:
44
104
  """A static method."""
45
105
  return text.upper()
46
106
 
47
107
  @staticmethod
48
- def __staticMethodPP(text: str) -> str:
108
+ def __staticMethodSYNC(text: str) -> str:
49
109
  """A static method. Ejemplo de método privado."""
50
110
  return text.upper()
51
111
 
@@ -55,6 +115,21 @@ class FakeClass(BaseFakeClass):
55
115
  await asyncio.sleep(0.1)
56
116
  return text.upper()
57
117
 
118
+ @staticmethod
119
+ def _staticMethodPro(text: str) -> str:
120
+ """A static method."""
121
+ return text.upper()
122
+
123
+ @staticmethod
124
+ async def _staticMethodProAsync(text: str) -> str:
125
+ """A static method."""
126
+ return text.upper()
127
+
128
+ @staticmethod
129
+ async def __staticMethodPrivateAsync(text: str) -> str:
130
+ """A static method."""
131
+ return text.upper()
132
+
58
133
  def __privateMethod(self) -> str:
59
134
  """A 'private' method."""
60
135
  return "This is private"
@@ -66,6 +141,6 @@ class FakeClass(BaseFakeClass):
66
141
  async def asyncMethod(self) -> str:
67
142
  """An async method."""
68
143
  return "This is async"
69
-
144
+
70
145
  async def __str__(self):
71
146
  return super().__str__()
@@ -1,20 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import Any, Dict
3
-
4
- @dataclass(frozen=True, kw_only=True)
5
- class ClassAttributes:
6
- """
7
- Represents the attributes of a class instance.
8
-
9
- Parameters
10
- ----------
11
- public : dict of str to Any
12
- Public attributes of the class instance.
13
- private : dict of str to Any
14
- Private attributes of the class instance.
15
- protected : dict of str to Any
16
- Protected attributes of the class instance.
17
- """
18
- public: Dict[str, Any]
19
- private: Dict[str, Any]
20
- protected: Dict[str, Any]
@@ -1,41 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import List
3
-
4
- @dataclass(frozen=False, kw_only=True)
5
- class ClassMethod:
6
- """
7
- Represents the methods of a class instance.
8
-
9
- Attributes
10
- ----------
11
- public : List[str]
12
- List of public method names.
13
- private : List[str]
14
- List of private method names.
15
- protected : List[str]
16
- List of protected method names.
17
- static : List[str]
18
- List of static method names.
19
- asynchronous : List[str]
20
- List of asynchronous method names.
21
- synchronous : List[str]
22
- List of synchronous method names.
23
- class_methods : List[str]
24
- List of class method names.
25
- asynchronous_static : List[str]
26
- List of asynchronous static method names.
27
- synchronous_static : List[str]
28
- List of synchronous static method names.
29
- magic : List[str]
30
- List of magic method names.
31
- """
32
- public: List[str]
33
- private: List[str]
34
- protected: List[str]
35
- static: List[str]
36
- asynchronous: List[str]
37
- synchronous: List[str]
38
- class_methods: List[str]
39
- asynchronous_static: List[str]
40
- synchronous_static: List[str]
41
- magic: List[str]
@@ -1,24 +0,0 @@
1
- from dataclasses import dataclass
2
- import inspect
3
- from typing import Any
4
-
5
- @dataclass(frozen=True, kw_only=True)
6
- class ClassProperty:
7
- """
8
- Represents a property of a class with its metadata.
9
-
10
- Parameters
11
- ----------
12
- name : str
13
- The name of the property.
14
- value : Any
15
- The value assigned to the property.
16
- signature : inspect.Signature
17
- The signature of the property, typically used for callable properties.
18
- doc : str
19
- The documentation string associated with the property.
20
- """
21
- name: str
22
- value: Any
23
- signature: inspect.Signature
24
- doc: str