pycoze 0.1.442__py3-none-any.whl → 0.1.444__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/__init__.py +2 -1
- pycoze/reference/fn.py +33 -0
- pycoze/reference/tool.py +3 -1
- pycoze/reference/workflow.py +1 -1
- {pycoze-0.1.442.dist-info → pycoze-0.1.444.dist-info}/METADATA +1 -1
- {pycoze-0.1.442.dist-info → pycoze-0.1.444.dist-info}/RECORD +9 -8
- {pycoze-0.1.442.dist-info → pycoze-0.1.444.dist-info}/LICENSE +0 -0
- {pycoze-0.1.442.dist-info → pycoze-0.1.444.dist-info}/WHEEL +0 -0
- {pycoze-0.1.442.dist-info → pycoze-0.1.444.dist-info}/top_level.txt +0 -0
pycoze/reference/__init__.py
CHANGED
pycoze/reference/fn.py
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
def single_process():
|
2
|
+
def decorator(func):
|
3
|
+
func.parallel_mode = "singleProcess"
|
4
|
+
return func
|
5
|
+
return decorator
|
6
|
+
|
7
|
+
|
8
|
+
def multi_process():
|
9
|
+
def decorator(func):
|
10
|
+
func.parallel_mode = "multiProcess"
|
11
|
+
return func
|
12
|
+
return decorator
|
13
|
+
|
14
|
+
|
15
|
+
def generator_function():
|
16
|
+
def decorator(func):
|
17
|
+
func.parallel_mode = "generatorFunction"
|
18
|
+
return func
|
19
|
+
return decorator
|
20
|
+
|
21
|
+
|
22
|
+
def compatibility():
|
23
|
+
def decorator(func):
|
24
|
+
func.parallel_mode = "compatibility"
|
25
|
+
return func
|
26
|
+
return decorator
|
27
|
+
|
28
|
+
|
29
|
+
def global_thread():
|
30
|
+
def decorator(func):
|
31
|
+
func.parallel_mode = "globalThread"
|
32
|
+
return func
|
33
|
+
return decorator
|
pycoze/reference/tool.py
CHANGED
@@ -21,7 +21,7 @@ def ref_tools(tool_id, workspace_path=None):
|
|
21
21
|
try:
|
22
22
|
with ModuleManager(module_path) as manager:
|
23
23
|
module = importlib.import_module("tool")
|
24
|
-
export_tools = getattr(module, "
|
24
|
+
export_tools = getattr(module, "__all__")
|
25
25
|
|
26
26
|
except Exception as e:
|
27
27
|
print(f"Error loading tool {tool_id}: {e}")
|
@@ -35,3 +35,5 @@ def ref_tools(tool_id, workspace_path=None):
|
|
35
35
|
ret_export_tools.append(tool)
|
36
36
|
|
37
37
|
return ret_export_tools
|
38
|
+
|
39
|
+
|
pycoze/reference/workflow.py
CHANGED
@@ -21,7 +21,7 @@ def _ref_workflows(workflow_id, workspace_path=None):
|
|
21
21
|
try:
|
22
22
|
with ModuleManager(module_path) as manager:
|
23
23
|
module = importlib.import_module("tool")
|
24
|
-
export_tools = getattr(module, "
|
24
|
+
export_tools = getattr(module, "__all__")
|
25
25
|
|
26
26
|
except Exception as e:
|
27
27
|
print(f"Error loading workflow {workflow_id}: {e}")
|
@@ -16,11 +16,12 @@ pycoze/bot/lib.py,sha256=RivPA2f5fqzqbW6jL0sx9X9pwgFPxwkk8lt62CWvaZo,7255
|
|
16
16
|
pycoze/bot/message.py,sha256=udnIi-h4QgGzkbr_5VcAsVGjoLp9wXJSfBCeuOz7_Bk,802
|
17
17
|
pycoze/bot/prompt.md,sha256=UtwZ31wFvNtvM9ZTA4BU2yT1Rb-qnUdU3Ny1O37Tt3Q,14077
|
18
18
|
pycoze/bot/tools.py,sha256=BWMdwvqLzvcyaW38lzxUWtc0K1V-C_qPSEZ3OKlAQvU,11108
|
19
|
-
pycoze/reference/__init__.py,sha256=
|
19
|
+
pycoze/reference/__init__.py,sha256=wEhM5lIZ58UQV5YSYOPrtuTlpibPvcLgiZnVlG3RIf8,210
|
20
20
|
pycoze/reference/bot.py,sha256=UZK24Qm8kpqpwXJy_zNZeTEEDee05luXdSBeUm0NCt0,2029
|
21
|
+
pycoze/reference/fn.py,sha256=w8cHR17kvauWXu5TfuDut4ggXGajdyQYm-yXDJ65mXs,675
|
21
22
|
pycoze/reference/lib.py,sha256=T-oBOKxkus5dTouc0oDgfRzUyi6aTyY-FF4yX7SzF5M,3755
|
22
|
-
pycoze/reference/tool.py,sha256=
|
23
|
-
pycoze/reference/workflow.py,sha256=
|
23
|
+
pycoze/reference/tool.py,sha256=kv5Ww8fZVECNJfE7Ku5M88jqHgSO0yTF0S6eijQu9KE,1104
|
24
|
+
pycoze/reference/workflow.py,sha256=59teXvIM_kOa-rJMLudJaJb9FBumYEmOzMT5jifKqDY,1337
|
24
25
|
pycoze/ui/__init__.py,sha256=uaXet23wUk64TcZjpBX8qOx4aUhwA_ucrmcxy7Q4Qr4,929
|
25
26
|
pycoze/ui/base.py,sha256=7drlRZ40zF1nwGIRwLTC3EuZOSENz2qhQEWUM5yd9cg,1081
|
26
27
|
pycoze/ui/color.py,sha256=cT9Ib8uNzkOKxyW0IwVj46o4LwdB1xgNCj1_Rou9d_4,854
|
@@ -31,8 +32,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
|
|
31
32
|
pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
32
33
|
pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
|
33
34
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
34
|
-
pycoze-0.1.
|
35
|
-
pycoze-0.1.
|
36
|
-
pycoze-0.1.
|
37
|
-
pycoze-0.1.
|
38
|
-
pycoze-0.1.
|
35
|
+
pycoze-0.1.444.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
36
|
+
pycoze-0.1.444.dist-info/METADATA,sha256=RAC5o3N04_CTXPPZ1Tzdarfw9-KnuuoT0z5USGAdJ6s,854
|
37
|
+
pycoze-0.1.444.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
38
|
+
pycoze-0.1.444.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
39
|
+
pycoze-0.1.444.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|