orionis 0.524.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.
- orionis/console/base/scheduler_event_listener.py +82 -53
- orionis/console/contracts/schedule_event_listener.py +58 -174
- orionis/console/entities/event_job.py +60 -0
- orionis/console/entities/scheduler_error.py +19 -0
- orionis/console/entities/scheduler_event_data.py +1 -6
- orionis/console/entities/scheduler_paused.py +2 -2
- orionis/console/entities/scheduler_resumed.py +2 -2
- orionis/console/entities/scheduler_shutdown.py +3 -3
- orionis/console/entities/scheduler_started.py +3 -2
- orionis/console/tasks/schedule.py +329 -182
- orionis/metadata/framework.py +1 -1
- orionis/services/introspection/dataclass/attributes.py +22 -7
- {orionis-0.524.0.dist-info → orionis-0.526.0.dist-info}/METADATA +1 -1
- {orionis-0.524.0.dist-info → orionis-0.526.0.dist-info}/RECORD +18 -16
- {orionis-0.524.0.dist-info → orionis-0.526.0.dist-info}/WHEEL +0 -0
- {orionis-0.524.0.dist-info → orionis-0.526.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.524.0.dist-info → orionis-0.526.0.dist-info}/top_level.txt +0 -0
- {orionis-0.524.0.dist-info → orionis-0.526.0.dist-info}/zip-safe +0 -0
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()
|
|
@@ -9,7 +9,7 @@ orionis/console/args/enums/actions.py,sha256=S3T-vWS6DJSGtANrq3od3-90iYAjPvJwaOZ
|
|
|
9
9
|
orionis/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
orionis/console/base/command.py,sha256=OM4xqVgpv_1RZVyVG8BzOHl1sP9FT5mPUwZjMil8IRg,6637
|
|
11
11
|
orionis/console/base/scheduler.py,sha256=w86p-4KjfMqMcGlQBsmiBASpzv33M-PWLbgYza7Um9g,8030
|
|
12
|
-
orionis/console/base/scheduler_event_listener.py,sha256=
|
|
12
|
+
orionis/console/base/scheduler_event_listener.py,sha256=tmdAMPzTmT8z0BcpyoIZwyTRzmVHF1olXCuw6XjuMMA,4929
|
|
13
13
|
orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
orionis/console/commands/cache.py,sha256=8DsYoRzSBLn0P9qkGVItRbo0R6snWBDBg0_Xa7tmVhs,2322
|
|
15
15
|
orionis/console/commands/help.py,sha256=zfSw0pYaOnFN-_Ozdn4veBQDYMgSSDY10nPDCi-7tTY,3199
|
|
@@ -25,7 +25,7 @@ orionis/console/contracts/event.py,sha256=zaOkbRNKpU6U_cIEFic84C3WIcD8kCIyX9hc50
|
|
|
25
25
|
orionis/console/contracts/kernel.py,sha256=mh4LlhEYHh3FuGZZQ0GBhD6ZLa5YQvaNj2r01IIHI5Y,826
|
|
26
26
|
orionis/console/contracts/reactor.py,sha256=Xeq7Zrw6WE5MV_XOQfiQEchAFbb6-0TjLpjWOxYW--g,4554
|
|
27
27
|
orionis/console/contracts/schedule.py,sha256=17cfPYtLo-jqF8FxYOhh4epJZnxw5mMPuLGaWoUwxL4,12171
|
|
28
|
-
orionis/console/contracts/schedule_event_listener.py,sha256=
|
|
28
|
+
orionis/console/contracts/schedule_event_listener.py,sha256=7fQdPh6X_npfGpQW_2x81D7-5Pe40jIog9uDeEU0kro,4390
|
|
29
29
|
orionis/console/contracts/scheduler.py,sha256=OW-a_YDDNPrenYT9z8Tv71VjyZ1aSzqzqhTBhTCZhGM,7698
|
|
30
30
|
orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
orionis/console/core/reactor.py,sha256=JlxNiqmyzAqiS21hxOMD5ELiDNPzmGHYDNrdlaMvYuI,30409
|
|
@@ -39,6 +39,7 @@ orionis/console/dynamic/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
|
39
39
|
orionis/console/dynamic/contracts/progress_bar.py,sha256=NYebL2h-vg2t2H6IhJjuC37gglRkpT-MW71wbJtpLNg,1784
|
|
40
40
|
orionis/console/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
orionis/console/entities/all_jobs_removed.py,sha256=4_Foo_CW2mP7iazBJX90I_QJ-Qd_wYGpaJGHXzYDREw,728
|
|
42
|
+
orionis/console/entities/event_job.py,sha256=vweIHfjCnjs8wo8O9rJ092ERHlF_O5hhDSt7Mlaf6rQ,2129
|
|
42
43
|
orionis/console/entities/executor_added.py,sha256=qtV8dQKYxI_NcpDdOObuCemQy0eAihr0yBIkXewGCv0,702
|
|
43
44
|
orionis/console/entities/executor_removed.py,sha256=B_Z_toclI46N5Wjo-ZUgFemxL_5UJcjkDod3kHWR1AQ,738
|
|
44
45
|
orionis/console/entities/job_added.py,sha256=pYxXxhU3bEitUV1m_Np6ypzDPcvfTaFBcKwi67hHt_c,813
|
|
@@ -55,11 +56,12 @@ orionis/console/entities/job_store_added.py,sha256=NoocJD3zSm7E8ZsUob8BdvKxveu9W
|
|
|
55
56
|
orionis/console/entities/job_store_removed.py,sha256=wh53sf3Rkezo5hMQkWo-NToeCYwMOmp7BLa1ACVUnqo,740
|
|
56
57
|
orionis/console/entities/job_submitted.py,sha256=8ftGEOsDQxHYK2tunGA9_b-u581hPcvNnZ5NmmaMua0,731
|
|
57
58
|
orionis/console/entities/request.py,sha256=Sm-6jMd95teUEdh_4VJWjsDbvfID3khHCOU_2OEEIv4,980
|
|
58
|
-
orionis/console/entities/
|
|
59
|
-
orionis/console/entities/
|
|
60
|
-
orionis/console/entities/
|
|
61
|
-
orionis/console/entities/
|
|
62
|
-
orionis/console/entities/
|
|
59
|
+
orionis/console/entities/scheduler_error.py,sha256=4nedVmkx69IeZzmilCcH5AeghkS2zblwNpsK12bcxHQ,717
|
|
60
|
+
orionis/console/entities/scheduler_event_data.py,sha256=2BvWGhk48B3PsivaFuF10yl4UpG70k2gTn6ghhlHBN8,840
|
|
61
|
+
orionis/console/entities/scheduler_paused.py,sha256=YwiVM2lDWOEdFHP4m-BLHFMiwQmZ6Cvknhl5FGDwf9M,557
|
|
62
|
+
orionis/console/entities/scheduler_resumed.py,sha256=GT-QvvP38Qhr9ZnrHTCuDKFubRdAi3yVh58_W0YXqlk,735
|
|
63
|
+
orionis/console/entities/scheduler_shutdown.py,sha256=vRFXUt3hxKueaT6M4335HFL3NO3pe8QB9CSMvW_4PB0,900
|
|
64
|
+
orionis/console/entities/scheduler_started.py,sha256=U0pduaFhWrEUJQws81jTjDmTp4Kxfy6ontq8rQN4Y6I,910
|
|
63
65
|
orionis/console/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
64
66
|
orionis/console/enums/command.py,sha256=lCfVp2vnDojJN2gjdVxE_XU3mRjZZgOIxPfBVQYo9w4,1278
|
|
65
67
|
orionis/console/enums/event.py,sha256=G_6QEagrjtQ81dgkVhTTc2M2YuhnnKRkRSjd2i8m3OQ,2808
|
|
@@ -81,7 +83,7 @@ orionis/console/request/cli_request.py,sha256=7-sgYmNUCipuHLVAwWLJiHv0cJCDmsM1Lu
|
|
|
81
83
|
orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
84
|
orionis/console/tasks/event.py,sha256=l4J-HEPaj1mxB_PYQMgG9dRHUe01wUag8fKLLnR2N2M,164395
|
|
83
85
|
orionis/console/tasks/listener.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
-
orionis/console/tasks/schedule.py,sha256=
|
|
86
|
+
orionis/console/tasks/schedule.py,sha256=ErILoXrl3HhuHLq5AOoA2o3EAHIs87woIgj4D7GMgWY,82088
|
|
85
87
|
orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
88
|
orionis/container/container.py,sha256=aF_b6lTUpG4YCo9yFJEzsntTdIzgMMXFW5LyWqAJVBQ,87987
|
|
87
89
|
orionis/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -239,7 +241,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
|
|
|
239
241
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
240
242
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
241
243
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
242
|
-
orionis/metadata/framework.py,sha256=
|
|
244
|
+
orionis/metadata/framework.py,sha256=nAs02-ZnGgfww2nj-dtN4ytz-CFlHYc-4RbWT9go7TM,4109
|
|
243
245
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
244
246
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
245
247
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -293,7 +295,7 @@ orionis/services/introspection/concretes/reflection.py,sha256=5DkNr6gUYdccSo7htz
|
|
|
293
295
|
orionis/services/introspection/concretes/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
294
296
|
orionis/services/introspection/concretes/contracts/reflection.py,sha256=LwEAgdN_WLCfS9b8pnFRVfN0PTRK4Br9qngu5km5aIk,24955
|
|
295
297
|
orionis/services/introspection/dataclass/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
296
|
-
orionis/services/introspection/dataclass/attributes.py,sha256=
|
|
298
|
+
orionis/services/introspection/dataclass/attributes.py,sha256=VGBUxH40PxUE8J4TBBYdSqwTO0xwYYmIS6BITgff-cE,1695
|
|
297
299
|
orionis/services/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
298
300
|
orionis/services/introspection/dependencies/reflection.py,sha256=VEe3cY6LTpOW3dm0IFECTHh7F_9_X-siTAeQc2XRQeM,13451
|
|
299
301
|
orionis/services/introspection/dependencies/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -417,7 +419,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
417
419
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
418
420
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
419
421
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
420
|
-
orionis-0.
|
|
422
|
+
orionis-0.526.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
421
423
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
422
424
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
423
425
|
tests/container/context/test_manager.py,sha256=wOwXpl9rHNfTTexa9GBKYMwK0_-KSQPbI-AEyGNkmAE,1356
|
|
@@ -563,8 +565,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
563
565
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
564
566
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
565
567
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
566
|
-
orionis-0.
|
|
567
|
-
orionis-0.
|
|
568
|
-
orionis-0.
|
|
569
|
-
orionis-0.
|
|
570
|
-
orionis-0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|