orionis 0.624.0__py3-none-any.whl → 0.626.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/core/reactor.py +0 -2
- orionis/console/tasks/schedule.py +2 -2
- orionis/metadata/framework.py +1 -2
- {orionis-0.624.0.dist-info → orionis-0.626.0.dist-info}/METADATA +1 -2
- {orionis-0.624.0.dist-info → orionis-0.626.0.dist-info}/RECORD +8 -9
- orionis/console/commands/make_listener.py +0 -54
- {orionis-0.624.0.dist-info → orionis-0.626.0.dist-info}/WHEEL +0 -0
- {orionis-0.624.0.dist-info → orionis-0.626.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.624.0.dist-info → orionis-0.626.0.dist-info}/top_level.txt +0 -0
orionis/console/core/reactor.py
CHANGED
|
@@ -288,7 +288,6 @@ class Reactor(IReactor):
|
|
|
288
288
|
from orionis.console.commands.cache import CacheClearCommand
|
|
289
289
|
from orionis.console.commands.scheduler_work import ScheduleWorkCommand
|
|
290
290
|
from orionis.console.commands.scheduler_list import ScheduleListCommand
|
|
291
|
-
from orionis.console.commands.make_listener import MakeListenerCommand
|
|
292
291
|
|
|
293
292
|
# List of core command classes to load (extend this list as more core commands are added)
|
|
294
293
|
core_commands = [
|
|
@@ -300,7 +299,6 @@ class Reactor(IReactor):
|
|
|
300
299
|
CacheClearCommand,
|
|
301
300
|
ScheduleWorkCommand,
|
|
302
301
|
ScheduleListCommand,
|
|
303
|
-
MakeListenerCommand
|
|
304
302
|
]
|
|
305
303
|
|
|
306
304
|
# Iterate through the core command classes and register them
|
|
@@ -2,7 +2,6 @@ import asyncio
|
|
|
2
2
|
from datetime import datetime
|
|
3
3
|
import logging
|
|
4
4
|
from typing import Any, Dict, List, Optional, Union
|
|
5
|
-
import pytz
|
|
6
5
|
from apscheduler.events import (
|
|
7
6
|
EVENT_JOB_ERROR,
|
|
8
7
|
EVENT_JOB_EXECUTED,
|
|
@@ -37,6 +36,7 @@ from orionis.console.request.cli_request import CLIRequest
|
|
|
37
36
|
from orionis.failure.contracts.catch import ICatch
|
|
38
37
|
from orionis.foundation.contracts.application import IApplication
|
|
39
38
|
from orionis.services.log.contracts.log_service import ILogger
|
|
39
|
+
from zoneinfo import ZoneInfo
|
|
40
40
|
|
|
41
41
|
class Schedule(ISchedule):
|
|
42
42
|
|
|
@@ -86,7 +86,7 @@ class Schedule(ISchedule):
|
|
|
86
86
|
self.__rich_console = rich_console
|
|
87
87
|
|
|
88
88
|
# Save the timezone configuration from the application settings.
|
|
89
|
-
self.__tz =
|
|
89
|
+
self.__tz = ZoneInfo(self.__app.config('app.timezone') or 'UTC')
|
|
90
90
|
|
|
91
91
|
# Initialize the AsyncIOScheduler with the configured timezone.
|
|
92
92
|
self.__scheduler = APSAsyncIOScheduler(timezone=self.__tz)
|
orionis/metadata/framework.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
NAME = "orionis"
|
|
6
6
|
|
|
7
7
|
# Current version of the framework
|
|
8
|
-
VERSION = "0.
|
|
8
|
+
VERSION = "0.626.0"
|
|
9
9
|
|
|
10
10
|
# Full name of the author or maintainer of the project
|
|
11
11
|
AUTHOR = "Raul Mauricio Uñate Castro"
|
|
@@ -84,7 +84,6 @@ REQUIRES = [
|
|
|
84
84
|
'rich>=13.9.4',
|
|
85
85
|
'psutil>=7.0.0',
|
|
86
86
|
'cryptography>=44.0.3',
|
|
87
|
-
'pytz>=2025.2'
|
|
88
87
|
]
|
|
89
88
|
|
|
90
89
|
#---------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orionis
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.626.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
|
|
@@ -32,7 +32,6 @@ Requires-Dist: requests>=2.32.3
|
|
|
32
32
|
Requires-Dist: rich>=13.9.4
|
|
33
33
|
Requires-Dist: psutil>=7.0.0
|
|
34
34
|
Requires-Dist: cryptography>=44.0.3
|
|
35
|
-
Requires-Dist: pytz>=2025.2
|
|
36
35
|
Dynamic: author
|
|
37
36
|
Dynamic: author-email
|
|
38
37
|
Dynamic: classifier
|
|
@@ -10,7 +10,6 @@ orionis/console/base/scheduler_event_listener.py,sha256=X2mZBAYLBCtLOH7QSrCEaLeJ
|
|
|
10
10
|
orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
orionis/console/commands/cache.py,sha256=d-J6Qu5Xpp9z0BU4OOb--gp9zWfUZOWm_LEBKIO8k-o,2321
|
|
12
12
|
orionis/console/commands/help.py,sha256=0VQLw_8ghyMIbWH9L6S2I5umwa_rniK1lzDdX0qYS_U,3118
|
|
13
|
-
orionis/console/commands/make_listener.py,sha256=vuXKOPIw_7MbiGwHGiDjLyd5-OqyBov1LKozsv2itEc,1801
|
|
14
13
|
orionis/console/commands/publisher.py,sha256=m-4RGDI3gc3-ED7Pl0rASLcoZP694q9jNKq0vRMM9uA,21380
|
|
15
14
|
orionis/console/commands/scheduler_list.py,sha256=OU9qOjZNZRRElxwpg-E8nVefJToeiWu2E2l8P17NZtI,4759
|
|
16
15
|
orionis/console/commands/scheduler_work.py,sha256=YYKqGLI5crJKuyVjCVwO1ZY_ZxlTWFr1eoz0bQUvyXU,5919
|
|
@@ -32,7 +31,7 @@ orionis/console/contracts/reactor.py,sha256=iT6ShoCutAWEeJzOf_PK7CGXi9TgrOD5tewH
|
|
|
32
31
|
orionis/console/contracts/schedule.py,sha256=xtXgp4BPhvhg3YSM4mrIdbyoBdr4OJBi1gBM_kJN5UQ,13694
|
|
33
32
|
orionis/console/contracts/schedule_event_listener.py,sha256=h06qsBxuEMD3KLSyu0JXdUDHlQW19BX9lA09Qrh2QXg,3818
|
|
34
33
|
orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
orionis/console/core/reactor.py,sha256=
|
|
34
|
+
orionis/console/core/reactor.py,sha256=FZAtTaozJntnfdluLJjacdG40kPW91SY5AVc4vyyYcI,43718
|
|
36
35
|
orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
36
|
orionis/console/dumper/debug.py,sha256=p8uflSXeDJDrVM9mZY4JMYEus73Z6TsLnQQtgP0QUak,22427
|
|
38
37
|
orionis/console/dynamic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -64,7 +63,7 @@ orionis/console/request/cli_request.py,sha256=lO7088xlVK1VP-NhCIgAo7qXGzCW3nXVOJ
|
|
|
64
63
|
orionis/console/stub/command.stub,sha256=IfQ0bTrpataVFcT1ZdHyyiYNZ67D5Aox_QvgVJLeJnI,1240
|
|
65
64
|
orionis/console/stub/listener.stub,sha256=DbX-ghx2-vb73kzQ6L20lyg5vSKn58jSLTwFuwNQU9k,4331
|
|
66
65
|
orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
|
-
orionis/console/tasks/schedule.py,sha256=
|
|
66
|
+
orionis/console/tasks/schedule.py,sha256=ZeeuQ9Tbu5KNowKC5oIk7yWeJXzlDQiQ278mWEgoCXc,87989
|
|
68
67
|
orionis/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
69
68
|
orionis/container/container.py,sha256=yfhRs85YpPvqGRfrjblkHEuZGCN0BijremI-3r1Epak,96842
|
|
70
69
|
orionis/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -216,7 +215,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
|
|
|
216
215
|
orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
|
|
217
216
|
orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
|
|
218
217
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
219
|
-
orionis/metadata/framework.py,sha256=
|
|
218
|
+
orionis/metadata/framework.py,sha256=i4jrnDSSLC6BEPmQ8yzywmJQgvaRt1HrYNiG-AHy61c,4089
|
|
220
219
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
221
220
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
222
221
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -403,8 +402,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
|
|
|
403
402
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
404
403
|
orionis/test/view/render.py,sha256=R55ykeRs0wDKcdTf4O1YZ8GDHTFmJ0IK6VQkbJkYUvo,5571
|
|
405
404
|
orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
|
|
406
|
-
orionis-0.
|
|
407
|
-
orionis-0.
|
|
408
|
-
orionis-0.
|
|
409
|
-
orionis-0.
|
|
410
|
-
orionis-0.
|
|
405
|
+
orionis-0.626.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
406
|
+
orionis-0.626.0.dist-info/METADATA,sha256=Qe2e7AyJ5-WNPxefR_Ad19tLs4aJaC0n_f9Udl5elRA,4772
|
|
407
|
+
orionis-0.626.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
408
|
+
orionis-0.626.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
|
409
|
+
orionis-0.626.0.dist-info/RECORD,,
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
from orionis.console.base.command import BaseCommand
|
|
2
|
-
from orionis.console.exceptions import CLIOrionisRuntimeError
|
|
3
|
-
|
|
4
|
-
class MakeListenerCommand(BaseCommand):
|
|
5
|
-
"""
|
|
6
|
-
Este comando se encarga de crear los listener tando para CLI como para otro tipo de Eventos.
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
# Indicates whether timestamps will be shown in the command output
|
|
10
|
-
timestamps: bool = False
|
|
11
|
-
|
|
12
|
-
# Command signature and description
|
|
13
|
-
signature: str = "make:listener"
|
|
14
|
-
|
|
15
|
-
# Command description
|
|
16
|
-
description: str = "Displays usage information, examples, and a list of available commands in the Orionis CLI."
|
|
17
|
-
|
|
18
|
-
def handle(self) -> dict:
|
|
19
|
-
"""
|
|
20
|
-
Displays usage information and a list of available commands for the Orionis CLI.
|
|
21
|
-
|
|
22
|
-
Parameters
|
|
23
|
-
----------
|
|
24
|
-
reactor : IReactor
|
|
25
|
-
The reactor instance providing command metadata via the `info()` method.
|
|
26
|
-
|
|
27
|
-
Returns
|
|
28
|
-
-------
|
|
29
|
-
dict
|
|
30
|
-
A dictionary containing the list of available commands, each with its signature and description.
|
|
31
|
-
|
|
32
|
-
Raises
|
|
33
|
-
------
|
|
34
|
-
CLIOrionisRuntimeError
|
|
35
|
-
If an unexpected error occurs during help information generation or display.
|
|
36
|
-
"""
|
|
37
|
-
try:
|
|
38
|
-
|
|
39
|
-
# Solicitar el nombre del listener al usuario
|
|
40
|
-
ans = self.choice(
|
|
41
|
-
question="Tipo de Listener",
|
|
42
|
-
choices=[
|
|
43
|
-
"Listener para eventos CLI",
|
|
44
|
-
"Listener para eventos de Schedule",
|
|
45
|
-
],
|
|
46
|
-
default_index=0
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
print(ans)
|
|
50
|
-
|
|
51
|
-
except Exception as e:
|
|
52
|
-
|
|
53
|
-
# Raise a custom runtime error if any exception occurs
|
|
54
|
-
raise CLIOrionisRuntimeError(f"An unexpected error occurred: {e}") from e
|
|
File without changes
|
|
File without changes
|
|
File without changes
|