-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKG-INFO
40 lines (36 loc) · 1.21 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Metadata-Version: 2.1
Name: bdtime
Version: 0.0.7
Summary: bode's private time model.
Home-page: https://github.com/bode135/pydamo
Author: bode135
Author-email: [email protected]
License: UNKNOWN
Description: # bode's time model.
> 安装:
>`pip install bdtime`
```
from bd_time import Time()
tt = Time()
tt.now(1) # 输出当前运行的时间
tt.during(10) # 检测运行时间是否在10秒内
tt.get_key_state('a') # 检测'a'键是否按下
tt.stop('alt + a') # 如果按下[Alt + a]键就推出
# 测试函数用, [2秒后]运行函数
@tt.run_f_with_sleep(2)
def f():
ret = 'haha'
return ret
print(f())
# 测试函数用, [5秒内]循环运行函数, 运行间隔为[1秒]
@tt.run_f_with_during((during_time=5, sleep_time=1)
def f():
return keyboard.is_pressed('a') #-> True
f()
```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown