kenenet 0.4.3__py3-none-any.whl → 0.4.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 +2 -2
- {kenenet-0.4.3.dist-info → kenenet-0.4.5.dist-info}/METADATA +2 -2
- kenenet-0.4.5.dist-info/RECORD +5 -0
- {kenenet-0.4.3.dist-info → kenenet-0.4.5.dist-info}/WHEEL +1 -1
- kenenet-0.4.3.dist-info/RECORD +0 -5
- {kenenet-0.4.3.dist-info → kenenet-0.4.5.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -36,7 +36,6 @@ def get_pos(key='f10', kill=False):
|
|
36
36
|
frame = inspect.currentframe().f_back
|
37
37
|
lineno = frame.f_lineno
|
38
38
|
_get_pos(key, kill)
|
39
|
-
# zhmiscellany.processing.start_daemon(target=_get_pos, args=(key, lineno, ))
|
40
39
|
|
41
40
|
def timer(clock=1):
|
42
41
|
if clock in timings:
|
@@ -148,12 +147,13 @@ def save_img(img, name='', reset=True, file='temp_screenshots'):
|
|
148
147
|
if isinstance(img, np.ndarray):
|
149
148
|
save_name = name + f'{time.time()}'
|
150
149
|
img = Image.fromarray(img)
|
151
|
-
img.save(
|
150
|
+
img.save(fr'{file}\{save_name}.png')
|
152
151
|
quick_print(f'Saved image as {save_name}', lineno)
|
153
152
|
else:
|
154
153
|
quick_print(f"Your img is not a fucking numpy array you twat, couldn't save {name}", lineno)
|
155
154
|
|
156
155
|
def load_audio(mp3_path):
|
156
|
+
from zhmiscellany._processing_supportfuncs import _ray_init_thread; _ray_init_thread.join()
|
157
157
|
return AudioSegment.from_mp3(mp3_path)
|
158
158
|
|
159
159
|
def play_audio(file_sound, range=(0.9, 1.1)):
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=d6IwZtpzd09ZIR5DrSQzxOemwi93nLEaJtzGxbrUMFw,6667
|
2
|
+
kenenet-0.4.5.dist-info/METADATA,sha256=_Fk1SarqmPxKL_HghN9y_SH1XZDR5fne9KShnDJ6P64,633
|
3
|
+
kenenet-0.4.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.4.5.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.4.5.dist-info/RECORD,,
|
kenenet-0.4.3.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=i2tGUhkG2TrjLH_qwlUvGfR6QqYuw6701kCgwDuQKkg,6652
|
2
|
-
kenenet-0.4.3.dist-info/METADATA,sha256=C4OfLA6xiwJ6duJXWonobxCJ-RtHJI41uTYrU0-UI4o,633
|
3
|
-
kenenet-0.4.3.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
4
|
-
kenenet-0.4.3.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.4.3.dist-info/RECORD,,
|
File without changes
|