kenenet 0.0.9__py3-none-any.whl → 0.1.1__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,21 +1,29 @@
1
- import inspect, sys
2
-
1
+ import inspect, sys, zhmiscellany, keyboard
2
+ from PIL import ImageGrab
3
+ global get_pos_cooldown
3
4
  def adding(a, b):
4
5
  return a + b
5
6
 
6
- def subtracting(a, b):
7
- return a - b
8
-
7
+ def get_pos(key='f10', kill=False):
8
+ def _get_pos(key):
9
+ while True:
10
+ keyboard.wait(key)
11
+ image = ImageGrab.grab()
12
+ x, y = zhmiscellany.misc.get_mouse_xy()
13
+ rgb = image.getpixel((x, y))
14
+ print(f"Coordinates: ({x}, {y}), RGB: {rgb}")
15
+ if kill:
16
+ print('killing process')
17
+ zhmiscellany.misc.die()
18
+ zhmiscellany.processing.start_daemon(target=_get_pos, args=(key,))
19
+
9
20
  class k:
10
21
  pass
11
22
 
12
- # Automatically attach all global functions to class k,
13
- # filtering out any that start with an underscore (like __init__)
14
23
  current_module = sys.modules[__name__]
15
24
  for name, func in inspect.getmembers(current_module, inspect.isfunction):
16
25
  if not name.startswith('_'):
17
26
  setattr(k, name, func)
18
27
 
19
- # Optional: update __main__ if needed
20
28
  if '__main__' in sys.modules:
21
29
  sys.modules['__main__'].__dict__['k'] = k
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.0.9
3
+ Version: 0.1.1
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=nkDKE4olLIc5paj71dzthpGnh0yo39oXvQ1Hg4fUH3Y,908
2
+ kenenet-0.1.1.dist-info/METADATA,sha256=oboNIDvkOFBg_0qLwmYe0IIrd5fomsWC-tHA-eqgsGE,513
3
+ kenenet-0.1.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ kenenet-0.1.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.1.1.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=cyx5bMAIW8nut4ypoPkhpiKwmt0kRtfXOrXVij3BtXU,552
2
- kenenet-0.0.9.dist-info/METADATA,sha256=w7TWDhyTVyi8l_jjY_fdVC6cVZQyXfBIwVTcpM3FtW4,513
3
- kenenet-0.0.9.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.0.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.0.9.dist-info/RECORD,,