kenenet 0.1.8__py3-none-any.whl → 0.2.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
@@ -5,10 +5,11 @@ 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
+ 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")
12
13
 
13
14
 
14
15
  def get_pos(key='f10', kill=False):
@@ -22,7 +23,9 @@ def get_pos(key='f10', kill=False):
22
23
  rgb = screenshot.pixel(0, 0)
23
24
  color = f"\033[38;2;{rgb[0]};{rgb[1]};{rgb[2]}m"
24
25
  reset = "\033[0m"
25
- _quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}")
26
+ frame = inspect.currentframe().f_back
27
+ lineno = frame.f_lineno
28
+ _quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}", lineno)
26
29
  if kill:
27
30
  _quick_print('killing process')
28
31
  zhmiscellany.misc.die()
@@ -30,10 +33,10 @@ def get_pos(key='f10', kill=False):
30
33
 
31
34
  def time_it(clock=1):
32
35
  if clock in timings:
33
- elapsed = timings[clock] - time.time()
36
+ elapsed = time.time() - timings[clock]
34
37
  frame = inspect.currentframe().f_back
35
38
  lineno = frame.f_lineno
36
- _quick_print(f'{lineno} | Timer {clock} took \033[97m{elapsed}\033[0m seconds')
39
+ _quick_print(f'Timer {clock} took \033[97m{elapsed}\033[0m seconds', lineno)
37
40
  del timings[clock]
38
41
  else:
39
42
  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.2.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=dH-oPC0vmBOEZolSMi9dS_43NMxkbtHVJDDKNF2B-0I,1818
2
+ kenenet-0.2.0.dist-info/METADATA,sha256=myvcLjDDBYNuQZJUg2BZHry1HspquUSbRe6WLJ9jJgs,513
3
+ kenenet-0.2.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ kenenet-0.2.0.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.2.0.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,,