kenenet 0.2.3__py3-none-any.whl → 0.2.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
@@ -2,18 +2,14 @@ import inspect, sys, zhmiscellany, keyboard, mss, time, sys
2
2
 
3
3
  global timings
4
4
  timings = {}
5
- def adding(a, b):
6
- return a + b
7
5
 
8
6
  def _quick_print(message, l=None):
9
- if l:
10
- sys.stdout.write(f"\033[38;2;0;255;26m{l} || {message}\033[0m\n")
11
- else:
12
- sys.stdout.write(f"\033[38;2;0;255;26m {message}\033[0m\n")
7
+ if l: sys.stdout.write(f"\033[38;2;0;255;26m{l} || {message}\033[0m\n")
8
+ else: sys.stdout.write(f"\033[38;2;0;255;26m {message}\033[0m\n")
13
9
 
14
10
 
15
11
  def get_pos(key='f10', kill=False):
16
- def _get_pos(key):
12
+ def _get_pos(key, lineno):
17
13
  while True:
18
14
  keyboard.wait(key)
19
15
  x, y = zhmiscellany.misc.get_mouse_xy()
@@ -23,15 +19,15 @@ def get_pos(key='f10', kill=False):
23
19
  rgb = screenshot.pixel(0, 0)
24
20
  color = f"\033[38;2;{rgb[0]};{rgb[1]};{rgb[2]}m"
25
21
  reset = "\033[0m"
26
- frame = inspect.currentframe().f_back.f_back
27
- lineno = frame.f_lineno
28
22
  _quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}", lineno)
29
23
  if kill:
30
24
  _quick_print('killing process')
31
25
  zhmiscellany.misc.die()
32
- zhmiscellany.processing.start_daemon(target=_get_pos, args=(key,))
26
+ frame = inspect.currentframe().f_back
27
+ lineno = frame.f_lineno
28
+ zhmiscellany.processing.start_daemon(target=_get_pos, args=(key, lineno, ))
33
29
 
34
- def time_it(clock=1):
30
+ def timer(clock=1):
35
31
  if clock in timings:
36
32
  elapsed = time.time() - timings[clock]
37
33
  frame = inspect.currentframe().f_back
@@ -41,7 +37,27 @@ def time_it(clock=1):
41
37
  else:
42
38
  timings[clock] = time.time()
43
39
 
44
-
40
+ def pp(msg='caca', subdir=None, pps=3):
41
+ import os, subprocess
42
+ os_current = os.getcwd()
43
+ os.chdir(os.path.dirname(__file__))
44
+ if subdir: os.chdir(subdir)
45
+ def push(message):
46
+ os.system('git add .')
47
+ os.system(f'git commit -m "{message}"')
48
+ os.system('git push -u origin master')
49
+ def pull():
50
+ os.system('git pull origin master')
51
+ def push_pull(message):
52
+ push(message)
53
+ pull()
54
+ result = subprocess.run(['git', 'rev-list', '--count', '--all'], capture_output=True, text=True)
55
+ result = int(result.stdout.strip()) + 1
56
+ for i in range(pps):
57
+ push_pull(msg)
58
+ _quick_print('PP finished B======D')
59
+ os.chdir(os_current)
60
+
45
61
  class k:
46
62
  pass
47
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.2.3
3
+ Version: 0.2.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=4s6SRN2YKzN8rC54qcwS7DKa7ZBmSiPy9zpO4_Qtr6k,2478
2
+ kenenet-0.2.5.dist-info/METADATA,sha256=unx9dXlxg8CXe8ZVZhM-KnO89d4jIk1xwADR68LKOnk,513
3
+ kenenet-0.2.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ kenenet-0.2.5.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.2.5.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=dVLS--FQzk8FMiAJOzV49UFLW9ZQcx3mXT9ExoE4P7Y,1825
2
- kenenet-0.2.3.dist-info/METADATA,sha256=mE67GfbHFrTGK-BTW2s33vtna_tKRxnSzdPuMOo3FYc,513
3
- kenenet-0.2.3.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.2.3.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.2.3.dist-info/RECORD,,