orionis 0.105.0__py3-none-any.whl → 0.111.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/framework.py CHANGED
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.105.0"
8
+ VERSION = "0.111.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
orionis/luminate/app.py CHANGED
@@ -1,18 +1,12 @@
1
1
  from typing import Any, Callable
2
2
  from orionis.contracts.foundation.i_bootstraper import IBootstrapper
3
- from orionis.luminate.console.base.command import BaseCommand
3
+ from orionis.luminate.console.output.console import Console
4
4
  from orionis.luminate.container.container import Container
5
5
  from orionis.luminate.foundation.config.config_bootstrapper import ConfigBootstrapper
6
6
  from orionis.luminate.foundation.console.command_bootstrapper import CommandsBootstrapper
7
7
  from orionis.luminate.foundation.environment.environment_bootstrapper import EnvironmentBootstrapper
8
8
  from orionis.luminate.foundation.providers.service_providers_bootstrapper import ServiceProvidersBootstrapper
9
9
  from orionis.luminate.patterns.singleton import SingletonMeta
10
- from orionis.luminate.providers.commands.reactor_commands_service_provider import ReactorCommandsServiceProvider
11
- from orionis.luminate.providers.commands.scheduler_provider import ScheduleServiceProvider
12
- from orionis.luminate.providers.environment.environment__service_provider import EnvironmentServiceProvider
13
- from orionis.luminate.providers.config.config_service_provider import ConfigServiceProvider
14
- from orionis.luminate.providers.files.paths_provider import PathResolverProvider
15
- from orionis.luminate.providers.log.log_service_provider import LogServiceProvider
16
10
  from orionis.luminate.providers.service_provider import ServiceProvider
17
11
 
18
12
  class Application(metaclass=SingletonMeta):
@@ -64,7 +58,10 @@ class Application(metaclass=SingletonMeta):
64
58
  # Initialize the application container
65
59
  self.container = container
66
60
  self.container.instance(container)
67
- self._boot()
61
+ try:
62
+ self._boot()
63
+ except Exception as e:
64
+ Console.exception(e)
68
65
 
69
66
  def isBooted(self) -> bool:
70
67
  """
@@ -207,7 +204,7 @@ class Application(metaclass=SingletonMeta):
207
204
  """
208
205
  self._bootServices()
209
206
  self._beforeBootstrapProviders()
210
- self._bootstraping()
207
+ self._bootstrapping()
211
208
  self._afterBootstrapProviders()
212
209
  self._loadCommands()
213
210
  self._booted = True
@@ -247,7 +244,7 @@ class Application(metaclass=SingletonMeta):
247
244
  _environment_provider.register()
248
245
  _environment_provider.boot()
249
246
 
250
- def _bootstraping(self):
247
+ def _bootstrapping(self):
251
248
  """
252
249
  Loads configuration, commands, environment variables, and other bootstrappers.
253
250
 
@@ -75,7 +75,7 @@ class Container(IContainer):
75
75
  If the service is already registered.
76
76
  """
77
77
  if self.has(obj):
78
- raise OrionisContainerValueError("The service is already registered in the container.")
78
+ raise OrionisContainerValueError(f"The service ({str(obj)}) is already registered in the container.")
79
79
 
80
80
  def _ensureIsCallable(self, concrete: Callable[..., Any]) -> None:
81
81
  """
@@ -10,9 +10,6 @@ class EnvironmentServiceProvider(ServiceProvider):
10
10
  """
11
11
  Registers services or bindings into the given container.
12
12
  """
13
- if not self.app.bound(PathResolverService):
14
- self.app.singleton(PathResolverService)
15
-
16
13
  self._container_id = self.app.singleton(EnvironmentService)
17
14
 
18
15
  def boot(self) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: orionis
3
- Version: 0.105.0
3
+ Version: 0.111.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,6 +1,6 @@
1
1
  orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  orionis/cli_manager.py,sha256=0bM-hABXJSoPGuvEgnqeaj9qcLP8VjTQ3z9Mb0TSEUI,1381
3
- orionis/framework.py,sha256=bk-HxUFwZ8MRaZjsxSEi-aWil4sP52EFlHTRKODFQ30,1387
3
+ orionis/framework.py,sha256=LJ4bB-pQZajXH743nG2PW3jk3E59MsEaUCkk_24X8Zk,1387
4
4
  orionis/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  orionis/contracts/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  orionis/contracts/config/i_config.py,sha256=rbeojO2gm8XhSXIPY8EnUt4e0wO633OKF9Nx_tN5y60,785
@@ -67,7 +67,7 @@ orionis/installer/installer_manager.py,sha256=Hb6T0bmSl39T30maY-nUWkrLhG77JdrKe4
67
67
  orionis/installer/installer_output.py,sha256=LeKxzuXpnHOKbKpUtx3tMGkCi2bGcPV1VNnfBxwfxUU,7161
68
68
  orionis/installer/installer_setup.py,sha256=c2HtVklSa-2_-YVonc7fwtoK-RTDqBS2Ybvbekgfqtc,6970
69
69
  orionis/luminate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
- orionis/luminate/app.py,sha256=iLTVHV0NYHLKgpttka4I4pGclCnlKPFjAiyP6zFqk8I,12517
70
+ orionis/luminate/app.py,sha256=CT_d7yKeYvCSZw09Lj-8muZM87g2sfOs7frk3u2BYBs,12027
71
71
  orionis/luminate/app_context.py,sha256=se2xpsGoy_drcuOROC7OHaIAN5Yd0kbm5V1zzsxxyQc,996
72
72
  orionis/luminate/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  orionis/luminate/config/app.py,sha256=7teuVPuaV2ao0M5Bv-jhSgjEwb9DtVwde2saTRmYru4,1737
@@ -99,7 +99,7 @@ orionis/luminate/console/output/console.py,sha256=khlnCmhGW3Iu2YYO8GG7YLtnLeqysy
99
99
  orionis/luminate/console/output/executor.py,sha256=0_6AGM1vE5umdpVVogQUE5eW9cu5UUQwc-ZvuccTI8E,3362
100
100
  orionis/luminate/console/output/progress_bar.py,sha256=ssi8Drryr-shl7OxweTgGOhvRvAlCVxjBGm1L1qyO84,3089
101
101
  orionis/luminate/console/output/styles.py,sha256=2e1_FJdNpKaVqmdlCx-udzTleH_6uEFE9_TjH7T1ZUk,3696
102
- orionis/luminate/container/container.py,sha256=FFviW62whQwXVsvFCGnA6KJ1ynYckZUw3MGrizxYXLI,16992
102
+ orionis/luminate/container/container.py,sha256=kg1zrvlMrzYCrORbDZ12JVZJ_z81gLDUpfLsAjxRgpU,17006
103
103
  orionis/luminate/container/exception.py,sha256=ap1SqYEjQEEHXJJTNmL7V1jrmRjgT5_7geZ95MYkhMA,1691
104
104
  orionis/luminate/container/types.py,sha256=BDcXN0__voRNHZ5Gr5dF0sWIYAQyNk4TxAwILBWyDAA,1735
105
105
  orionis/luminate/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -138,7 +138,7 @@ orionis/luminate/providers/commands/scheduler_provider.py,sha256=owOzdGIZmkeTFJQ
138
138
  orionis/luminate/providers/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
139
139
  orionis/luminate/providers/config/config_service_provider.py,sha256=NLKB3Vcu4kqZ0WyeImMG3CsclSu_P4aWs6yXitcv474,659
140
140
  orionis/luminate/providers/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
141
- orionis/luminate/providers/environment/environment__service_provider.py,sha256=-A9QlyD-mlQJsRfDr0IEudOVp0CgTgir9y1Dw8ERY6I,915
141
+ orionis/luminate/providers/environment/environment__service_provider.py,sha256=2BsofUJzU0_Z8FG7BDVNco4httxxY_ifu-qe-L1okUs,807
142
142
  orionis/luminate/providers/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
143
143
  orionis/luminate/providers/files/paths_provider.py,sha256=bZVuOVn44ysE_NPupxe9xZPP0D3ay5Ztdnsbi-Fv43o,712
144
144
  orionis/luminate/providers/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -175,9 +175,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
175
175
  tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
176
176
  tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
177
177
  tests/tools/test_reflection.py,sha256=bhLQ7VGVod4B8sv-rW9AjnOumvaBVsoxieA3sdoM2yM,5244
178
- orionis-0.105.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
179
- orionis-0.105.0.dist-info/METADATA,sha256=_QXOAmotcAZJFwT9Kvie4EQhymh1ja8S_bCrzfZS2wg,2979
180
- orionis-0.105.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
181
- orionis-0.105.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
182
- orionis-0.105.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
183
- orionis-0.105.0.dist-info/RECORD,,
178
+ orionis-0.111.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
179
+ orionis-0.111.0.dist-info/METADATA,sha256=AftUlzF4B0CrF3exdG4h1AcAGAIQ91bkbJ7jNGuZZNI,2979
180
+ orionis-0.111.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
181
+ orionis-0.111.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
182
+ orionis-0.111.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
183
+ orionis-0.111.0.dist-info/RECORD,,