kenenet 1.1.4__py3-none-any.whl → 1.1.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
@@ -7,6 +7,10 @@ import pyaudio
7
7
  from pydub import AudioSegment
8
8
  from zhmiscellany._processing_supportfuncs import _ray_init_thread
9
9
  import zhmiscellany.processing
10
+ import math
11
+ import pygame
12
+ os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
13
+ import io
10
14
  global timings, ospid, debug_mode
11
15
  ospid, debug_mode = None, False
12
16
  timings = {}
@@ -198,17 +202,9 @@ def save_img(img, name=' ', reset=True, file='temp_screenshots', mute=False):
198
202
  quick_print(f"Your img is not a fucking numpy array you twat, couldn't save {name}", lineno)
199
203
 
200
204
 
201
- import random
202
- import threading
203
- import math
204
- import pygame
205
- from pydub import AudioSegment
206
- import io
207
- import time
208
- import zhmiscellany
209
205
 
210
206
 
211
- class load_audio:
207
+ class _load_audio:
212
208
  def __init__(self):
213
209
  pygame.mixer.init()
214
210
  self.handles = []
@@ -301,6 +297,8 @@ class load_audio:
301
297
  handle = self.SoundHandle(thread, stop_event, channel)
302
298
  self.handles.append(handle)
303
299
  return handle
300
+
301
+ play_audio = _load_audio()
304
302
 
305
303
  def time_func(func, loop=10000, *args, **kwargs):
306
304
  func_name = getattr(func, '__name__', repr(func))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 1.1.4
3
+ Version: 1.1.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=ZKpvVSipCdEwYO2zzJCq--ZPkALvoD8niQkZbUE299Y,21149
2
+ kenenet-1.1.6.dist-info/METADATA,sha256=U-QjxxpfYTKPuoJy9JeFGq8WAfpa2_W7iP49P1gu6UY,1693
3
+ kenenet-1.1.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ kenenet-1.1.6.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-1.1.6.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=5-SKuJjlAWkWWuiU9_kt-DAYtShtvdCzUMdRaRzM1W8,21162
2
- kenenet-1.1.4.dist-info/METADATA,sha256=WXWFu4xBAQEVIFY99rlDoM82hNNX7DzWVgUGGlEz5BU,1693
3
- kenenet-1.1.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-1.1.4.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-1.1.4.dist-info/RECORD,,