orionis 0.514.0__py3-none-any.whl → 0.515.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/contracts/schedule.py +2 -2
- orionis/console/tasks/schedule.py +4 -3
- orionis/metadata/framework.py +1 -1
- {orionis-0.514.0.dist-info → orionis-0.515.0.dist-info}/METADATA +1 -1
- {orionis-0.514.0.dist-info → orionis-0.515.0.dist-info}/RECORD +9 -9
- {orionis-0.514.0.dist-info → orionis-0.515.0.dist-info}/WHEEL +0 -0
- {orionis-0.514.0.dist-info → orionis-0.515.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.514.0.dist-info → orionis-0.515.0.dist-info}/top_level.txt +0 -0
- {orionis-0.514.0.dist-info → orionis-0.515.0.dist-info}/zip-safe +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from abc import ABC, abstractmethod
|
|
2
2
|
from datetime import datetime
|
|
3
3
|
from typing import List, Optional, Union
|
|
4
|
+
from orionis.console.contracts.event import IEvent
|
|
4
5
|
from orionis.console.contracts.schedule_event_listener import IScheduleEventListener
|
|
5
6
|
from orionis.console.enums.listener import ListeningEvent
|
|
6
|
-
from orionis.console.tasks.event import Event
|
|
7
7
|
|
|
8
8
|
class ISchedule(ABC):
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ class ISchedule(ABC):
|
|
|
12
12
|
self,
|
|
13
13
|
signature: str,
|
|
14
14
|
args: Optional[List[str]] = None
|
|
15
|
-
) -> '
|
|
15
|
+
) -> 'IEvent':
|
|
16
16
|
"""
|
|
17
17
|
Prepare an Event instance for a given command signature and its arguments.
|
|
18
18
|
|
|
@@ -20,6 +20,7 @@ from apscheduler.schedulers.asyncio import AsyncIOScheduler as APSAsyncIOSchedul
|
|
|
20
20
|
from rich.console import Console
|
|
21
21
|
from rich.panel import Panel
|
|
22
22
|
from rich.text import Text
|
|
23
|
+
from orionis.console.contracts.event import IEvent
|
|
23
24
|
from orionis.console.contracts.reactor import IReactor
|
|
24
25
|
from orionis.console.contracts.schedule import ISchedule
|
|
25
26
|
from orionis.console.contracts.schedule_event_listener import IScheduleEventListener
|
|
@@ -39,7 +40,6 @@ from orionis.console.enums.event import Event as EventEntity
|
|
|
39
40
|
from orionis.console.exceptions import CLIOrionisRuntimeError
|
|
40
41
|
from orionis.console.exceptions.cli_orionis_value_error import CLIOrionisValueError
|
|
41
42
|
from orionis.console.output.contracts.console import IConsole
|
|
42
|
-
from orionis.console.tasks.event import Event
|
|
43
43
|
from orionis.foundation.contracts.application import IApplication
|
|
44
44
|
from orionis.services.log.contracts.log_service import ILogger
|
|
45
45
|
|
|
@@ -104,7 +104,7 @@ class Scheduler(ISchedule):
|
|
|
104
104
|
self.__available_commands = self.__getCommands()
|
|
105
105
|
|
|
106
106
|
# Initialize the jobs dictionary to keep track of scheduled jobs.
|
|
107
|
-
self.__events: Dict[str,
|
|
107
|
+
self.__events: Dict[str, IEvent] = {}
|
|
108
108
|
|
|
109
109
|
# Initialize the jobs list to keep track of all scheduled jobs.
|
|
110
110
|
self.__jobs: List[EventEntity] = []
|
|
@@ -232,7 +232,7 @@ class Scheduler(ISchedule):
|
|
|
232
232
|
self,
|
|
233
233
|
signature: str,
|
|
234
234
|
args: Optional[List[str]] = None
|
|
235
|
-
) -> '
|
|
235
|
+
) -> 'IEvent':
|
|
236
236
|
"""
|
|
237
237
|
Prepare an Event instance for a given command signature and its arguments.
|
|
238
238
|
|
|
@@ -278,6 +278,7 @@ class Scheduler(ISchedule):
|
|
|
278
278
|
raise CLIOrionisValueError(f"The command '{signature}' is not available or does not exist.")
|
|
279
279
|
|
|
280
280
|
# Store the command and its arguments for scheduling
|
|
281
|
+
from orionis.console.tasks.event import Event
|
|
281
282
|
self.__events[signature] = Event(
|
|
282
283
|
signature=signature,
|
|
283
284
|
args=args or [],
|
orionis/metadata/framework.py
CHANGED
|
@@ -24,7 +24,7 @@ orionis/console/contracts/command.py,sha256=vmAJD0yMQ5-AD_s9_xCFEAl64sKk65z7U2E1
|
|
|
24
24
|
orionis/console/contracts/event.py,sha256=zaOkbRNKpU6U_cIEFic84C3WIcD8kCIyX9hc50jN8N0,119797
|
|
25
25
|
orionis/console/contracts/kernel.py,sha256=mh4LlhEYHh3FuGZZQ0GBhD6ZLa5YQvaNj2r01IIHI5Y,826
|
|
26
26
|
orionis/console/contracts/reactor.py,sha256=Xeq7Zrw6WE5MV_XOQfiQEchAFbb6-0TjLpjWOxYW--g,4554
|
|
27
|
-
orionis/console/contracts/schedule.py,sha256=
|
|
27
|
+
orionis/console/contracts/schedule.py,sha256=17cfPYtLo-jqF8FxYOhh4epJZnxw5mMPuLGaWoUwxL4,12171
|
|
28
28
|
orionis/console/contracts/schedule_event_listener.py,sha256=G-Ye9YIzfeXFcJD1jqNOy7Cj_-VQGq0ynXZCTPTp7Mc,11550
|
|
29
29
|
orionis/console/contracts/scheduler.py,sha256=90QoeoUGOLgLhzCKbWHpuAdWzmHiV1FQXrhzJajLMBA,4354
|
|
30
30
|
orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -81,7 +81,7 @@ orionis/console/request/cli_request.py,sha256=7-sgYmNUCipuHLVAwWLJiHv0cJCDmsM1Lu
|
|
|
81
81
|
orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
82
|
orionis/console/tasks/event.py,sha256=AlOO--HNaUyZ5MXZsKSJJnQnLhZwqg52NvwsdSF8LEk,164395
|
|
83
83
|
orionis/console/tasks/listener.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
-
orionis/console/tasks/schedule.py,sha256=
|
|
84
|
+
orionis/console/tasks/schedule.py,sha256=RUw1NedN4HhX302GA3LL2iYupHrlnBw4oJ3A-75qFKw,58386
|
|
85
85
|
orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
86
|
orionis/container/container.py,sha256=aF_b6lTUpG4YCo9yFJEzsntTdIzgMMXFW5LyWqAJVBQ,87987
|
|
87
87
|
orionis/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -239,7 +239,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
|
|
|
239
239
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
240
240
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
241
241
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
242
|
-
orionis/metadata/framework.py,sha256=
|
|
242
|
+
orionis/metadata/framework.py,sha256=NX9s158qw4HYWnSebD10NH2K96w6guzjg19E4cNeQvo,4109
|
|
243
243
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
244
244
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
245
245
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -415,7 +415,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
415
415
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
416
416
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
417
417
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
418
|
-
orionis-0.
|
|
418
|
+
orionis-0.515.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
419
419
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
420
420
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
421
421
|
tests/container/context/test_manager.py,sha256=wOwXpl9rHNfTTexa9GBKYMwK0_-KSQPbI-AEyGNkmAE,1356
|
|
@@ -561,8 +561,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
561
561
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
562
562
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
563
563
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
564
|
-
orionis-0.
|
|
565
|
-
orionis-0.
|
|
566
|
-
orionis-0.
|
|
567
|
-
orionis-0.
|
|
568
|
-
orionis-0.
|
|
564
|
+
orionis-0.515.0.dist-info/METADATA,sha256=-xx0tu52QgewV5qxx1herLongep9WZoVtALqEI6GEpw,4801
|
|
565
|
+
orionis-0.515.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
566
|
+
orionis-0.515.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
567
|
+
orionis-0.515.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
568
|
+
orionis-0.515.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|