kenenet 0.4.1__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 CHANGED
@@ -13,7 +13,8 @@ def quick_print(message, l=None):
13
13
 
14
14
 
15
15
  def get_pos(key='f10', kill=False):
16
- coordinates = []
16
+ coord_rgb = []
17
+ coords = []
17
18
  def _get_pos(key, kill=False):
18
19
  while True:
19
20
  keyboard.wait(key)
@@ -24,8 +25,9 @@ def get_pos(key='f10', kill=False):
24
25
  rgb = screenshot.pixel(0, 0)
25
26
  color = f"\033[38;2;{rgb[0]};{rgb[1]};{rgb[2]}m"
26
27
  reset = "\033[38;2;0;255;26m"
27
- coordinates.append({'coord': (x,y), 'RGB': rgb})
28
- pyperclip.copy(str(coordinates))
28
+ coord_rgb.append({'coord': (x,y), 'RGB': rgb})
29
+ coords.append((x,y))
30
+ pyperclip.copy(f'coords_rgb = {coord_rgb}\ncoords = {coords}')
29
31
  quick_print(f"Added Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset} to clipboard", lineno)
30
32
  if kill:
31
33
  quick_print('killing process')
@@ -34,7 +36,6 @@ def get_pos(key='f10', kill=False):
34
36
  frame = inspect.currentframe().f_back
35
37
  lineno = frame.f_lineno
36
38
  _get_pos(key, kill)
37
- # zhmiscellany.processing.start_daemon(target=_get_pos, args=(key, lineno, ))
38
39
 
39
40
  def timer(clock=1):
40
41
  if clock in timings:
@@ -146,12 +147,13 @@ def save_img(img, name='', reset=True, file='temp_screenshots'):
146
147
  if isinstance(img, np.ndarray):
147
148
  save_name = name + f'{time.time()}'
148
149
  img = Image.fromarray(img)
149
- img.save(f'{file}/{save_name}.png')
150
+ img.save(fr'{file}\{save_name}.png')
150
151
  quick_print(f'Saved image as {save_name}', lineno)
151
152
  else:
152
153
  quick_print(f"Your img is not a fucking numpy array you twat, couldn't save {name}", lineno)
153
154
 
154
155
  def load_audio(mp3_path):
156
+ from zhmiscellany._processing_supportfuncs import _ray_init_thread; _ray_init_thread.join()
155
157
  return AudioSegment.from_mp3(mp3_path)
156
158
 
157
159
  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.1
3
+ Version: 0.4.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=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,,
@@ -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=r2pb62B4iyqZSSvW88QfzGTnkVak0vcCjILA__pwnJ4,6575
2
- kenenet-0.4.1.dist-info/METADATA,sha256=SgV_UlO_u2G9BDiYR-OjRgRWm-zwW_Xf1GDb6YT2zdc,633
3
- kenenet-0.4.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.4.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.4.1.dist-info/RECORD,,