kenenet 0.1.8__py3-none-any.whl → 0.1.9__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
@@ -5,10 +5,13 @@ timings = {}
5
5
  def adding(a, b):
6
6
  return a + b
7
7
 
8
- def _quick_print(message):
9
- frame = inspect.currentframe().f_back
10
- lineno = frame.f_lineno
11
- sys.stdout.write(f"\033[38;2;0;255;26m{lineno} || {message}\033[0m\n")
8
+ def _quick_print(message, l=None):
9
+ if l:
10
+ frame = inspect.currentframe().f_back
11
+ lineno = frame.f_lineno
12
+ sys.stdout.write(f"\033[38;2;0;255;26m{lineno} || {message}\033[0m\n")
13
+ else:
14
+ sys.stdout.write(f"\033[38;2;0;255;26m {message}\033[0m\n")
12
15
 
13
16
 
14
17
  def get_pos(key='f10', kill=False):
@@ -22,7 +25,9 @@ def get_pos(key='f10', kill=False):
22
25
  rgb = screenshot.pixel(0, 0)
23
26
  color = f"\033[38;2;{rgb[0]};{rgb[1]};{rgb[2]}m"
24
27
  reset = "\033[0m"
25
- _quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}")
28
+ frame = inspect.currentframe().f_back
29
+ lineno = frame.f_lineno
30
+ _quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}", lineno)
26
31
  if kill:
27
32
  _quick_print('killing process')
28
33
  zhmiscellany.misc.die()
@@ -30,10 +35,10 @@ def get_pos(key='f10', kill=False):
30
35
 
31
36
  def time_it(clock=1):
32
37
  if clock in timings:
33
- elapsed = timings[clock] - time.time()
38
+ elapsed = time.time() - timings[clock]
34
39
  frame = inspect.currentframe().f_back
35
40
  lineno = frame.f_lineno
36
- _quick_print(f'{lineno} | Timer {clock} took \033[97m{elapsed}\033[0m seconds')
41
+ _quick_print(f'Timer {clock} took \033[97m{elapsed}\033[0m seconds', lineno)
37
42
  del timings[clock]
38
43
  else:
39
44
  timings[clock] = time.time()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.1.8
3
+ Version: 0.1.9
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=_uLBeB4DUTZdzen-NJpGFesXk-lJYUg5wCbuk8qD4uo,1903
2
+ kenenet-0.1.9.dist-info/METADATA,sha256=TplWJsyiG9mK3hhIdOPkKfHHUiiBp_kwFS_-j6SGmqQ,513
3
+ kenenet-0.1.9.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ kenenet-0.1.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.1.9.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=p3JioWCzHBTqM3H72AaRm7sT3fO3DTSF3yARPfhOI4k,1699
2
- kenenet-0.1.8.dist-info/METADATA,sha256=UPgZyAmYaf-1jkpLQFDLvIvNI4t2eHEk1G06CcOF9dE,513
3
- kenenet-0.1.8.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.1.8.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.1.8.dist-info/RECORD,,