pycoze 0.1.444__py3-none-any.whl → 0.1.445__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.
- pycoze/reference/fn.py +31 -21
- {pycoze-0.1.444.dist-info → pycoze-0.1.445.dist-info}/METADATA +1 -1
- {pycoze-0.1.444.dist-info → pycoze-0.1.445.dist-info}/RECORD +6 -6
- {pycoze-0.1.444.dist-info → pycoze-0.1.445.dist-info}/LICENSE +0 -0
- {pycoze-0.1.444.dist-info → pycoze-0.1.445.dist-info}/WHEEL +0 -0
- {pycoze-0.1.444.dist-info → pycoze-0.1.445.dist-info}/top_level.txt +0 -0
pycoze/reference/fn.py
CHANGED
@@ -1,33 +1,43 @@
|
|
1
|
-
def single_process():
|
2
|
-
def decorator(
|
3
|
-
|
4
|
-
|
1
|
+
def single_process(func=None):
|
2
|
+
def decorator(f):
|
3
|
+
return f
|
4
|
+
|
5
|
+
if func is not None:
|
6
|
+
return decorator(func)
|
5
7
|
return decorator
|
6
8
|
|
7
9
|
|
8
|
-
def multi_process():
|
9
|
-
def decorator(
|
10
|
-
|
11
|
-
|
10
|
+
def multi_process(func=None):
|
11
|
+
def decorator(f):
|
12
|
+
return f
|
13
|
+
|
14
|
+
if func is not None:
|
15
|
+
return decorator(func)
|
12
16
|
return decorator
|
13
17
|
|
14
18
|
|
15
|
-
def generator_function():
|
16
|
-
def decorator(
|
17
|
-
|
18
|
-
|
19
|
+
def generator_function(func=None):
|
20
|
+
def decorator(f):
|
21
|
+
return f
|
22
|
+
|
23
|
+
if func is not None:
|
24
|
+
return decorator(func)
|
19
25
|
return decorator
|
20
26
|
|
21
27
|
|
22
|
-
def compatibility():
|
23
|
-
def decorator(
|
24
|
-
|
25
|
-
|
28
|
+
def compatibility(func=None):
|
29
|
+
def decorator(f):
|
30
|
+
return f
|
31
|
+
|
32
|
+
if func is not None:
|
33
|
+
return decorator(func)
|
26
34
|
return decorator
|
27
35
|
|
28
36
|
|
29
|
-
def global_thread():
|
30
|
-
def decorator(
|
31
|
-
|
32
|
-
|
33
|
-
|
37
|
+
def global_thread(func=None):
|
38
|
+
def decorator(f):
|
39
|
+
return f
|
40
|
+
|
41
|
+
if func is not None:
|
42
|
+
return decorator(func)
|
43
|
+
return decorator
|
@@ -18,7 +18,7 @@ pycoze/bot/prompt.md,sha256=UtwZ31wFvNtvM9ZTA4BU2yT1Rb-qnUdU3Ny1O37Tt3Q,14077
|
|
18
18
|
pycoze/bot/tools.py,sha256=BWMdwvqLzvcyaW38lzxUWtc0K1V-C_qPSEZ3OKlAQvU,11108
|
19
19
|
pycoze/reference/__init__.py,sha256=wEhM5lIZ58UQV5YSYOPrtuTlpibPvcLgiZnVlG3RIf8,210
|
20
20
|
pycoze/reference/bot.py,sha256=UZK24Qm8kpqpwXJy_zNZeTEEDee05luXdSBeUm0NCt0,2029
|
21
|
-
pycoze/reference/fn.py,sha256=
|
21
|
+
pycoze/reference/fn.py,sha256=UIXwNNCXTbumCWKVeInbe96vAf9926LlT7bU3aEmZzA,749
|
22
22
|
pycoze/reference/lib.py,sha256=T-oBOKxkus5dTouc0oDgfRzUyi6aTyY-FF4yX7SzF5M,3755
|
23
23
|
pycoze/reference/tool.py,sha256=kv5Ww8fZVECNJfE7Ku5M88jqHgSO0yTF0S6eijQu9KE,1104
|
24
24
|
pycoze/reference/workflow.py,sha256=59teXvIM_kOa-rJMLudJaJb9FBumYEmOzMT5jifKqDY,1337
|
@@ -32,8 +32,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
|
|
32
32
|
pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
33
33
|
pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
|
34
34
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
35
|
-
pycoze-0.1.
|
36
|
-
pycoze-0.1.
|
37
|
-
pycoze-0.1.
|
38
|
-
pycoze-0.1.
|
39
|
-
pycoze-0.1.
|
35
|
+
pycoze-0.1.445.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
36
|
+
pycoze-0.1.445.dist-info/METADATA,sha256=4WuLUFZ7FoXtSNoCS5OlK7f-kryaCn3i2OXzSAQaDw0,854
|
37
|
+
pycoze-0.1.445.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
38
|
+
pycoze-0.1.445.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
39
|
+
pycoze-0.1.445.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|