speedy-utils 1.1.42__py3-none-any.whl → 1.1.44__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.
speedy_utils/__init__.py CHANGED
@@ -7,6 +7,13 @@ t = time.time()
7
7
 
8
8
  from .__imports import *
9
9
 
10
+ # Install rich traceback for better error messages
11
+ try:
12
+ from rich.traceback import install
13
+ install(show_locals=os.getenv('TRACEBACK_SHOW_LOCALS', 'True') == 'True')
14
+ except ImportError:
15
+ pass # rich is optional
16
+
10
17
  # Clock module
11
18
  from .common.clock import Clock, speedy_timer, timef
12
19