kenenet 0.5.4__py3-none-any.whl → 0.5.5__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
@@ -1,10 +1,10 @@
1
1
  import inspect, sys, zhmiscellany, keyboard, mss, time, linecache, types, 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 = None
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,16 +143,25 @@ def track_frame(frame, event, arg):
143
143
  # PUBLIC API
144
144
  # ==========================================================================
145
145
 
146
- def debug():
146
+
147
+ def start_trace():
147
148
  caller_frame = inspect.currentframe().f_back
148
149
  module_name = caller_frame.f_globals['__name__']
149
150
  tracker = VariableTracker.get_instance()
150
151
  tracker.start_tracking(module_name)
151
152
  caller_frame.f_trace = track_frame
152
153
 
153
-
154
- def stop_debug():
154
+ def end_trace():
155
155
  VariableTracker.get_instance().stop_tracking()
156
+
157
+ def debug():
158
+ global debug_mode
159
+ if not debug_mode:
160
+ debug_mode = True
161
+ start_trace()
162
+ else:
163
+ debug_mode = False
164
+ end_trace()
156
165
 
157
166
  def pp(msg='caca', subdir=None, pps=3):
158
167
  import os, subprocess
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.5.4
3
+ Version: 0.5.5
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=GtOqZSuMhBCe-yD44-H1CGZ5FI1oquvCXowv3-GwKd8,8891
2
+ kenenet-0.5.5.dist-info/METADATA,sha256=ErNyvBrwaNUKjMvufOQW7R_GvgYccy2SWDIdEYxgNpg,633
3
+ kenenet-0.5.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ kenenet-0.5.5.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.5.5.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=GS824qMEe9UAtIhawdibaE7w1vAgh99xjTcRytwnt7A,8678
2
- kenenet-0.5.4.dist-info/METADATA,sha256=YisdJRTL7i5prYfL02AHZ1iZCww5vLDyLycZGVGhflM,633
3
- kenenet-0.5.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-0.5.4.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.5.4.dist-info/RECORD,,