orionis 0.125.0__py3-none-any.whl → 0.128.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.125.0"
8
+ VERSION = "0.128.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -370,19 +370,9 @@ def app_context():
370
370
 
371
371
  def app_booted():
372
372
  """
373
- Context manager for creating an instance of the Orionis application.
374
-
375
- This function initializes the Orionis application with a new container,
376
- ensuring that the application is properly set up before use.
373
+ Check if the application has been booted.
377
374
 
378
- Yields
379
- ------
380
- Application
381
- The initialized Orionis application instance.
382
-
383
- Raises
384
- ------
385
- RuntimeError
386
- If the application has not been properly initialized.
375
+ Returns:
376
+ bool: True if the application has been booted, False otherwise.
387
377
  """
388
378
  return Application.booted
@@ -29,10 +29,19 @@ def app(concrete: Any = None):
29
29
  If `concrete` is not bound to the container.
30
30
  """
31
31
  if not app_booted():
32
- Console.error("The application context is invalid. Use <with app_context() as cxt:> or ensure that the application is running before using the facades.")
33
- raise SystemExit(1)
34
32
 
35
- # In
33
+ # Error message
34
+ message = "The application context is invalid. Use <with app_context() as cxt:> or ensure that the application is running before using the facades."
35
+
36
+ # Print error in console
37
+ Console.newLine()
38
+ Console.error(message)
39
+ Console.newLine()
40
+
41
+ # Raise exception
42
+ raise RuntimeError(message)
43
+
44
+ # Call the container instance
36
45
  container = Container()
37
46
 
38
47
  # If concrete is provided (not None), attempt to resolve it from the container
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: orionis
3
- Version: 0.125.0
3
+ Version: 0.128.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=9JFZWKPoTnmIGF8BNxYLNtUU_BBJvYWNv_wYz8bZRTA,1387
3
+ orionis/framework.py,sha256=72o2-TycG9BiEoJTZc1wEWCuamXfdtWhNvdM5w5zgDk,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/application.py,sha256=tHaNSQFzz9c1JXdXflwaJomzldCVE3FTQMClV7GkX3E,14155
70
+ orionis/luminate/application.py,sha256=MDU4Y8czg6B3OIjaejkdpFOdPTfFI-jIygTdd_jakY4,13867
71
71
  orionis/luminate/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
72
  orionis/luminate/config/app.py,sha256=7teuVPuaV2ao0M5Bv-jhSgjEwb9DtVwde2saTRmYru4,1737
73
73
  orionis/luminate/config/auth.py,sha256=CG8F0pfVjKz4DY3d1Wi7gscdhnp4TT-Q8SJ2sdsHh18,523
@@ -102,7 +102,7 @@ orionis/luminate/container/container.py,sha256=kg1zrvlMrzYCrORbDZ12JVZJ_z81gLDUp
102
102
  orionis/luminate/container/exception.py,sha256=ap1SqYEjQEEHXJJTNmL7V1jrmRjgT5_7geZ95MYkhMA,1691
103
103
  orionis/luminate/container/types.py,sha256=BDcXN0__voRNHZ5Gr5dF0sWIYAQyNk4TxAwILBWyDAA,1735
104
104
  orionis/luminate/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
- orionis/luminate/facades/app_facade.py,sha256=7R2J0c2SOpLYiixwm1tHt2RrOKP50nxnv56c5mb5QsA,1509
105
+ orionis/luminate/facades/app_facade.py,sha256=yJejGy_Q1jU6kEGg6QgG6gHsUd08pBbXvyDF5PzR52k,1715
106
106
  orionis/luminate/facades/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
107
  orionis/luminate/facades/commands/commands_facade.py,sha256=eY1Y0BDRWHQAUoUg6YjCDkty4dj2Hbq_suQdKYu3f_Y,1568
108
108
  orionis/luminate/facades/commands/scheduler_facade.py,sha256=f4OYlWywSzqBYbQBQlBlMd-wZ8RAl5dKsiFAjpzcqEo,1439
@@ -174,9 +174,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
174
174
  tests/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
175
175
  tests/tools/class_example.py,sha256=dIPD997Y15n6WmKhWoOFSwEldRm9MdOHTZZ49eF1p3c,1056
176
176
  tests/tools/test_reflection.py,sha256=bhLQ7VGVod4B8sv-rW9AjnOumvaBVsoxieA3sdoM2yM,5244
177
- orionis-0.125.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
178
- orionis-0.125.0.dist-info/METADATA,sha256=eL0gTI3Z3jr6hQGQZSYWmjbHQeOXFhmJ98kc0HSIlZg,2979
179
- orionis-0.125.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
180
- orionis-0.125.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
181
- orionis-0.125.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
182
- orionis-0.125.0.dist-info/RECORD,,
177
+ orionis-0.128.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
178
+ orionis-0.128.0.dist-info/METADATA,sha256=TL_Dz3tD1cFERsN_YIPuf2pIRcatm2Jo_Ftsv-HkS0U,2979
179
+ orionis-0.128.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
180
+ orionis-0.128.0.dist-info/entry_points.txt,sha256=eef1_CVewfokKjrGBynXa06KabSJYo7LlDKKIKvs1cM,53
181
+ orionis-0.128.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
182
+ orionis-0.128.0.dist-info/RECORD,,