kenenet 0.5.1__py3-none-any.whl → 0.5.3__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 +18 -12
- {kenenet-0.5.1.dist-info → kenenet-0.5.3.dist-info}/METADATA +1 -1
- kenenet-0.5.3.dist-info/RECORD +5 -0
- kenenet-0.5.1.dist-info/RECORD +0 -5
- {kenenet-0.5.1.dist-info → kenenet-0.5.3.dist-info}/WHEEL +0 -0
- {kenenet-0.5.1.dist-info → kenenet-0.5.3.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import sys, zhmiscellany, keyboard, mss, time, os, random, pyperclip, inspect, datetime, atexit
|
2
2
|
import numpy as np
|
3
3
|
from PIL import Image
|
4
|
-
global timings, ospid
|
5
4
|
from pydub import AudioSegment
|
6
5
|
from pydub.playback import play
|
7
|
-
ospid
|
6
|
+
global timings, ospid, debug_mode
|
7
|
+
ospid, debug_mode = None, False
|
8
8
|
timings = {}
|
9
9
|
|
10
10
|
def quick_print(message, l=None):
|
@@ -143,15 +143,21 @@ def track_frame(frame, event, arg):
|
|
143
143
|
# PUBLIC API
|
144
144
|
# ==========================================================================
|
145
145
|
|
146
|
-
def
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
146
|
+
def debug():
|
147
|
+
global debug_mode
|
148
|
+
if not debug_mode:
|
149
|
+
debug_mode = True
|
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
|
+
if debug_mode:
|
156
|
+
debug_mode = False
|
157
|
+
VariableTracker.get_instance().stop_tracking()
|
158
|
+
|
159
|
+
|
160
|
+
def stop_debug():
|
155
161
|
VariableTracker.get_instance().stop_tracking()
|
156
162
|
|
157
163
|
def pp(msg='caca', subdir=None, pps=3):
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=PnVfIbzwnhkI4Q22WiW2UtGWNI3O_GrqEM2ppP-YYxs,8880
|
2
|
+
kenenet-0.5.3.dist-info/METADATA,sha256=DuuL8O7OOoAk7eG0anRjuLUd8fYpH_XNx0WAc4wgfKs,633
|
3
|
+
kenenet-0.5.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.5.3.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.5.3.dist-info/RECORD,,
|
kenenet-0.5.1.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=AsXM-b-tQmk1xct78gaUsPJMgOfzG_bX4MCPoUqauPQ,8691
|
2
|
-
kenenet-0.5.1.dist-info/METADATA,sha256=sjWvuaThONKGgD2T3MYbmT-_tJwA9tc_4o3fq0AcQEE,633
|
3
|
-
kenenet-0.5.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.5.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.5.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|