kenenet 0.4.3__py3-none-any.whl → 0.4.6__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
@@ -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:
@@ -134,26 +133,26 @@ def pp(msg='caca', subdir=None, pps=3):
134
133
 
135
134
  def save_img(img, name='', reset=True, file='temp_screenshots'):
136
135
  global ospid
137
- if ospid is None:
138
- if os.path.exists(file):
139
- if reset:
140
- zhmiscellany.fileio.empty_directory(file)
141
- quick_print(f'Cleaned folder {file}')
142
- else:
143
- quick_print(f'New folder created {file}')
144
- zhmiscellany.fileio.create_folder(file)
136
+ if os.path.exists(file):
137
+ if reset and ospid is None:
138
+ zhmiscellany.fileio.empty_directory(file)
139
+ quick_print(f'Cleaned folder {file}')
140
+ else:
141
+ quick_print(f'New folder created {file}')
142
+ zhmiscellany.fileio.create_folder(file)
145
143
  ospid = True
146
144
  frame = inspect.currentframe().f_back
147
145
  lineno = frame.f_lineno
148
146
  if isinstance(img, np.ndarray):
149
147
  save_name = name + f'{time.time()}'
150
148
  img = Image.fromarray(img)
151
- img.save(f'{file}/{save_name}.png')
149
+ img.save(fr'{file}\{save_name}.png')
152
150
  quick_print(f'Saved image as {save_name}', lineno)
153
151
  else:
154
152
  quick_print(f"Your img is not a fucking numpy array you twat, couldn't save {name}", lineno)
155
153
 
156
154
  def load_audio(mp3_path):
155
+ from zhmiscellany._processing_supportfuncs import _ray_init_thread; _ray_init_thread.join()
157
156
  return AudioSegment.from_mp3(mp3_path)
158
157
 
159
158
  def play_audio(file_sound, range=(0.9, 1.1)):
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.4.3
3
+ Version: 0.4.6
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=Woj-Uj8g7ZibLM84W3hJ7i5DDo6NfubSfTaHvLqiKNQ,6634
2
+ kenenet-0.4.6.dist-info/METADATA,sha256=4njs5V-E4IYfpZ4pcQpOe6WqW9V4mvsF346Rb2KXr2g,633
3
+ kenenet-0.4.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ kenenet-0.4.6.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.4.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: bdist_wheel (0.45.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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,,