kenenet 0.5.7__py3-none-any.whl → 0.5.8__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 +6 -17
- {kenenet-0.5.7.dist-info → kenenet-0.5.8.dist-info}/METADATA +1 -1
- kenenet-0.5.8.dist-info/RECORD +5 -0
- kenenet-0.5.7.dist-info/RECORD +0 -5
- {kenenet-0.5.7.dist-info → kenenet-0.5.8.dist-info}/WHEEL +0 -0
- {kenenet-0.5.7.dist-info → kenenet-0.5.8.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -143,29 +143,18 @@ def track_frame(frame, event, arg):
|
|
143
143
|
# PUBLIC API
|
144
144
|
# ==========================================================================
|
145
145
|
|
146
|
-
debug_mode = False # Global variable to track if debugging is enabled
|
147
|
-
|
148
|
-
|
149
|
-
def track_variables():
|
150
|
-
caller_frame = inspect.currentframe().f_back
|
151
|
-
module_name = caller_frame.f_globals['__name__']
|
152
|
-
tracker = VariableTracker.get_instance()
|
153
|
-
tracker.start_tracking(module_name)
|
154
|
-
caller_frame.f_trace = track_frame
|
155
|
-
|
156
|
-
|
157
|
-
def stop_tracking():
|
158
|
-
VariableTracker.get_instance().stop_tracking()
|
159
|
-
|
160
|
-
|
161
146
|
def debug():
|
162
147
|
global debug_mode
|
163
148
|
if not debug_mode:
|
164
149
|
debug_mode = True
|
165
|
-
|
150
|
+
caller_frame = inspect.currentframe().f_back
|
151
|
+
module_name = caller_frame.f_globals['__name__']
|
152
|
+
tracker = VariableTracker.get_instance()
|
153
|
+
tracker.start_tracking(module_name)
|
154
|
+
caller_frame.f_trace = track_frame
|
166
155
|
else:
|
167
156
|
debug_mode = False
|
168
|
-
stop_tracking()
|
157
|
+
VariableTracker.get_instance().stop_tracking()
|
169
158
|
|
170
159
|
def pp(msg='caca', subdir=None, pps=3):
|
171
160
|
import os, subprocess
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=ns2VCwN8GcUMfZ83Mb_v7Dxaq-3O2LnjCC0Lki9kGhI,8823
|
2
|
+
kenenet-0.5.8.dist-info/METADATA,sha256=j7LXBBf4u8DJNOLv6zuNpCiKs-CbKaMY6UejBQyvkzY,633
|
3
|
+
kenenet-0.5.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.5.8.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.5.8.dist-info/RECORD,,
|
kenenet-0.5.7.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=ADgTAhQmBqHkgnGJ-FanKu7RVAW2f5nwST-C5KCvygs,8981
|
2
|
-
kenenet-0.5.7.dist-info/METADATA,sha256=yxh3maVucwATfjITkSJ6CVUVpep1ulmjlzKAswrsygE,633
|
3
|
-
kenenet-0.5.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.5.7.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.5.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|