kenenet 0.1.7__py3-none-any.whl → 0.1.8__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,8 +5,10 @@ timings = {}
5
5
  def adding(a, b):
6
6
  return a + b
7
7
 
8
- def quick_print(message):
9
- sys.stdout.write(f"\033[94m{message}\033[0m\n")
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")
10
12
 
11
13
 
12
14
  def get_pos(key='f10', kill=False):
@@ -20,21 +22,21 @@ def get_pos(key='f10', kill=False):
20
22
  rgb = screenshot.pixel(0, 0)
21
23
  color = f"\033[38;2;{rgb[0]};{rgb[1]};{rgb[2]}m"
22
24
  reset = "\033[0m"
23
- quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}")
25
+ _quick_print(f"Coordinates: ({x}, {y}), RGB: {rgb} {color}████████{reset}")
24
26
  if kill:
25
- quick_print('killing process')
27
+ _quick_print('killing process')
26
28
  zhmiscellany.misc.die()
27
29
  zhmiscellany.processing.start_daemon(target=_get_pos, args=(key,))
28
30
 
29
31
  def time_it(clock=1):
30
32
  if clock in timings:
31
33
  elapsed = timings[clock] - time.time()
32
- print()
34
+ frame = inspect.currentframe().f_back
35
+ lineno = frame.f_lineno
36
+ _quick_print(f'{lineno} | Timer {clock} took \033[97m{elapsed}\033[0m seconds')
37
+ del timings[clock]
33
38
  else:
34
39
  timings[clock] = time.time()
35
- frame = inspect.currentframe().f_back
36
- filename = frame.f_code.co_filename
37
- lineno = frame.f_lineno
38
40
 
39
41
 
40
42
  class k:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.1.7
3
+ Version: 0.1.8
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=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,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=rdgrig3zBIlWkNeUHFqTTj97mnA6cptkt5vuZasQmbg,1534
2
- kenenet-0.1.7.dist-info/METADATA,sha256=prdl-U3PvfKh1FH3lRHjQX9vANds8MaRxJKWYctAH7Y,513
3
- kenenet-0.1.7.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.1.7.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.1.7.dist-info/RECORD,,