orionis 0.502.0__py3-none-any.whl → 0.504.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.
@@ -11,7 +11,6 @@ from orionis.console.exceptions import CLIOrionisValueError
11
11
  from orionis.console.exceptions.cli_runtime_error import CLIOrionisRuntimeError
12
12
  from orionis.console.output.contracts.console import IConsole
13
13
  from orionis.console.output.contracts.executor import IExecutor
14
- from orionis.container.exceptions.exception import OrionisContainerException
15
14
  from orionis.foundation.contracts.application import IApplication
16
15
  from orionis.services.introspection.modules.reflection import ReflectionModule
17
16
  from orionis.services.log.contracts.log_service import ILogger
@@ -455,8 +454,12 @@ class Reactor(IReactor):
455
454
  # Parse the provided arguments using the command's ArgumentParser
456
455
  parsed_args = command.args.parse_args(args)
457
456
  except SystemExit:
458
- # Allow argparse to handle help/error messages and exit
459
- raise
457
+ # Raise a CLIOrionisRuntimeError with the help message included in the exception
458
+ raise CLIOrionisRuntimeError(
459
+ f"Failed to parse arguments for command '{command.signature}'.\n"
460
+ f"{command.args.format_help()}\n"
461
+ "Please check the command syntax and available options."
462
+ )
460
463
 
461
464
  # Convert the parsed arguments to a dictionary and return
462
465
  if isinstance(parsed_args, argparse.Namespace):
@@ -583,12 +586,6 @@ class Reactor(IReactor):
583
586
 
584
587
  except Exception as e:
585
588
 
586
- # Display the error message in the console (without timestamp)
587
- if isinstance(e, OrionisContainerException):
588
- pass
589
- elif isinstance(e, CLIOrionisRuntimeError):
590
- self.__console.error(f"An error occurred while executing command '{signature}': {e}", timestamp=False)
591
-
592
589
  # Log the error in the logger service
593
590
  self.__logger.error(f"Command '{signature}' execution failed: {e}")
594
591
 
@@ -677,9 +674,6 @@ class Reactor(IReactor):
677
674
 
678
675
  except Exception as e:
679
676
 
680
- # Display the error message in the console (without timestamp)
681
- self.__console.error(f"An error occurred while executing command '{signature}': {e}", timestamp=False)
682
-
683
677
  # Log the error in the logger service
684
678
  self.__logger.error(f"Command '{signature}' execution failed: {e}")
685
679
 
orionis/console/kernel.py CHANGED
@@ -103,7 +103,4 @@ class KernelCLI(IKernelCLI):
103
103
  except BaseException as e:
104
104
 
105
105
  # Catch any exceptions that occur during command handling
106
- self.__catch.exception(self, args, e)
107
-
108
- # Exit the process with a non-zero status code to indicate an error
109
- sys.exit(1)
106
+ self.__catch.exception(self, args, e)
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.502.0"
8
+ VERSION = "0.504.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -52,7 +52,7 @@ class UnitTest(IUnitTest):
52
52
  self.__app: IApplication = app
53
53
 
54
54
  # Storage path for test results
55
- self.__storage: Optional[str] = self.__app.path('storage_testing')
55
+ self.__storage: Optional[str] = self.__app.path('testing')
56
56
 
57
57
  # Configuration values (set via configure)
58
58
  self.__verbosity: Optional[int] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.502.0
3
+ Version: 0.504.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
@@ -1,7 +1,7 @@
1
1
  orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  orionis/app.py,sha256=b69fOzj2J8Aw5g0IldWZXixUDeeTO9vcHc_Njses9HU,603
3
3
  orionis/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- orionis/console/kernel.py,sha256=czEZQV-BcL9AV_mNppxCJEz56Hin5ejq1BtXZBSA3Ho,4150
4
+ orionis/console/kernel.py,sha256=KPFKnz5zkWytB0-UNdsV9t_1m2tyA6TLc4mDA2q8v5o,4042
5
5
  orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  orionis/console/args/argument.py,sha256=Is8Z8_kW4DvcK1nK1UU-sa6Pk0BeOdcRczCayW0ZVHc,20360
7
7
  orionis/console/args/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -28,7 +28,7 @@ orionis/console/contracts/listener.py,sha256=tXp2kTVEaqLRWZC6BY8xqj3JP0xpDDx4btP
28
28
  orionis/console/contracts/reactor.py,sha256=Xeq7Zrw6WE5MV_XOQfiQEchAFbb6-0TjLpjWOxYW--g,4554
29
29
  orionis/console/contracts/schedule.py,sha256=eGjcOH7kgdf0fWDZRfOFUQsIx4E8G38ayX5JwpkpN8E,4977
30
30
  orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- orionis/console/core/reactor.py,sha256=Lwk6u0lO1n-E74Kyiw0xYwFMbQoJn7uszGoN9RNHS-c,30597
31
+ orionis/console/core/reactor.py,sha256=FMf64avmcuC1JtdjC8LLrgPuhp_Nau9Q_LcLl6JJ6DM,30278
32
32
  orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  orionis/console/dumper/dump.py,sha256=CATERiQ6XuIrKQsDaWcVxzTtlAJI9qLJX44fQxEX8ws,22443
34
34
  orionis/console/dumper/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -218,7 +218,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
218
218
  orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
219
219
  orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
220
220
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
221
- orionis/metadata/framework.py,sha256=wSd5L2U5VAOGfT4ljkhanx2mVDX86zHBEkpTDRpOzCs,4109
221
+ orionis/metadata/framework.py,sha256=AYMbt2P-GM7ooLNwbP6C8foJqalDU8Fe9MK2UqIr8PA,4109
222
222
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
223
223
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
224
224
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -360,7 +360,7 @@ orionis/test/contracts/render.py,sha256=wpDQzUtT0r8KFZ7zPcxWHXQ1EVNKxzA_rZ6ZKUcZ
360
360
  orionis/test/contracts/test_result.py,sha256=SNXJ2UerkweYn7uCT0i0HmMGP0XBrL_9KJs-0ZvIYU4,4002
361
361
  orionis/test/contracts/unit_test.py,sha256=getqaBoadQT_wh_V6aTQvm0yx9IgbVrE9EEOD8b031g,8031
362
362
  orionis/test/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
363
- orionis/test/core/unit_test.py,sha256=ElXUoKivG7_-y834dZurJLcrEIP95t-S5TdHHq3QFP4,64761
363
+ orionis/test/core/unit_test.py,sha256=vXSMRRGARAseNX9ong79AI-l8zefu03anoFinXeuhzA,64753
364
364
  orionis/test/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
365
365
  orionis/test/entities/result.py,sha256=IMAd1AiwOf2z8krTDBFMpQe_1PG4YJ5Z0qpbr9xZwjg,4507
366
366
  orionis/test/enums/__init__.py,sha256=M3imAgMvKFTKg55FbtVoY3zxj7QRY9AfaUWxiSZVvn4,66
@@ -394,7 +394,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
394
394
  orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
395
395
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
396
396
  orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
397
- orionis-0.502.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
397
+ orionis-0.504.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
398
398
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
399
399
  tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
400
400
  tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -541,8 +541,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
541
541
  tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
542
542
  tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
543
543
  tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
544
- orionis-0.502.0.dist-info/METADATA,sha256=nz2AmjvPt8rRefcsklVaCZ4ffqJVkYc4AXTmV6NeUwk,4801
545
- orionis-0.502.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
546
- orionis-0.502.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
547
- orionis-0.502.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
548
- orionis-0.502.0.dist-info/RECORD,,
544
+ orionis-0.504.0.dist-info/METADATA,sha256=ZM434O0Rv0eXh9QC4jQvPXabW2jM6BwmZmOGUrgSJE0,4801
545
+ orionis-0.504.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
546
+ orionis-0.504.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
547
+ orionis-0.504.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
548
+ orionis-0.504.0.dist-info/RECORD,,