kenenet 0.0.8__py3-none-any.whl → 0.1.0__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,16 +1,28 @@
1
- import inspect, sys
2
-
1
+ import inspect, sys, zhmiscellany, keyboard
2
+ from PIL import ImageGrab
3
3
 
4
4
  def adding(a, b):
5
5
  return a + b
6
6
 
7
-
7
+ def get_pos(key='f10', kill=False):
8
+ def _get_pos(key):
9
+ keyboard.wait(key)
10
+ image = ImageGrab.grab()
11
+ x, y = zhmiscellany.misc.get_mouse_xy()
12
+ rgb = image.getpixel((x, y))
13
+ print(f"Coordinates: ({x}, {y}), RGB: {rgb}")
14
+ if kill:
15
+ print('killing process')
16
+ zhmiscellany.misc.die()
17
+ zhmiscellany.processing.start_daemon(target=_get_pos, args=(key,))
18
+
8
19
  class k:
9
20
  pass
10
21
 
11
-
12
- k.adding = adding
13
-
22
+ current_module = sys.modules[__name__]
23
+ for name, func in inspect.getmembers(current_module, inspect.isfunction):
24
+ if not name.startswith('_'):
25
+ setattr(k, name, func)
14
26
 
15
27
  if '__main__' in sys.modules:
16
28
  sys.modules['__main__'].__dict__['k'] = k
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.0.8
3
+ Version: 0.1.0
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=E6cw5FPD1ScpoBCdNnSEvrsKM5A4jADmvmFHNUN5S-M,832
2
+ kenenet-0.1.0.dist-info/METADATA,sha256=HBumeS-txu9M6Yt8dTZ60zJGfq1NshS_ilYqMsyiGsM,513
3
+ kenenet-0.1.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ kenenet-0.1.0.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.1.0.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=thkalKm0wlXU6y4z0Wfjs3BpsouaX4TWTM-GO7bxWLo,191
2
- kenenet-0.0.8.dist-info/METADATA,sha256=_G-XrrLzTrg3hXqhaKn8xiVUMnDHcm_f0ZC7dhCs9jk,513
3
- kenenet-0.0.8.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.0.8.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.0.8.dist-info/RECORD,,