orionis 0.639.0__py3-none-any.whl → 0.641.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.
@@ -1,4 +1,3 @@
1
- from datetime import datetime
2
1
  from orionis.console.contracts.base_scheduler import IBaseScheduler
3
2
  from orionis.console.contracts.schedule import ISchedule
4
3
  from orionis.console.entities.scheduler_error import SchedulerError
@@ -9,15 +8,6 @@ from orionis.console.entities.scheduler_started import SchedulerStarted
9
8
 
10
9
  class BaseScheduler(IBaseScheduler):
11
10
 
12
- # Pause Global Scheduler at a specific time
13
- PAUSE_AT: datetime = None
14
-
15
- # Resume Global Scheduler at a specific time
16
- RESUME_AT: datetime = None
17
-
18
- # Finalize Global Scheduler at a specific time
19
- FINALIZE_AT: datetime = None
20
-
21
11
  async def tasks(self, schedule: ISchedule):
22
12
  """
23
13
  Defines and registers scheduled tasks for the application.
@@ -41,9 +31,7 @@ class BaseScheduler(IBaseScheduler):
41
31
  The method should define the tasks, their execution intervals, and any additional
42
32
  properties or constraints required for the tasks.
43
33
  """
44
-
45
- # Raise an error to enforce implementation in subclasses
46
- raise NotImplementedError("Subclasses must implement the tasks method.")
34
+ pass
47
35
 
48
36
  async def onStarted(self, event: SchedulerStarted, schedule: ISchedule):
49
37
  """
@@ -280,29 +280,29 @@ class Reactor(IReactor):
280
280
  """
281
281
 
282
282
  # Import the core command class for version
283
- from orionis.console.commands.version import VersionCommand
283
+ from orionis.console.commands.__publisher__ import PublisherCommand
284
+ from orionis.console.commands.__workflow__ import WorkFlowGithubCommand
285
+ from orionis.console.commands.cache_clear import CacheClearCommand
284
286
  from orionis.console.commands.help import HelpCommand
285
- from orionis.console.commands.test import TestCommand
286
- from orionis.console.commands.publisher import PublisherCommand
287
- from orionis.console.commands.workflow import WorkFlowGithubCommand
288
- from orionis.console.commands.cache import CacheClearCommand
289
- from orionis.console.commands.scheduler_work import ScheduleWorkCommand
290
- from orionis.console.commands.scheduler_list import ScheduleListCommand
287
+ from orionis.console.commands.log_clear import LogClearCommand
291
288
  from orionis.console.commands.make_command import MakeCommand
292
- from orionis.console.commands.log import LogClearCommand
289
+ from orionis.console.commands.scheduler_list import ScheduleListCommand
290
+ from orionis.console.commands.scheduler_work import ScheduleWorkCommand
291
+ from orionis.console.commands.test import TestCommand
292
+ from orionis.console.commands.version import VersionCommand
293
293
 
294
294
  # List of core command classes to load (extend this list as more core commands are added)
295
295
  core_commands = [
296
- VersionCommand,
297
- HelpCommand,
298
- TestCommand,
299
296
  PublisherCommand,
300
297
  WorkFlowGithubCommand,
301
298
  CacheClearCommand,
302
- ScheduleWorkCommand,
303
- ScheduleListCommand,
299
+ HelpCommand,
300
+ LogClearCommand,
304
301
  MakeCommand,
305
- LogClearCommand
302
+ ScheduleListCommand,
303
+ ScheduleWorkCommand,
304
+ TestCommand,
305
+ VersionCommand
306
306
  ]
307
307
 
308
308
  # Iterate through the core command classes and register them
@@ -142,10 +142,10 @@ class Application(Container, IApplication):
142
142
  self.__runtime_path_config: dict = {}
143
143
 
144
144
  # Property to store the scheduler instance
145
- self.__scheduler: BaseScheduler = None
145
+ self.__scheduler: IBaseScheduler = None
146
146
 
147
147
  # Property to store the exception handler class
148
- self.__exception_handler: Type[BaseExceptionHandler] = None
148
+ self.__exception_handler: Type[IBaseExceptionHandler] = None
149
149
 
150
150
  # Flag to prevent re-initialization
151
151
  self.__initialized = True
@@ -774,6 +774,10 @@ class Application(Container, IApplication):
774
774
  - The method always returns the current `Application` instance.
775
775
  """
776
776
 
777
+ # Prevent modification if the application has already been booted
778
+ if self.__booted:
779
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
780
+
777
781
  # Convert class type to dict using DataClass wrapper
778
782
  if (isinstance(app, type) and issubclass(app, App)):
779
783
  _app = DataClass(App).fromDataclass(app).toDict()
@@ -870,6 +874,10 @@ class Application(Container, IApplication):
870
874
  - The method always returns the current Application instance.
871
875
  """
872
876
 
877
+ # Prevent modification if the application has already been booted
878
+ if self.__booted:
879
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
880
+
873
881
  # Convert class type to dict using DataClass wrapper
874
882
  if (isinstance(auth, type) and issubclass(auth, Auth)):
875
883
  _auth = DataClass(Auth).fromDataclass(auth).toDict()
@@ -966,6 +974,10 @@ class Application(Container, IApplication):
966
974
  - The method always returns the current Application instance.
967
975
  """
968
976
 
977
+ # Prevent modification if the application has already been booted
978
+ if self.__booted:
979
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
980
+
969
981
  # Convert class type to dict using DataClass wrapper
970
982
  if (isinstance(cache, type) and issubclass(cache, Cache)):
971
983
  _cache = DataClass(Cache).fromDataclass(cache).toDict()
@@ -1062,6 +1074,10 @@ class Application(Container, IApplication):
1062
1074
  - The method always returns the current Application instance.
1063
1075
  """
1064
1076
 
1077
+ # Prevent modification if the application has already been booted
1078
+ if self.__booted:
1079
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1080
+
1065
1081
  # Convert class type to dict using DataClass wrapper
1066
1082
  if (isinstance(cors, type) and issubclass(cors, Cors)):
1067
1083
  _cors = DataClass(Cors).fromDataclass(cors).toDict()
@@ -1158,6 +1174,10 @@ class Application(Container, IApplication):
1158
1174
  - The method always returns the current Application instance.
1159
1175
  """
1160
1176
 
1177
+ # Prevent modification if the application has already been booted
1178
+ if self.__booted:
1179
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1180
+
1161
1181
  # Convert class type to dict using DataClass wrapper
1162
1182
  if (isinstance(database, type) and issubclass(database, Database)):
1163
1183
  _database = DataClass(Database).fromDataclass(database).toDict()
@@ -1254,6 +1274,10 @@ class Application(Container, IApplication):
1254
1274
  - The method always returns the current Application instance.
1255
1275
  """
1256
1276
 
1277
+ # Prevent modification if the application has already been booted
1278
+ if self.__booted:
1279
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1280
+
1257
1281
  # Convert class type to dict using DataClass wrapper
1258
1282
  if (isinstance(filesystems, type) and issubclass(filesystems, Filesystems)):
1259
1283
  _filesystems = DataClass(Filesystems).fromDataclass(filesystems).toDict()
@@ -1350,6 +1374,10 @@ class Application(Container, IApplication):
1350
1374
  - The method always returns the current Application instance.
1351
1375
  """
1352
1376
 
1377
+ # Prevent modification if the application has already been booted
1378
+ if self.__booted:
1379
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1380
+
1353
1381
  # Convert class type to dict using DataClass wrapper
1354
1382
  if (isinstance(logging, type) and issubclass(logging, Logging)):
1355
1383
  _logging = DataClass(Logging).fromDataclass(logging).toDict()
@@ -1446,6 +1474,10 @@ class Application(Container, IApplication):
1446
1474
  - The method always returns the current Application instance.
1447
1475
  """
1448
1476
 
1477
+ # Prevent modification if the application has already been booted
1478
+ if self.__booted:
1479
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1480
+
1449
1481
  # Convert class type to dict using DataClass wrapper
1450
1482
  if (isinstance(mail, type) and issubclass(mail, Mail)):
1451
1483
  _mail = DataClass(Mail).fromDataclass(mail).toDict()
@@ -1542,6 +1574,10 @@ class Application(Container, IApplication):
1542
1574
  - The method always returns the current Application instance.
1543
1575
  """
1544
1576
 
1577
+ # Prevent modification if the application has already been booted
1578
+ if self.__booted:
1579
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1580
+
1545
1581
  # Convert class type to dict using DataClass wrapper
1546
1582
  if (isinstance(queue, type) and issubclass(queue, Queue)):
1547
1583
  _queue = DataClass(Queue).fromDataclass(queue).toDict()
@@ -1638,6 +1674,10 @@ class Application(Container, IApplication):
1638
1674
  - The method always returns the current Application instance.
1639
1675
  """
1640
1676
 
1677
+ # Prevent modification if the application has already been booted
1678
+ if self.__booted:
1679
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1680
+
1641
1681
  # Convert class type to dict using DataClass wrapper
1642
1682
  if (isinstance(session, type) and issubclass(session, Session)):
1643
1683
  _session = DataClass(Session).fromDataclass(session).toDict()
@@ -1734,6 +1774,10 @@ class Application(Container, IApplication):
1734
1774
  - The method always returns the current Application instance.
1735
1775
  """
1736
1776
 
1777
+ # Prevent modification if the application has already been booted
1778
+ if self.__booted:
1779
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1780
+
1737
1781
  # Convert class type to dict using DataClass wrapper
1738
1782
  if (isinstance(testing, type) and issubclass(testing, Testing)):
1739
1783
  _testing = DataClass(Testing).fromDataclass(testing).toDict()
@@ -1866,6 +1910,10 @@ class Application(Container, IApplication):
1866
1910
  - The method always returns the current Application instance.
1867
1911
  """
1868
1912
 
1913
+ # Prevent modification if the application has already been booted
1914
+ if self.__booted:
1915
+ raise OrionisValueError("Cannot modify configuration after application has been booted.")
1916
+
1869
1917
  # Convert class type to dict using DataClass wrapper
1870
1918
  if (isinstance(paths, type) and issubclass(paths, Paths)):
1871
1919
  _paths = DataClass(Paths).fromDataclass(paths).toDict()
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.639.0"
8
+ VERSION = "0.641.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.639.0
3
+ Version: 0.641.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
@@ -5,19 +5,19 @@ orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
5
5
  orionis/console/args/argument.py,sha256=QkdTrIYfG6CqDEMVBlQvNzRVHlBAcJOinVjq5Lz-wl8,20331
6
6
  orionis/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  orionis/console/base/command.py,sha256=tAO_EVy1aNWneNSKYYMAf9yDTfbvHAqSJnZZ6pOR4tE,9318
8
- orionis/console/base/scheduler.py,sha256=IKNhpI_lPbI8H3YruD9z7eNdjuqNYceaclx_Hr5BHfY,8065
8
+ orionis/console/base/scheduler.py,sha256=JoZdtyrVJiNzBoVEWUovHscqBxqw_fPPwaENIQc4Zp4,7644
9
9
  orionis/console/base/scheduler_event_listener.py,sha256=X2mZBAYLBCtLOH7QSrCEaLeJ5m8Hq5UtGxaWRRvWbfo,4421
10
10
  orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- orionis/console/commands/cache.py,sha256=iwdMdRLw8BAGkR-OcBB3JD9pOidC3jWT-W-DUrENywQ,3048
11
+ orionis/console/commands/__publisher__.py,sha256=xVFMVU4xrhmLK_ztou5UWJ2ONpzPc1fjjJufxnetej4,21371
12
+ orionis/console/commands/__workflow__.py,sha256=16fpHjkMmdVI9cCemADLqNz3U50oaLoVTapGdbigrYU,3095
13
+ orionis/console/commands/cache_clear.py,sha256=iwdMdRLw8BAGkR-OcBB3JD9pOidC3jWT-W-DUrENywQ,3048
12
14
  orionis/console/commands/help.py,sha256=VFIn3UqQm4pxwjfSQohVwKNpc7F-6XRcwSZQwDSLEaU,3739
13
- orionis/console/commands/log.py,sha256=qTiUhWMbEZFbWaxk4pVdWujkfq0TebiBUflsNDXoYJs,4060
15
+ orionis/console/commands/log_clear.py,sha256=qTiUhWMbEZFbWaxk4pVdWujkfq0TebiBUflsNDXoYJs,4060
14
16
  orionis/console/commands/make_command.py,sha256=EbTicRHGf7uZ78MSDwZpQMDTB0MvwATclWNTK4vbkZ4,6076
15
- orionis/console/commands/publisher.py,sha256=xVFMVU4xrhmLK_ztou5UWJ2ONpzPc1fjjJufxnetej4,21371
16
17
  orionis/console/commands/scheduler_list.py,sha256=Wtjy73fpcjI6GGsJg6BHWVUXItzHbY1QLEhryXpCLcs,4770
17
18
  orionis/console/commands/scheduler_work.py,sha256=iPTgP7gOmTPr__TltYQWiqbDXbCP2njuO_2fCzwmMuc,5778
18
19
  orionis/console/commands/test.py,sha256=LXtl918TmYhg0sjBiCfbsvaXUmCLqwCXTazmy7AJhlE,2445
19
20
  orionis/console/commands/version.py,sha256=0EEFOzzUMzH7DOULKmkHkDLt4D8k938FIkkV3iBQ-t8,3694
20
- orionis/console/commands/workflow.py,sha256=16fpHjkMmdVI9cCemADLqNz3U50oaLoVTapGdbigrYU,3095
21
21
  orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  orionis/console/contracts/base_command.py,sha256=UlDN41Ts0ulxM-B2kgeKNr9_gNv_0LCth_pon1os-8U,7617
23
23
  orionis/console/contracts/base_scheduler.py,sha256=RSxEW57MoMU3pXfliIrQw9WuMk95p-xHXi1yACp1qsU,7728
@@ -33,7 +33,7 @@ orionis/console/contracts/reactor.py,sha256=iT6ShoCutAWEeJzOf_PK7CGXi9TgrOD5tewH
33
33
  orionis/console/contracts/schedule.py,sha256=xtXgp4BPhvhg3YSM4mrIdbyoBdr4OJBi1gBM_kJN5UQ,13694
34
34
  orionis/console/contracts/schedule_event_listener.py,sha256=h06qsBxuEMD3KLSyu0JXdUDHlQW19BX9lA09Qrh2QXg,3818
35
35
  orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- orionis/console/core/reactor.py,sha256=BxnjYxtK-KvIldbl_dYBEKJYpH9a6yh8MhjPg2DwnWY,43910
36
+ orionis/console/core/reactor.py,sha256=1pog0n0T-CKzFZlGO_2E0cwNv1dprPVFnxsLzUZZE3c,43930
37
37
  orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  orionis/console/dumper/debug.py,sha256=p8uflSXeDJDrVM9mZY4JMYEus73Z6TsLnQQtgP0QUak,22427
39
39
  orionis/console/dynamic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -104,7 +104,7 @@ orionis/failure/contracts/handler.py,sha256=AeJfkJfD3hTkOIYAtADq6GnQfq-qWgDfUc7b
104
104
  orionis/failure/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
105
  orionis/failure/entities/throwable.py,sha256=1zD-awcuAyEtlR-L7V7ZIfPSF4GpXkf-neL5sXul7dc,1240
106
106
  orionis/foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
- orionis/foundation/application.py,sha256=lqVSAcKqlu9Pn_ulkEpkmxfd3_5nzkm1Twbq8Nzxx9E,91682
107
+ orionis/foundation/application.py,sha256=Xe8lA5dXLN9gTYtpcfK_09bu1oYOsIdzs16opErJlaE,94168
108
108
  orionis/foundation/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  orionis/foundation/config/startup.py,sha256=btqvryeIf9lLNQ9fBff7bJMrfraEY8qrWi4y_5YAR0Q,9681
110
110
  orionis/foundation/config/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -217,7 +217,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
217
217
  orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
218
218
  orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
219
219
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
220
- orionis/metadata/framework.py,sha256=sOy0KwTeysZ8n0GSmh5u2hXsJPkSENEtPd2T9RZzvT4,4089
220
+ orionis/metadata/framework.py,sha256=9JycIg_bqAbqiI4dgYCq__3Cn982ZTvVjr8asLkzHdA,4089
221
221
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
222
222
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
223
223
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -404,8 +404,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
404
404
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
405
405
  orionis/test/view/render.py,sha256=R55ykeRs0wDKcdTf4O1YZ8GDHTFmJ0IK6VQkbJkYUvo,5571
406
406
  orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
407
- orionis-0.639.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
408
- orionis-0.639.0.dist-info/METADATA,sha256=dr3B2ScppB4iVyMGR5b403-JEu7qmuTzCaZXTQjnnYY,4772
409
- orionis-0.639.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
410
- orionis-0.639.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
411
- orionis-0.639.0.dist-info/RECORD,,
407
+ orionis-0.641.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
408
+ orionis-0.641.0.dist-info/METADATA,sha256=FCsNt3V9b6ZZscnE-c54RK7AT0iRM_rRp7gJakViS3A,4772
409
+ orionis-0.641.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
410
+ orionis-0.641.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
411
+ orionis-0.641.0.dist-info/RECORD,,
File without changes
File without changes