kenenet 0.5.9__py3-none-any.whl → 0.6.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.
kenenet/__init__.py CHANGED
@@ -76,8 +76,9 @@ class _VariableTracker:
76
76
  return f"<{type(value).__name__} object>"
77
77
 
78
78
  def _print_change(self, name, old, new, scope="Global"):
79
- timestamp = f"[{datetime.datetime.now().strftime('%H:%M:%S.%f')[:-3]}] " if _Config.SHOW_TIMESTAMPS else ""
80
- print(f"{timestamp}{scope} '{name}' changed from {self._format_value(old)} to {self._format_value(new)}")
79
+ frame = inspect.currentframe().f_back
80
+ lineno = frame.f_lineno
81
+ quick_print(f"{scope} '{name}' changed from {self._format_value(old)} -> {self._format_value(new)}", lineno)
81
82
 
82
83
  def _should_track(self, name):
83
84
  return not (name.startswith('_') and name not in ('__name__', '__file__')) and name not in _Config.EXCLUDED_NAMES
@@ -88,7 +89,9 @@ class _VariableTracker:
88
89
  self.global_vars = {name: value for name, value in module.__dict__.items() if self._should_track(name)}
89
90
  sys.settrace(_track_frame)
90
91
  self.active = True
91
- print(f"Variable tracking started at {datetime.datetime.now().strftime('%H:%M:%S.%f')[:-3]}")
92
+ frame = inspect.currentframe().f_back
93
+ lineno = frame.f_lineno
94
+ quick_print(f"Started debugging", lineno)
92
95
 
93
96
  def _stop_tracking(self):
94
97
  if not self.active: return
@@ -96,7 +99,9 @@ class _VariableTracker:
96
99
  self.frame_locals.clear()
97
100
  self.global_vars.clear()
98
101
  self.active = False
99
- print(f"Variable tracking stopped at {datetime.datetime.now().strftime('%H:%M:%S.%f')[:-3]}")
102
+ frame = inspect.currentframe().f_back
103
+ lineno = frame.f_lineno
104
+ quick_print(f"Stopped debugging", lineno)
100
105
 
101
106
  def _track_frame(frame, event, arg):
102
107
  tracker = _VariableTracker._get_instance()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.5.9
3
+ Version: 0.6.0
4
4
  Summary: dude what the fuck even is this package
5
5
  Home-page: https://www.youtube.com/@KiddyKene
6
6
  Author: kiddykene
@@ -0,0 +1,5 @@
1
+ kenenet/__init__.py,sha256=HJO0bt8-HQS9tz4eR6AlvLF8jOtygHnITBhCPW1d4dM,8328
2
+ kenenet-0.6.0.dist-info/METADATA,sha256=k8nNkFwqc8UCU6vV-Bnl_GNWinykkuwnihiPMpkIJZs,633
3
+ kenenet-0.6.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ kenenet-0.6.0.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.6.0.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=6n3xWsFNz0VvjmrfTb-Jk477KCyN8ecla8f32gcUr2U,8306
2
- kenenet-0.5.9.dist-info/METADATA,sha256=OK5Fwap_emuyXNCsD97-NHfqsLPQRR1okYo9v1P2YnY,633
3
- kenenet-0.5.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-0.5.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.5.9.dist-info/RECORD,,