kenenet 0.1.7__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,8 +5,13 @@ 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, 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")
10
15
 
11
16
 
12
17
  def get_pos(key='f10', kill=False):
@@ -20,21 +25,23 @@ def get_pos(key='f10', kill=False):
20
25
  rgb = screenshot.pixel(0, 0)
21
26
  color = f"\033[38;2;{rgb[0]};{rgb[1]};{rgb[2]}m"
22
27
  reset = "\033[0m"
23
- 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)
24
31
  if kill:
25
- quick_print('killing process')
32
+ _quick_print('killing process')
26
33
  zhmiscellany.misc.die()
27
34
  zhmiscellany.processing.start_daemon(target=_get_pos, args=(key,))
28
35
 
29
36
  def time_it(clock=1):
30
37
  if clock in timings:
31
- elapsed = timings[clock] - time.time()
32
- print()
38
+ elapsed = time.time() - timings[clock]
39
+ frame = inspect.currentframe().f_back
40
+ lineno = frame.f_lineno
41
+ _quick_print(f'Timer {clock} took \033[97m{elapsed}\033[0m seconds', lineno)
42
+ del timings[clock]
33
43
  else:
34
44
  timings[clock] = time.time()
35
- frame = inspect.currentframe().f_back
36
- filename = frame.f_code.co_filename
37
- lineno = frame.f_lineno
38
45
 
39
46
 
40
47
  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.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=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,,