kenenet 0.3.5__py3-none-any.whl → 0.3.8__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,4 +1,4 @@
1
- import inspect, sys, zhmiscellany, keyboard, mss, time, linecache, types, os, random
1
+ import inspect, sys, zhmiscellany, keyboard, mss, time, linecache, types, os, random, pyperclip
2
2
  import numpy as np
3
3
  from PIL import Image
4
4
  global timings, ospid
@@ -13,6 +13,7 @@ def quick_print(message, l=None):
13
13
 
14
14
 
15
15
  def get_pos(key='f10', kill=False):
16
+ coordinates = []
16
17
  def _get_pos(key, lineno):
17
18
  while True:
18
19
  keyboard.wait(key)
@@ -22,14 +23,18 @@ def get_pos(key='f10', kill=False):
22
23
  screenshot = sct.grab(region)
23
24
  rgb = screenshot.pixel(0, 0)
24
25
  color = f"\033[38;2;{rgb[0]};{rgb[1]};{rgb[2]}m"
25
- reset = "\033[0m"
26
- quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}", lineno)
26
+ reset = "\033[38;2;0;255;26m"
27
+ coordinates.append({'coord': (x,y), 'RGB': rgb})
28
+ pyperclip.copy(coordinates)
29
+ quick_print(f"Added Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset} to clipboard", lineno)
27
30
  if kill:
28
31
  quick_print('killing process')
29
32
  zhmiscellany.misc.die()
33
+ quick_print(f'Press {key} when ever you want the location')
30
34
  frame = inspect.currentframe().f_back
31
35
  lineno = frame.f_lineno
32
- zhmiscellany.processing.start_daemon(target=_get_pos, args=(key, lineno, ))
36
+ _get_pos(key=key, kill=kill)
37
+ # zhmiscellany.processing.start_daemon(target=_get_pos, args=(key, lineno, ))
33
38
 
34
39
  def timer(clock=1):
35
40
  if clock in timings:
@@ -147,7 +152,7 @@ def save_img(img, name='', reset=True, file='temp_screenshots'):
147
152
  quick_print(f"Your img is not a fucking numpy array you twat, couldn't save {name}", lineno)
148
153
 
149
154
  def load_audio(mp3_path):
150
- AudioSegment.from_mp3(mp3_path)
155
+ return AudioSegment.from_mp3(mp3_path)
151
156
 
152
157
  def play_audio(file_sound, range=(0.9, 1.1)):
153
158
  sound = file_sound
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.3.5
3
+ Version: 0.3.8
4
4
  Summary: dude what the fuck even is this package
5
5
  Home-page: https://www.youtube.com/@KiddyKene
6
6
  Author: kiddykene
@@ -11,5 +11,10 @@ Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: Microsoft :: Windows
12
12
  Requires-Python: >=3.6
13
13
  Description-Content-Type: text/markdown
14
+ Requires-Dist: zhmiscellany
15
+ Requires-Dist: mss
16
+ Requires-Dist: pillow
17
+ Requires-Dist: pydub
18
+ Requires-Dist: pyperclip
14
19
 
15
20
  sucky
@@ -0,0 +1,5 @@
1
+ kenenet/__init__.py,sha256=nkz6CUtP7np7X7wjvee4mYs8Ru2evHOgee5rgZAgaj8,6575
2
+ kenenet-0.3.8.dist-info/METADATA,sha256=OGwx0Hl8cucNNJMCDLjzXdkGaWGAja5KxGG6-TnTArI,633
3
+ kenenet-0.3.8.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ kenenet-0.3.8.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.3.8.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=wCq5QvgqxvmI3p3mATg77l6m0SydI6W7OwZ0GOhC7xU,6300
2
- kenenet-0.3.5.dist-info/METADATA,sha256=XdwZ0JkVWgmcfa6rM-xM3hr0QN-zqpRacUE8StzaqhA,513
3
- kenenet-0.3.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.3.5.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.3.5.dist-info/RECORD,,