orionis 0.298.0__py3-none-any.whl → 0.300.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.298.0
3
+ Version: 0.300.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=4H5rxpA-HVckOuD2k5RCAOQ0Y0PbT1SFH_FFHF41i4I,4960
229
+ orionis/metadata/framework.py,sha256=R-JsoGLrxcrd1Lg3XxLUWlT6tmNZ4uyXPhYfASmQP3A,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
@@ -249,6 +249,8 @@ orionis/services/environment/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5J
249
249
  orionis/services/environment/exceptions/environment_value_error.py,sha256=Y3QTwzUrn0D5FqT7hI_9uCACVz473YhhoAFOx1-rcXE,627
250
250
  orionis/services/environment/exceptions/environment_value_exception.py,sha256=zlxRFJwi0Yj-xFHQUvZ8X1ZlxRDDVv7Xcw-w4qCocL4,646
251
251
  orionis/services/introspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
252
+ orionis/services/introspection/concretes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
253
+ orionis/services/introspection/concretes/reflection_concrete.py,sha256=5vCwokfKJerpUnFRz_IVDMj-5BdbbIy4OUkTJ7KxB4E,49050
252
254
  orionis/services/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
253
255
  orionis/services/introspection/dependencies/reflect_dependencies.py,sha256=HL2cX7_SSIWeKxzBDUMEdmfjetrZmMfPZvqM34DvJMg,7145
254
256
  orionis/services/introspection/dependencies/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -262,9 +264,9 @@ orionis/services/introspection/exceptions/reflection_attribute_error.py,sha256=7
262
264
  orionis/services/introspection/exceptions/reflection_type_error.py,sha256=6BizQOgt50qlLPDBvBJfUWgAwAr_8GAk1FhownPs-8A,747
263
265
  orionis/services/introspection/exceptions/reflection_value_error.py,sha256=X38649JMKSPbdpa1lmo69RhhTATH8ykTF-UAqe7IAaU,748
264
266
  orionis/services/introspection/instances/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
265
- orionis/services/introspection/instances/reflection_instance.py,sha256=FyhobfRgP-9CBW61Yl-GyASca-oLsMldDsvF3zGY90Y,40981
266
- orionis/services/introspection/instances/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
- orionis/services/introspection/instances/entities/class_property.py,sha256=QwXmCnyPpmORELuTU2VH85nO_1rKMQFvhPKUP6tMCSU,631
267
+ orionis/services/introspection/instances/reflection_instance.py,sha256=j8VA7zIfIZbz4orMxcBWU9qCxZi4eC5glu9tlUKjMXI,51807
268
+ orionis/services/introspection/instances/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
269
+ orionis/services/introspection/instances/contracts/reflection_instance.py,sha256=zc-uOHDixR4Wg2PwF4mX9lpl-AGMKtMvJUN7_Pixr2Q,20938
268
270
  orionis/services/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
269
271
  orionis/services/parsers/serializer.py,sha256=mxWlzqgkoO7EeIr3MZ5gdzQUuSfjqWDMau85PEqlBQY,531
270
272
  orionis/services/parsers/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -353,10 +355,10 @@ orionis/test/suites/contracts/test_suite.py,sha256=eluzYwkNBbKjxYStj_tHN_Fm3YDPp
353
355
  orionis/test/suites/contracts/test_unit.py,sha256=l1LQllODyvcSByXMl1lGrUkoLsXbBHZZLWZI4A-mlQg,5881
354
356
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
355
357
  orionis/test/view/render.py,sha256=jXZkbITBknbUwm_mD8bcTiwLDvsFkrO9qrf0ZgPwqxc,4903
356
- orionis-0.298.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
358
+ orionis-0.300.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
357
359
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
358
360
  tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
359
- tests/example/test_example.py,sha256=byd_lI6tVDgGPEIrr7PLZbBu0UoZOymmdmyA_4u-QUw,601
361
+ tests/example/test_example.py,sha256=vt4UsQ1sDWZU9zFjrO2zcfZNDFj8h9TgnCRGtdNN358,601
360
362
  tests/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
361
363
  tests/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
362
364
  tests/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -450,15 +452,15 @@ tests/support/inspection/test_reflection_concrete_with_abstract.py,sha256=Qzd87J
450
452
  tests/support/inspection/test_reflection_instance_with_abstract.py,sha256=L3nQy2l95yEIyvAHErqxGRVVF5x8YkyM82uGm0wUlxk,4064
451
453
  tests/support/inspection/fakes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
452
454
  tests/support/inspection/fakes/fake_reflect_abstract.py,sha256=woE15uLmoD3fLgPBMjNh5XkwvMDmW2VDbADYPIS_88o,6387
453
- tests/support/inspection/fakes/fake_reflect_instance.py,sha256=yIruuGGx5asgBPD6JSSwjdAOaMM5soyYZM1JyBjfcFk,3975
455
+ tests/support/inspection/fakes/fake_reflect_instance.py,sha256=g2Uo0aSAOnro0t4ipoFsEAE2WunpOwTN3WaNlsX5k0g,12397
454
456
  tests/support/inspection/fakes/fake_reflection_concrete.py,sha256=j6gzsxE3xq5oJ30H_Hm1RsUwEY3jOYBu4sclxtD1ayo,1047
455
457
  tests/support/inspection/fakes/fake_reflection_concrete_with_abstract.py,sha256=ibCjrtNM6BMf5Z5VMvat7E6zOAk5g9z--gj4ykKJWY8,2118
456
458
  tests/support/inspection/fakes/fake_reflection_instance_with_abstract.py,sha256=SfL8FuFmr650RlzXTrP4tGMfsPVZLhOxVnBXu_g1POg,1471
457
459
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
458
460
  tests/testing/test_testing_result.py,sha256=MrGK3ZimedL0b5Ydu69Dg8Iul017AzLTm7VPxpXlpfU,4315
459
461
  tests/testing/test_testing_unit.py,sha256=A6QkiOkP7GPC1Szh_GqsrV7GxjWjK8cIwFez6YfrzmM,7683
460
- orionis-0.298.0.dist-info/METADATA,sha256=uWwfTJ0inS9aR2MHSZLnoOEAvTtrmF1b89aVMt9vNyo,4772
461
- orionis-0.298.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
462
- orionis-0.298.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
463
- orionis-0.298.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
464
- orionis-0.298.0.dist-info/RECORD,,
462
+ orionis-0.300.0.dist-info/METADATA,sha256=RPubn8dwFyV0kTRUWgJOWGixxR86EorukI_6qlaa9BI,4772
463
+ orionis-0.300.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
464
+ orionis-0.300.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
465
+ orionis-0.300.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
466
+ orionis-0.300.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)
@@ -1,106 +1,381 @@
1
1
  import asyncio
2
2
 
3
3
  class BaseFakeClass:
4
+ """
5
+ A base class for creating fake or mock classes in tests.
6
+
7
+ This class serves as a simple parent class for test doubles used in inspection-related tests.
8
+ """
4
9
  pass
5
10
 
6
11
  class FakeClass(BaseFakeClass):
7
12
  """
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".
13
+ FakeClass is a test double class designed to simulate a variety of attribute and method visibilities for inspection and testing purposes.
14
+ This class provides:
15
+ - Public, protected, and private class-level and instance-level attributes.
16
+ - Public, protected, and private properties.
17
+ - Synchronous and asynchronous instance methods with varying visibilities.
18
+ - Synchronous and asynchronous class methods with varying visibilities.
19
+ - Synchronous and asynchronous static methods with varying visibilities.
20
+ public_attr (int): A public class and instance attribute set to 42.
21
+ dynamic_attr: A public attribute initialized to None, can be set dynamically.
22
+ _protected_attr (str): A protected class and instance attribute set to "protected".
23
+ __private_attr (str): A private class and instance attribute set to "private".
24
+ Properties:
25
+ computed_public_property (str): Returns "public property".
26
+ _computed_property_protected (str): Returns "protected property".
27
+ __computed_property_private (str): Returns "private property".
17
28
  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.
29
+ instanceSyncMethod(x: int, y: int) -> int:
30
+ instanceAsyncMethod(x: int, y: int) -> int:
31
+ _protectedsyncMethod(x: int, y: int) -> int:
32
+ Protected synchronous addition method.
33
+ _protectedAsyncMethod(x: int, y: int) -> int:
34
+ Protected asynchronous addition method.
35
+ __privateSyncMethod(x: int, y: int) -> int:
36
+ Private synchronous addition method.
37
+ __privateAsyncMethod(x: int, y: int) -> int:
38
+ Private asynchronous addition method.
39
+ Class Methods:
40
+ classSyncMethod(x: int, y: int) -> int:
41
+ classAsyncMethod(x: int, y: int) -> int:
42
+ _classMethodProtected(x: int, y: int) -> int:
43
+ Protected synchronous class addition method.
44
+ _classAsyncMethodProtected(x: int, y: int) -> int:
45
+ Protected asynchronous class addition method.
46
+ __classMethodPrivate(x: int, y: int) -> int:
47
+ Private synchronous class addition method.
48
+ __classAsyncMethodPrivate(x: int, y: int) -> int:
49
+ Private asynchronous class addition method.
50
+ Static Methods:
28
51
  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.
52
+ Synchronously converts the input text to uppercase.
53
+ staticAsyncMethod(text: str) -> str:
54
+ Asynchronously converts the input text to uppercase.
55
+ _staticMethodProtected(text: str) -> str:
56
+ Protected synchronous static method to uppercase text.
57
+ _staticAsyncMethodProtected(text: str) -> str:
58
+ Protected asynchronous static method to uppercase text.
59
+ __staticMethodPrivate(text: str) -> str:
60
+ Private synchronous static method to uppercase text.
61
+ __staticAsyncMethodPrivate(text: str) -> str:
62
+ Private asynchronous static method to uppercase text.
63
+ Note:
64
+ This class is intended for testing and inspection of attribute and method visibility, including Python's name mangling for private members.
42
65
  """
43
66
 
44
- class_attr: str = "class_value"
67
+ # Class-level attribute (Public)
68
+ public_attr: int = 42
69
+ dynamic_attr = None
70
+
71
+ # Class-level attribute (Protected)
72
+ _protected_attr: str = "protected"
73
+
74
+ # Class-level attribute (Private)
75
+ __private_attr: str = "private"
76
+ __dd__: str = "dunder_value"
77
+
78
+ @property
79
+ def computed_public_property(self) -> str:
80
+ """
81
+ Returns the string "public" as a computed property.
82
+
83
+ Returns:
84
+ str: The string "public".
85
+ """
86
+ return f"public property"
87
+
88
+ @property
89
+ def _computed_property_protected(self) -> str:
90
+ """
91
+ Returns a string indicating that this is a protected computed property.
92
+
93
+ Returns:
94
+ str: The string "protected".
95
+ """
96
+ """A computed property."""
97
+ return f"protected property"
98
+
99
+ @property
100
+ def __computed_property_private(self) -> str:
101
+ """
102
+ Returns the string "private".
103
+
104
+ This is a private computed property method, typically used for internal logic or testing purposes.
105
+
106
+ Returns:
107
+ str: The string "private".
108
+ """
109
+ return f"private property"
45
110
 
46
111
  def __init__(self) -> None:
112
+ """
113
+ Initializes the instance with various attributes for testing attribute visibility.
114
+
115
+ Attributes:
116
+ public_attr (int): A public attribute set to 42.
117
+ _protected_attr (str): A protected attribute set to "protected".
118
+ __private_attr (str): A private attribute set to "private".
119
+ dynamic_attr: An attribute initialized to None, can be set dynamically.
120
+ __dd__ (str): A dunder (double underscore) attribute set to "dunder_value".
121
+ """
122
+
123
+ # Initialize attributes (Publics)
47
124
  self.public_attr = 42
125
+ self.dynamic_attr = None
126
+
127
+ # Initialize attributes (Protected)
48
128
  self._protected_attr = "protected"
129
+
130
+ # Initialize attributes (Private)
49
131
  self.__private_attr = "private"
50
- self.dynamic_attr = None
51
132
  self.__dd__ = "dunder_value"
52
133
 
53
- def instanceMethod(self, x: int, y: int) -> int:
54
- """Adds two numbers."""
134
+ def instanceSyncMethod(self, x: int, y: int) -> int:
135
+ """
136
+ Synchronously adds two integers and returns the result.
137
+
138
+ Args:
139
+ x (int): The first integer to add.
140
+ y (int): The second integer to add.
141
+
142
+ Returns:
143
+ int: The sum of x and y.
144
+ """
55
145
  return x + y
56
146
 
57
- @property
58
- def computed_property(self) -> str:
59
- """A computed property."""
60
- return f"Value: {self.public_attr}"
147
+ async def instanceAsyncMethod(self, x: int, y: int) -> int:
148
+ """
149
+ Asynchronously adds two integers and returns the result.
150
+
151
+ Args:
152
+ x (int): The first integer to add.
153
+ y (int): The second integer to add.
154
+
155
+ Returns:
156
+ int: The sum of x and y.
157
+ """
158
+ await asyncio.sleep(0.1)
159
+ return x + y
160
+
161
+ def _protectedsyncMethod(self, x: int, y: int) -> int:
162
+ """
163
+ Synchronously adds two integers and returns the result (protected method).
164
+
165
+ Args:
166
+ x (int): The first integer to add.
167
+ y (int): The second integer to add.
168
+
169
+ Returns:
170
+ int: The sum of x and y.
171
+ """
172
+ return x + y
173
+
174
+ async def _protectedAsyncMethod(self, x: int, y: int) -> int:
175
+ """
176
+ Asynchronously adds two integers and returns the result (protected method).
177
+
178
+ Args:
179
+ x (int): The first integer to add.
180
+ y (int): The second integer to add.
181
+
182
+ Returns:
183
+ int: The sum of x and y.
184
+ """
185
+ await asyncio.sleep(0.1)
186
+ return x + y
187
+
188
+ def __privateSyncMethod(self, x: int, y: int) -> int:
189
+ """
190
+ Synchronously adds two integers and returns the result (private method).
191
+
192
+ Args:
193
+ x (int): The first integer to add.
194
+ y (int): The second integer to add.
195
+
196
+ Returns:
197
+ int: The sum of x and y.
198
+ """
199
+ return x + y
200
+
201
+ async def __privateAsyncMethod(self, x: int, y: int) -> int:
202
+ """
203
+ Asynchronously adds two integers and returns the result (private method).
204
+
205
+ Args:
206
+ x (int): The first integer to add.
207
+ y (int): The second integer to add.
208
+
209
+ Returns:
210
+ int: The sum of x and y.
211
+ """
212
+ await asyncio.sleep(0.1)
213
+ return x + y
61
214
 
62
215
  @classmethod
63
- def classMethod(cls) -> str:
64
- """A class method."""
65
- return f"Class attr: {cls.class_attr}"
216
+ def classSyncMethod(cls, x: int, y: int) -> int:
217
+ """
218
+ Synchronously adds two integers and returns the result (class method).
219
+
220
+ Args:
221
+ x (int): The first integer to add.
222
+ y (int): The second integer to add.
223
+
224
+ Returns:
225
+ int: The sum of x and y.
226
+ """
227
+ return x + y
228
+
229
+ @classmethod
230
+ async def classAsyncMethod(cls, x: int, y: int) -> int:
231
+ """
232
+ Asynchronously adds two integers and returns the result (class method).
233
+
234
+ Args:
235
+ x (int): The first integer to add.
236
+ y (int): The second integer to add.
237
+
238
+ Returns:
239
+ int: The sum of x and y.
240
+ """
241
+ await asyncio.sleep(0.1)
242
+ return x + y
243
+
244
+ @classmethod
245
+ def _classMethodProtected(cls, x: int, y: int) -> int:
246
+ """
247
+ Synchronously adds two integers and returns the result (protected class method).
248
+
249
+ Args:
250
+ x (int): The first integer to add.
251
+ y (int): The second integer to add.
252
+
253
+ Returns:
254
+ int: The sum of x and y.
255
+ """
256
+ return x + y
257
+
258
+ @classmethod
259
+ async def _classAsyncMethodProtected(cls, x: int, y: int) -> int:
260
+ """
261
+ Asynchronously adds two integers and returns the result (protected class method).
262
+
263
+ Args:
264
+ x (int): The first integer to add.
265
+ y (int): The second integer to add.
266
+
267
+ Returns:
268
+ int: The sum of x and y.
269
+ """
270
+ await asyncio.sleep(0.1)
271
+ return x + y
66
272
 
67
273
  @classmethod
68
- def _classMethodProte(cls) -> str:
69
- """A class method."""
70
- return f"Class attr: {cls.class_attr}"
274
+ def __classMethodPrivate(cls, x: int, y: int) -> int:
275
+ """
276
+ Synchronously adds two integers and returns the result (private class method).
277
+
278
+ Args:
279
+ x (int): The first integer to add.
280
+ y (int): The second integer to add.
281
+
282
+ Returns:
283
+ int: The sum of x and y.
284
+ """
285
+ return x + y
71
286
 
72
287
  @classmethod
73
- def __classMethodPP(cls) -> str:
74
- """A class method."""
75
- return f"Class attr: {cls.class_attr}"
288
+ async def __classAsyncMethodPrivate(cls, x: int, y: int) -> int:
289
+ """
290
+ Asynchronously adds two integers and returns the result (private class method).
291
+
292
+ Args:
293
+ x (int): The first integer to add.
294
+ y (int): The second integer to add.
295
+
296
+ Returns:
297
+ int: The sum of x and y.
298
+ """
299
+ await asyncio.sleep(0.1)
300
+ return x + y
76
301
 
77
302
  @staticmethod
78
303
  def staticMethod(text: str) -> str:
79
- """A static method."""
304
+ """
305
+ Synchronously converts the input text to uppercase (static method).
306
+
307
+ Args:
308
+ text (str): The input string.
309
+
310
+ Returns:
311
+ str: The uppercase version of the input string.
312
+ """
80
313
  return text.upper()
81
314
 
82
315
  @staticmethod
83
- def __staticMethodPP(text: str) -> str:
84
- """A static method. Ejemplo de método privado."""
316
+ async def staticAsyncMethod(text: str) -> str:
317
+ """
318
+ Asynchronously converts the input text to uppercase (static method).
319
+
320
+ Args:
321
+ text (str): The input string.
322
+
323
+ Returns:
324
+ str: The uppercase version of the input string.
325
+ """
326
+ await asyncio.sleep(0.1)
85
327
  return text.upper()
86
328
 
87
329
  @staticmethod
88
- async def staticAsyncMethod(text: str) -> str:
89
- """An asynchronous static method."""
330
+ def _staticMethodProtected(text: str) -> str:
331
+ """
332
+ Synchronously converts the input text to uppercase (protected static method).
333
+
334
+ Args:
335
+ text (str): The input string.
336
+
337
+ Returns:
338
+ str: The uppercase version of the input string.
339
+ """
340
+ return text.upper()
341
+
342
+ @staticmethod
343
+ async def _staticAsyncMethodProtected(text: str) -> str:
344
+ """
345
+ Asynchronously converts the input text to uppercase (protected static method).
346
+
347
+ Args:
348
+ text (str): The input string.
349
+
350
+ Returns:
351
+ str: The uppercase version of the input string.
352
+ """
90
353
  await asyncio.sleep(0.1)
91
354
  return text.upper()
92
355
 
93
- def __privateMethod(self) -> str:
94
- """A 'private' method."""
95
- return "This is private"
356
+ @staticmethod
357
+ def __staticMethodPrivate(text: str) -> str:
358
+ """
359
+ Synchronously converts the input text to uppercase (private static method).
360
+
361
+ Args:
362
+ text (str): The input string.
363
+
364
+ Returns:
365
+ str: The uppercase version of the input string.
366
+ """
367
+ return text.upper()
368
+
369
+ @staticmethod
370
+ async def __staticAsyncMethodPrivate(text: str) -> str:
371
+ """
372
+ Asynchronously converts the input text to uppercase (private static method).
96
373
 
97
- def _protectedMethod(self) -> str:
98
- """A 'protected' method."""
99
- return "This is protected"
374
+ Args:
375
+ text (str): The input string.
100
376
 
101
- async def asyncMethod(self) -> str:
102
- """An async method."""
103
- return "This is async"
104
-
105
- async def __str__(self):
106
- return super().__str__()
377
+ Returns:
378
+ str: The uppercase version of the input string.
379
+ """
380
+ await asyncio.sleep(0.1)
381
+ return text.upper()
@@ -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