vectorvein 0.2.58__py3-none-any.whl → 0.2.60__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.
- vectorvein/workflow/graph/node.py +4 -2
- vectorvein/workflow/utils/json_to_code.py +3 -1
- {vectorvein-0.2.58.dist-info → vectorvein-0.2.60.dist-info}/METADATA +1 -1
- {vectorvein-0.2.58.dist-info → vectorvein-0.2.60.dist-info}/RECORD +6 -6
- {vectorvein-0.2.58.dist-info → vectorvein-0.2.60.dist-info}/WHEEL +0 -0
- {vectorvein-0.2.58.dist-info → vectorvein-0.2.60.dist-info}/entry_points.txt +0 -0
@@ -95,11 +95,13 @@ class Node:
|
|
95
95
|
)
|
96
96
|
|
97
97
|
def to_dict(self) -> Dict[str, Any]:
|
98
|
-
|
98
|
+
# 如果端口有条件表达式,且根据条件不能显示,则端口 show 要强制设置为 False
|
99
|
+
for port in self.ports.values():
|
99
100
|
port_show = port.show
|
100
101
|
if port.condition_python:
|
101
102
|
port_show = port.condition_python(self.ports)
|
102
|
-
|
103
|
+
if not port_show:
|
104
|
+
port.show = False
|
103
105
|
return {
|
104
106
|
"id": self.id,
|
105
107
|
"type": self.type,
|
@@ -116,7 +116,9 @@ def generate_python_code(
|
|
116
116
|
add_ports.append(port)
|
117
117
|
continue
|
118
118
|
|
119
|
-
if
|
119
|
+
if (
|
120
|
+
port["show"] and not node_instance.ports[port_name].show
|
121
|
+
): # 只有实际节点的 show=True 且端口默认 show=False 时,才添加到 show_ports
|
120
122
|
show_ports.append(port["name"])
|
121
123
|
|
122
124
|
# 比较端口值与默认值
|
@@ -1,6 +1,6 @@
|
|
1
|
-
vectorvein-0.2.
|
2
|
-
vectorvein-0.2.
|
3
|
-
vectorvein-0.2.
|
1
|
+
vectorvein-0.2.60.dist-info/METADATA,sha256=nP0beOLKH9hKZmTGpFXqCKtk2A2OH1anr7IoZPjKUDY,4570
|
2
|
+
vectorvein-0.2.60.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
vectorvein-0.2.60.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
4
|
vectorvein/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
vectorvein/api/__init__.py,sha256=lfY-XA46fgD2iIZTU0VYP8i07AwA03Egj4Qua0vUKrQ,738
|
6
6
|
vectorvein/api/client.py,sha256=xF-leKDQzVyyy9FnIRaz0k4eElYW1XbbzeRLcpnyk90,33047
|
@@ -42,7 +42,7 @@ vectorvein/utilities/media_processing.py,sha256=7KtbLFzOYIn1e9QTN9G6C76NH8CBlV9k
|
|
42
42
|
vectorvein/utilities/rate_limiter.py,sha256=dwolIUVw2wP83Odqpx0AAaE77de1GzxkYDGH4tM_u_4,10300
|
43
43
|
vectorvein/utilities/retry.py,sha256=6KFS9R2HdhqM3_9jkjD4F36ZSpEx2YNFGOVlpOsUetM,2208
|
44
44
|
vectorvein/workflow/graph/edge.py,sha256=1ckyyjCue_PLm7P1ItUfKOy6AKkemOpZ9m1WJ8UXIHQ,1072
|
45
|
-
vectorvein/workflow/graph/node.py,sha256=
|
45
|
+
vectorvein/workflow/graph/node.py,sha256=P3iL5kJ0Nabd9NPOcbbznD71OBUtsSUcZ_zJ6a2cnIc,5559
|
46
46
|
vectorvein/workflow/graph/port.py,sha256=HcinzQqNP7ysTvBmi3c4iaWne8nV6m-BpFFX0jTrMIE,7122
|
47
47
|
vectorvein/workflow/graph/workflow.py,sha256=f5KAQUXTKii7UFYmSZeZZQ7JCKKPmJlUg0iFAfBEJQE,6366
|
48
48
|
vectorvein/workflow/nodes/__init__.py,sha256=dWrWtL3q0Vsn-MLgJ7gNgLCrwZ5BrqjrN2QFPNeBMuc,3240
|
@@ -62,6 +62,6 @@ vectorvein/workflow/nodes/vector_db.py,sha256=p9AT_E8ASbcYHZqHYTCIGvqkIqzxaFM4Ux
|
|
62
62
|
vectorvein/workflow/nodes/video_generation.py,sha256=qmdg-t_idpxq1veukd-jv_ChICMOoInKxprV9Z4Vi2w,4118
|
63
63
|
vectorvein/workflow/nodes/web_crawlers.py,sha256=FB0bTimkk___p3Z5UwQx2YarJyQCc45jjnbXbgGA_qw,5640
|
64
64
|
vectorvein/workflow/utils/check.py,sha256=Oj_S5WQf4_Fr_ro3ipjZt9unKFSFcuwZrrSmrS9kVLE,10193
|
65
|
-
vectorvein/workflow/utils/json_to_code.py,sha256
|
65
|
+
vectorvein/workflow/utils/json_to_code.py,sha256=-RqISoBXIuVapWeafS4u55GWeUUuIGqCM64D4VIb-9E,6084
|
66
66
|
vectorvein/workflow/utils/layout.py,sha256=j0bRD3uaXu40xCS6U6BGahBI8FrHa5MiF55GbTrZ1LM,4565
|
67
|
-
vectorvein-0.2.
|
67
|
+
vectorvein-0.2.60.dist-info/RECORD,,
|
File without changes
|
File without changes
|