orionis 0.298.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.
- orionis/metadata/framework.py +1 -1
- orionis/services/introspection/instances/contracts/reflection_instance.py +869 -0
- orionis/services/introspection/instances/reflection_instance.py +385 -344
- {orionis-0.298.0.dist-info → orionis-0.299.0.dist-info}/METADATA +1 -1
- {orionis-0.298.0.dist-info → orionis-0.299.0.dist-info}/RECORD +12 -12
- tests/example/test_example.py +1 -1
- tests/support/inspection/fakes/fake_reflect_instance.py +43 -3
- orionis/services/introspection/instances/entities/class_property.py +0 -24
- /orionis/services/introspection/instances/{entities → contracts}/__init__.py +0 -0
- {orionis-0.298.0.dist-info → orionis-0.299.0.dist-info}/WHEEL +0 -0
- {orionis-0.298.0.dist-info → orionis-0.299.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.298.0.dist-info → orionis-0.299.0.dist-info}/top_level.txt +0 -0
- {orionis-0.298.0.dist-info → orionis-0.299.0.dist-info}/zip-safe +0 -0
@@ -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=
|
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,9 +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=
|
266
|
-
orionis/services/introspection/instances/
|
267
|
-
orionis/services/introspection/instances/
|
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
|
268
268
|
orionis/services/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
269
269
|
orionis/services/parsers/serializer.py,sha256=mxWlzqgkoO7EeIr3MZ5gdzQUuSfjqWDMau85PEqlBQY,531
|
270
270
|
orionis/services/parsers/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -353,10 +353,10 @@ orionis/test/suites/contracts/test_suite.py,sha256=eluzYwkNBbKjxYStj_tHN_Fm3YDPp
|
|
353
353
|
orionis/test/suites/contracts/test_unit.py,sha256=l1LQllODyvcSByXMl1lGrUkoLsXbBHZZLWZI4A-mlQg,5881
|
354
354
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
355
355
|
orionis/test/view/render.py,sha256=jXZkbITBknbUwm_mD8bcTiwLDvsFkrO9qrf0ZgPwqxc,4903
|
356
|
-
orionis-0.
|
356
|
+
orionis-0.299.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
357
357
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
358
358
|
tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
359
|
-
tests/example/test_example.py,sha256=
|
359
|
+
tests/example/test_example.py,sha256=vt4UsQ1sDWZU9zFjrO2zcfZNDFj8h9TgnCRGtdNN358,601
|
360
360
|
tests/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
361
361
|
tests/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
362
362
|
tests/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -450,15 +450,15 @@ tests/support/inspection/test_reflection_concrete_with_abstract.py,sha256=Qzd87J
|
|
450
450
|
tests/support/inspection/test_reflection_instance_with_abstract.py,sha256=L3nQy2l95yEIyvAHErqxGRVVF5x8YkyM82uGm0wUlxk,4064
|
451
451
|
tests/support/inspection/fakes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
452
452
|
tests/support/inspection/fakes/fake_reflect_abstract.py,sha256=woE15uLmoD3fLgPBMjNh5XkwvMDmW2VDbADYPIS_88o,6387
|
453
|
-
tests/support/inspection/fakes/fake_reflect_instance.py,sha256=
|
453
|
+
tests/support/inspection/fakes/fake_reflect_instance.py,sha256=E2omio0BHq6uzPHPj90mLkWLqeDXWubV0ZBmbv-9LYQ,5069
|
454
454
|
tests/support/inspection/fakes/fake_reflection_concrete.py,sha256=j6gzsxE3xq5oJ30H_Hm1RsUwEY3jOYBu4sclxtD1ayo,1047
|
455
455
|
tests/support/inspection/fakes/fake_reflection_concrete_with_abstract.py,sha256=ibCjrtNM6BMf5Z5VMvat7E6zOAk5g9z--gj4ykKJWY8,2118
|
456
456
|
tests/support/inspection/fakes/fake_reflection_instance_with_abstract.py,sha256=SfL8FuFmr650RlzXTrP4tGMfsPVZLhOxVnBXu_g1POg,1471
|
457
457
|
tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
458
458
|
tests/testing/test_testing_result.py,sha256=MrGK3ZimedL0b5Ydu69Dg8Iul017AzLTm7VPxpXlpfU,4315
|
459
459
|
tests/testing/test_testing_unit.py,sha256=A6QkiOkP7GPC1Szh_GqsrV7GxjWjK8cIwFez6YfrzmM,7683
|
460
|
-
orionis-0.
|
461
|
-
orionis-0.
|
462
|
-
orionis-0.
|
463
|
-
orionis-0.
|
464
|
-
orionis-0.
|
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,,
|
tests/example/test_example.py
CHANGED
@@ -57,30 +57,55 @@ class FakeClass(BaseFakeClass):
|
|
57
57
|
@property
|
58
58
|
def computed_property(self) -> str:
|
59
59
|
"""A computed property."""
|
60
|
-
return f"
|
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"
|
61
71
|
|
62
72
|
@classmethod
|
63
73
|
def classMethod(cls) -> str:
|
64
74
|
"""A class method."""
|
65
75
|
return f"Class attr: {cls.class_attr}"
|
66
76
|
|
77
|
+
@classmethod
|
78
|
+
async def classMethodAsync(cls) -> str:
|
79
|
+
"""A class method."""
|
80
|
+
return f"Class attr: {cls.class_attr}"
|
81
|
+
|
67
82
|
@classmethod
|
68
83
|
def _classMethodProte(cls) -> str:
|
69
84
|
"""A class method."""
|
70
85
|
return f"Class attr: {cls.class_attr}"
|
71
86
|
|
87
|
+
@classmethod
|
88
|
+
async def _classMethodProteAsync(cls) -> str:
|
89
|
+
"""A class method."""
|
90
|
+
return f"Class attr: {cls.class_attr}"
|
91
|
+
|
72
92
|
@classmethod
|
73
93
|
def __classMethodPP(cls) -> str:
|
74
94
|
"""A class method."""
|
75
95
|
return f"Class attr: {cls.class_attr}"
|
76
96
|
|
97
|
+
@classmethod
|
98
|
+
async def __classMethodPPAsync(cls) -> str:
|
99
|
+
"""A class method."""
|
100
|
+
return f"Class attr: {cls.class_attr}"
|
101
|
+
|
77
102
|
@staticmethod
|
78
103
|
def staticMethod(text: str) -> str:
|
79
104
|
"""A static method."""
|
80
105
|
return text.upper()
|
81
106
|
|
82
107
|
@staticmethod
|
83
|
-
def
|
108
|
+
def __staticMethodSYNC(text: str) -> str:
|
84
109
|
"""A static method. Ejemplo de método privado."""
|
85
110
|
return text.upper()
|
86
111
|
|
@@ -90,6 +115,21 @@ class FakeClass(BaseFakeClass):
|
|
90
115
|
await asyncio.sleep(0.1)
|
91
116
|
return text.upper()
|
92
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
|
+
|
93
133
|
def __privateMethod(self) -> str:
|
94
134
|
"""A 'private' method."""
|
95
135
|
return "This is private"
|
@@ -101,6 +141,6 @@ class FakeClass(BaseFakeClass):
|
|
101
141
|
async def asyncMethod(self) -> str:
|
102
142
|
"""An async method."""
|
103
143
|
return "This is async"
|
104
|
-
|
144
|
+
|
105
145
|
async def __str__(self):
|
106
146
|
return super().__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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|