orionis 0.525.0__py3-none-any.whl → 0.527.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/console/tasks/schedule.py +1 -1
- orionis/metadata/framework.py +1 -1
- orionis/services/introspection/dataclass/attributes.py +22 -7
- {orionis-0.525.0.dist-info → orionis-0.527.0.dist-info}/METADATA +1 -1
- {orionis-0.525.0.dist-info → orionis-0.527.0.dist-info}/RECORD +9 -9
- {orionis-0.525.0.dist-info → orionis-0.527.0.dist-info}/WHEEL +0 -0
- {orionis-0.525.0.dist-info → orionis-0.527.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.525.0.dist-info → orionis-0.527.0.dist-info}/top_level.txt +0 -0
- {orionis-0.525.0.dist-info → orionis-0.527.0.dist-info}/zip-safe +0 -0
|
@@ -325,7 +325,7 @@ class Scheduler(ISchedule):
|
|
|
325
325
|
|
|
326
326
|
# If no job is found, return EventJob with default values
|
|
327
327
|
_id = data.id if data and hasattr(data, 'id') else None
|
|
328
|
-
if not _id and code
|
|
328
|
+
if not _id and code in (EVENT_JOB_MISSED, EVENT_JOB_REMOVED):
|
|
329
329
|
_id = event_data.get('signature', None)
|
|
330
330
|
elif not _id:
|
|
331
331
|
return EventJob()
|
orionis/metadata/framework.py
CHANGED
|
@@ -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
|
|
21
|
-
|
|
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
|
-
#
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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()
|
|
@@ -83,7 +83,7 @@ orionis/console/request/cli_request.py,sha256=7-sgYmNUCipuHLVAwWLJiHv0cJCDmsM1Lu
|
|
|
83
83
|
orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
84
|
orionis/console/tasks/event.py,sha256=l4J-HEPaj1mxB_PYQMgG9dRHUe01wUag8fKLLnR2N2M,164395
|
|
85
85
|
orionis/console/tasks/listener.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
|
-
orionis/console/tasks/schedule.py,sha256=
|
|
86
|
+
orionis/console/tasks/schedule.py,sha256=lC4D83e6MH6wK-mYXhUtjqQu0iNdgzahCpttLFrFMc8,82109
|
|
87
87
|
orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
88
88
|
orionis/container/container.py,sha256=aF_b6lTUpG4YCo9yFJEzsntTdIzgMMXFW5LyWqAJVBQ,87987
|
|
89
89
|
orionis/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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=
|
|
244
|
+
orionis/metadata/framework.py,sha256=3LGVSaRkJPOydu2IwWRtRNigC4o8EHN0Ln8BBPjyWkM,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=
|
|
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.
|
|
422
|
+
orionis-0.527.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.
|
|
569
|
-
orionis-0.
|
|
570
|
-
orionis-0.
|
|
571
|
-
orionis-0.
|
|
572
|
-
orionis-0.
|
|
568
|
+
orionis-0.527.0.dist-info/METADATA,sha256=uqG20NkndyVVM6jzsBNen2tWFb4IoSGmYSoCe16QUTI,4801
|
|
569
|
+
orionis-0.527.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
570
|
+
orionis-0.527.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
571
|
+
orionis-0.527.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
572
|
+
orionis-0.527.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|