orionis 0.515.0__py3-none-any.whl → 0.516.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.
@@ -4,9 +4,7 @@ from rich.table import Table
4
4
  from orionis.console.base.command import BaseCommand
5
5
  from orionis.console.contracts.schedule import ISchedule
6
6
  from orionis.console.exceptions import CLIOrionisRuntimeError
7
- from orionis.container.exceptions.exception import OrionisContainerException
8
7
  from orionis.foundation.contracts.application import IApplication
9
- from orionis.foundation.exceptions.runtime import OrionisRuntimeError
10
8
 
11
9
  class ScheduleListCommand(BaseCommand):
12
10
  """
@@ -112,10 +110,6 @@ class ScheduleListCommand(BaseCommand):
112
110
 
113
111
  except Exception as e:
114
112
 
115
- # If the exception is already a CLIOrionisRuntimeError or OrionisContainerException, re-raise it
116
- if isinstance(e, (OrionisRuntimeError, OrionisContainerException)):
117
- raise
118
-
119
113
  # Catch any unexpected exceptions and raise as a CLIOrionisRuntimeError
120
114
  raise CLIOrionisRuntimeError(
121
115
  f"An unexpected error occurred while listing the scheduled jobs: {e}"
@@ -125,7 +125,7 @@ class Event(IEvent):
125
125
  raise CLIOrionisValueError("Details must be a string or None.")
126
126
 
127
127
  # Validate that listener is an IScheduleEventListener instance if it is set
128
- if self.__listener is not None and not isinstance(self.__listener, IScheduleEventListener):
128
+ if self.__listener is not None and not issubclass(self.__listener, IScheduleEventListener):
129
129
  raise CLIOrionisValueError("Listener must implement IScheduleEventListener interface or be None.")
130
130
 
131
131
  # Construct and return an EventEntity with the current event's attributes
@@ -351,7 +351,7 @@ class Event(IEvent):
351
351
  """
352
352
 
353
353
  # Validate that the provided listener is an instance of IScheduleEventListener
354
- if not isinstance(listener, IScheduleEventListener):
354
+ if not issubclass(listener, IScheduleEventListener):
355
355
  raise CLIOrionisValueError("Listener must be an instance of IScheduleEventListener.")
356
356
 
357
357
  # Assign the listener to the event's internal listener attribute
@@ -931,7 +931,7 @@ class Scheduler(ISchedule):
931
931
 
932
932
  # If a listener is associated with the event, register it
933
933
  if entity.listener:
934
- self._setListener(signature, entity.listener)
934
+ self.setListener(signature, entity.listener)
935
935
 
936
936
  def setListener(
937
937
  self,
@@ -1378,13 +1378,13 @@ class Scheduler(ISchedule):
1378
1378
  for job in self.__jobs:
1379
1379
  # Append a dictionary with relevant job details to the events list
1380
1380
  events.append({
1381
- 'signature': job['signature'],
1382
- 'args': job['args'],
1383
- 'purpose': job['purpose'],
1384
- 'random_delay': job['random_delay'],
1385
- 'start_date': job['start_date'].strftime('%Y-%m-%d %H:%M:%S') if job['start_date'] else None,
1386
- 'end_date': job['end_date'].strftime('%Y-%m-%d %H:%M:%S') if job['end_date'] else None,
1387
- 'details': job['details']
1381
+ 'signature': job.signature,
1382
+ 'args': job.args,
1383
+ 'purpose': job.purpose,
1384
+ 'random_delay': job.random_delay,
1385
+ 'start_date': job.start_date.strftime('%Y-%m-%d %H:%M:%S') if job.start_date else None,
1386
+ 'end_date': job.end_date.strftime('%Y-%m-%d %H:%M:%S') if job.end_date else None,
1387
+ 'details': job.details
1388
1388
  })
1389
1389
 
1390
1390
  # Return the list of scheduled job details
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.515.0"
8
+ VERSION = "0.516.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.515.0
3
+ Version: 0.516.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
@@ -14,7 +14,7 @@ orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
14
14
  orionis/console/commands/cache.py,sha256=8DsYoRzSBLn0P9qkGVItRbo0R6snWBDBg0_Xa7tmVhs,2322
15
15
  orionis/console/commands/help.py,sha256=zfSw0pYaOnFN-_Ozdn4veBQDYMgSSDY10nPDCi-7tTY,3199
16
16
  orionis/console/commands/publisher.py,sha256=FUg-EUzK7LLXsla10ZUZro8V0Z5S-KjmsaSdRHSSGbA,21381
17
- orionis/console/commands/scheduler_list.py,sha256=6jVuHwVC33_0gXiXxVefyTvOj94gOZ2P5G-vwDAmF6U,5191
17
+ orionis/console/commands/scheduler_list.py,sha256=iPO-tc5qj-Q17lL_1MRSCaRov_o4GoQcnWTATLKPeLE,4826
18
18
  orionis/console/commands/scheduler_work.py,sha256=yHTbnDH1frAmyvPaUgn0a5q34Eym9QYMXdqYZWwodFs,6336
19
19
  orionis/console/commands/test.py,sha256=-EmQwFwMBuby3OI9HwqMIwuJzd2CGbWbOqmwrR25sOE,2402
20
20
  orionis/console/commands/version.py,sha256=SUuNDJ40f2uq69OQUmPQXJKaa9Bm_iVRDPmBd7zc1Yc,3658
@@ -79,9 +79,9 @@ orionis/console/output/enums/__init__.py,sha256=LAaAxg-DpArCjf_jqZ0_9s3p8899gntD
79
79
  orionis/console/output/enums/styles.py,sha256=6a4oQCOBOKMh2ARdeq5GlIskJ3wjiylYmh66tUKKmpQ,4053
80
80
  orionis/console/request/cli_request.py,sha256=7-sgYmNUCipuHLVAwWLJiHv0cJCDmsM1Lu9s2D8RIII,1498
81
81
  orionis/console/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
- orionis/console/tasks/event.py,sha256=AlOO--HNaUyZ5MXZsKSJJnQnLhZwqg52NvwsdSF8LEk,164395
82
+ orionis/console/tasks/event.py,sha256=l4J-HEPaj1mxB_PYQMgG9dRHUe01wUag8fKLLnR2N2M,164395
83
83
  orionis/console/tasks/listener.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
- orionis/console/tasks/schedule.py,sha256=RUw1NedN4HhX302GA3LL2iYupHrlnBw4oJ3A-75qFKw,58386
84
+ orionis/console/tasks/schedule.py,sha256=jhafp0Ve4SBEzjPF-KiFtytuzny_-1K0a6um96ev_xE,58358
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=NX9s158qw4HYWnSebD10NH2K96w6guzjg19E4cNeQvo,4109
242
+ orionis/metadata/framework.py,sha256=fWyRaPJyekqoEqSgvF_l6V8UQHuzMrGvl4w-oq2YRE8,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.515.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
418
+ orionis-0.516.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.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,,
564
+ orionis-0.516.0.dist-info/METADATA,sha256=8Vw84gKCm7mpEULZ7PuEbIi0aOz8Mlq9LrtsAgf-d4k,4801
565
+ orionis-0.516.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
566
+ orionis-0.516.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
567
+ orionis-0.516.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
568
+ orionis-0.516.0.dist-info/RECORD,,