kenenet 0.2.4__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 +24 -8
- {kenenet-0.2.4.dist-info → kenenet-0.2.5.dist-info}/METADATA +1 -1
- kenenet-0.2.5.dist-info/RECORD +5 -0
- kenenet-0.2.4.dist-info/RECORD +0 -5
- {kenenet-0.2.4.dist-info → kenenet-0.2.5.dist-info}/WHEEL +0 -0
- {kenenet-0.2.4.dist-info → kenenet-0.2.5.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -2,14 +2,10 @@ 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
|
-
|
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):
|
@@ -31,7 +27,7 @@ def get_pos(key='f10', kill=False):
|
|
31
27
|
lineno = frame.f_lineno
|
32
28
|
zhmiscellany.processing.start_daemon(target=_get_pos, args=(key, lineno, ))
|
33
29
|
|
34
|
-
def
|
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
|
|
@@ -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,,
|
kenenet-0.2.4.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=TA46WAqRKSmxUt2IgtF0o0Fb8IAnCZ2jBjbN5n2MiTc,1819
|
2
|
-
kenenet-0.2.4.dist-info/METADATA,sha256=_VhwsXfqtHY-E31j_Cux-zJED8zcJFlVcPVuo8PIXm0,513
|
3
|
-
kenenet-0.2.4.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
4
|
-
kenenet-0.2.4.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.2.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|