orionis 0.525.0__py3-none-any.whl → 0.526.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.525.0"
8
+ VERSION = "0.526.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -12,19 +12,34 @@ class DataclassValues:
12
12
  Parameters
13
13
  ----------
14
14
  dataclass_type : type
15
- The dataclass type from which to extract attributes.
15
+ The dataclass type from which to extract attributes. This must be a valid
16
+ Python class type.
16
17
 
17
18
  Returns
18
19
  -------
19
20
  dict
20
- A dictionary containing attribute names as keys and their corresponding
21
- values as values. Special attributes (those starting with '__') are excluded.
21
+ A dictionary where:
22
+ - Keys are the names of the attributes defined in the dataclass type.
23
+ - Values are the corresponding attribute values.
24
+ Special attributes (those starting with '__') are excluded.
25
+
26
+ Raises
27
+ ------
28
+ TypeError
29
+ If the provided argument is not a valid Python class type.
22
30
  """
23
31
 
24
- # Retrieve all attributes from the dataclass type's __dict__ attribute
25
- # Exclude special attributes (names starting with '__')
26
- values = {k: v for k, v in dataclass_type.__dict__.items() if not k.startswith("__")}
27
- return values
32
+ # Ensure the input is a valid class type
33
+ if isinstance(dataclass_type, type):
34
+
35
+ # Extract attributes and their values, excluding special attributes
36
+ values = {k: v for k, v in dataclass_type.__dict__.items() if not k.startswith("__")}
37
+
38
+ # Return the extracted attributes and their values
39
+ return values
40
+
41
+ # Raise an error if the input is not a valid class type
42
+ raise TypeError("The provided argument is not a valid dataclass type.")
28
43
 
29
44
  # Instantiate the DataclassValues callable
30
45
  attributes = DataclassValues()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.525.0
3
+ Version: 0.526.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
@@ -241,7 +241,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
241
241
  orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
242
242
  orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
243
243
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
244
- orionis/metadata/framework.py,sha256=XJBUUT6tXj9FHgxcSUw6Mi669-51GbYCd6WlrndcKzM,4109
244
+ orionis/metadata/framework.py,sha256=nAs02-ZnGgfww2nj-dtN4ytz-CFlHYc-4RbWT9go7TM,4109
245
245
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
246
246
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
247
247
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -295,7 +295,7 @@ orionis/services/introspection/concretes/reflection.py,sha256=5DkNr6gUYdccSo7htz
295
295
  orionis/services/introspection/concretes/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
296
296
  orionis/services/introspection/concretes/contracts/reflection.py,sha256=LwEAgdN_WLCfS9b8pnFRVfN0PTRK4Br9qngu5km5aIk,24955
297
297
  orionis/services/introspection/dataclass/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
298
- orionis/services/introspection/dataclass/attributes.py,sha256=Z847Gya_0hdiK7eNCI8-tE1o2KtkxSKVcGxXYj94r_A,1186
298
+ orionis/services/introspection/dataclass/attributes.py,sha256=VGBUxH40PxUE8J4TBBYdSqwTO0xwYYmIS6BITgff-cE,1695
299
299
  orionis/services/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
300
300
  orionis/services/introspection/dependencies/reflection.py,sha256=VEe3cY6LTpOW3dm0IFECTHh7F_9_X-siTAeQc2XRQeM,13451
301
301
  orionis/services/introspection/dependencies/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -419,7 +419,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
419
419
  orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
420
420
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
421
421
  orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
422
- orionis-0.525.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
422
+ orionis-0.526.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
423
423
  tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
424
424
  tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
425
425
  tests/container/context/test_manager.py,sha256=wOwXpl9rHNfTTexa9GBKYMwK0_-KSQPbI-AEyGNkmAE,1356
@@ -565,8 +565,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
565
565
  tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
566
566
  tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
567
567
  tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
568
- orionis-0.525.0.dist-info/METADATA,sha256=L-2v3JfJPtQCrJ5ApJHqIMXk5yEI3Qlrn_zMXjr9dLM,4801
569
- orionis-0.525.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
570
- orionis-0.525.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
571
- orionis-0.525.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
572
- orionis-0.525.0.dist-info/RECORD,,
568
+ orionis-0.526.0.dist-info/METADATA,sha256=snrJcNqwOYa-G0BN8zVr7Hki_sd8r3v8iG3ztDApQtk,4801
569
+ orionis-0.526.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
570
+ orionis-0.526.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
571
+ orionis-0.526.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
572
+ orionis-0.526.0.dist-info/RECORD,,