orionis 0.645.0__py3-none-any.whl → 0.646.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.
@@ -615,25 +615,44 @@ class Console(IConsole):
615
615
  print()
616
616
 
617
617
  # Create a custom Rich theme for styling the dump output
618
- custom_theme = Theme({
619
- "dump.index": "bold bright_blue",
620
- "dump.type": "bold green",
621
- "dump.rule": "bright_black",
622
- })
623
- console = RichConsole(theme=custom_theme, record=True)
618
+ console = RichConsole(
619
+ theme=Theme({
620
+ "dump.index": "bold bright_blue",
621
+ "dump.type": "bold green",
622
+ "dump.rule": "bright_black",
623
+ }),
624
+ record=True
625
+ )
624
626
  width = console.size.width
625
627
 
626
- # Retrieve caller frame information for header display
627
- frame = inspect.currentframe()
628
- if not frame or not frame.f_back:
629
- return None
630
- caller = inspect.getframeinfo(frame.f_back)
631
- file_name = os.path.relpath(caller.filename, os.getcwd())
632
- line = line_number or caller.lineno
633
- module = module_path or os.path.splitext(file_name)[0].replace(os.sep, ".")
628
+ # If no module_path or line_number provided, get from caller
629
+ if not module_path or not line_number:
630
+
631
+ # Use inspect to get the caller's frame information
632
+ caller_frame = inspect.currentframe()
633
+
634
+ # If the frame is available, navigate back to the caller's frame
635
+ if caller_frame is not None:
636
+
637
+ # Go back two frames to get the caller of the dump method
638
+ caller_frame = caller_frame.f_back.f_back
639
+
640
+ # If caller_frame is still valid, extract module and line number
641
+ if caller_frame is not None:
642
+
643
+ # If module_path or line_number not provided, get from caller
644
+ if not module_path:
645
+ module_path = caller_frame.f_globals.get("__name__", "unknown")
646
+ if not line_number:
647
+ line_number = caller_frame.f_lineno
648
+ else:
649
+
650
+ #fallback if frame info is unavailable
651
+ module_path = "unknown"
652
+ line_number = '?'
634
653
 
635
654
  # Print header with module and line information
636
- header = f"🐞 [white]Module([/white][bold blue]{module}[/bold blue][white]) [/white][grey70]#{line}[/grey70]"
655
+ header = f"🐞 [white]Module([/white][bold blue]{module_path}[/bold blue][white]) [/white][grey70]#{line_number}[/grey70]"
637
656
  console.print(header)
638
657
 
639
658
  # Iterate over each argument and display it in a styled panel
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.645.0"
8
+ VERSION = "0.646.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -14,9 +14,9 @@ class Dumper(Facade):
14
14
  Returns
15
15
  -------
16
16
  str
17
- The string "x-orionis.console.contracts.debug.IDebug", which is the binding key
17
+ The string "x-orionis.console.contracts.dumper.IDumper", which is the binding key
18
18
  used to identify and resolve the dumper service from the service container.
19
19
  """
20
20
 
21
21
  # Return the unique binding key for the dumper service in the container
22
- return "x-orionis.console.contracts.debug.IDebug"
22
+ return "x-orionis.console.contracts.dumper.IDumper"
@@ -1,6 +1,6 @@
1
- from orionis.console.contracts.dumper import IDebug
1
+ from orionis.console.contracts.dumper import IDumper
2
2
 
3
- class Dumper(IDebug):
3
+ class Dumper(IDumper):
4
4
  """
5
5
  A facade class that implements the IDebug interface for debugging operations.
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.645.0
3
+ Version: 0.646.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
@@ -58,7 +58,7 @@ orionis/console/fluent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
58
58
  orionis/console/fluent/command.py,sha256=0jyhB45LIjDS7nkjNhkkvEXEzdOBmT49qKIooYY_DbI,8261
59
59
  orionis/console/fluent/event.py,sha256=RM6Aaz-2MYQg4RWxYdr6oBNaAjNVp9DE_tI5iwl2mAk,166672
60
60
  orionis/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
- orionis/console/output/console.py,sha256=5j8Cr67dZWvxBpeJS2cOXR1UpjE-rYKAD0o10olPumM,23463
61
+ orionis/console/output/console.py,sha256=8gxl0gfYyxAKt9rdkMjJU71CdTn84yvzOWbtIF3u0EE,24215
62
62
  orionis/console/output/executor.py,sha256=uQjFPOlyZLFj9pcyYPugCqxwJog0AJgK1OcmQH2ELbw,7314
63
63
  orionis/console/request/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
64
  orionis/console/request/cli_request.py,sha256=lO7088xlVK1VP-NhCIgAo7qXGzCW3nXVOJag43fUv20,13207
@@ -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=L0N1XstaoGMEV58t5NpJ9fhvVLtM0N_tkYDqkRBzTuo,4089
220
+ orionis/metadata/framework.py,sha256=XphuxNQoSZqA8ck6iU8PZcyzDR4T30UqQ9fGooaId6c,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
@@ -317,8 +317,8 @@ orionis/support/facades/console.py,sha256=s0HBZ3F0KCK6D4W6EZNdDVCikTWXlhrIMQquj_
317
317
  orionis/support/facades/console.pyi,sha256=nWrYF-N5BIHbOSU7lAICb5KKrpzMX0QC7go3e54bLUA,1275
318
318
  orionis/support/facades/directory.py,sha256=85ho4t9APMULBtJ58MPl-rRit9ub48XpYWPzEjLU3_8,946
319
319
  orionis/support/facades/directory.pyi,sha256=3WnIpvLMunTgzR5un49XzAkqOKkOtkrVko34SNJVcAY,592
320
- orionis/support/facades/dumper.py,sha256=oh9L3s-526Lk7l19sRniyCeCzzv-ConqC98FO_oIXsw,900
321
- orionis/support/facades/dumper.pyi,sha256=ELzP_jY2RKHcQtjwjH56H2-P-ro9U-pSUsR_lBxlTZo,509
320
+ orionis/support/facades/dumper.py,sha256=Rv1O8UONZ4qoPNPh4j-9pBaLmnJxt0pardzZpYapXy4,904
321
+ orionis/support/facades/dumper.pyi,sha256=4yQmFu3lPwRqXdSWZ_IP8GyCihrPBKPTqA988PXmQ3Q,511
322
322
  orionis/support/facades/executor.py,sha256=276MKqXsvrW947SvSzEcl8wleAtsjxhVq_r8FcySGH4,1061
323
323
  orionis/support/facades/executor.pyi,sha256=JS0h8ddYD62o79yXL5UzeZmPWOXNasyMgXKL8ZCOkBE,547
324
324
  orionis/support/facades/inspire.py,sha256=oGPMP_mNEmQRbPx7W-TwvW_xwbn4c04rHzu_ivgVKdw,964
@@ -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.645.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
408
- orionis-0.645.0.dist-info/METADATA,sha256=MXLWEwJdR0UwrfF6UR4RLdF8vXKWL6TKhhkJytiSQhc,4772
409
- orionis-0.645.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
410
- orionis-0.645.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
411
- orionis-0.645.0.dist-info/RECORD,,
407
+ orionis-0.646.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
408
+ orionis-0.646.0.dist-info/METADATA,sha256=9jRYiy2_lbo_Dzf0iAtD0hFgVvg1sSSDSGbzER3mjv0,4772
409
+ orionis-0.646.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
410
+ orionis-0.646.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
411
+ orionis-0.646.0.dist-info/RECORD,,