funcnodes-basic 0.1.3__py3-none-any.whl → 0.1.4__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.
- funcnodes_basic/__init__.py +1 -1
- funcnodes_basic/logic.py +5 -6
- {funcnodes_basic-0.1.3.dist-info → funcnodes_basic-0.1.4.dist-info}/METADATA +1 -1
- funcnodes_basic-0.1.4.dist-info/RECORD +9 -0
- funcnodes_basic-0.1.3.dist-info/RECORD +0 -9
- {funcnodes_basic-0.1.3.dist-info → funcnodes_basic-0.1.4.dist-info}/WHEEL +0 -0
funcnodes_basic/__init__.py
CHANGED
funcnodes_basic/logic.py
CHANGED
@@ -32,8 +32,10 @@ class WhileNode(Node):
|
|
32
32
|
done = NodeOutput(id="done", type=Any)
|
33
33
|
|
34
34
|
async def func(self, condition: bool, input: Any) -> None:
|
35
|
-
if condition:
|
35
|
+
if self.inputs["condition"].value:
|
36
36
|
self.outputs["do"].value = input
|
37
|
+
triggerstack = TriggerStack()
|
38
|
+
await self.outputs["do"].trigger(triggerstack)
|
37
39
|
self.request_trigger()
|
38
40
|
else:
|
39
41
|
self.outputs["done"].value = input
|
@@ -69,14 +71,11 @@ class ForNode(Node):
|
|
69
71
|
|
70
72
|
async def func(self, input: list, collector: Optional[Any] = None) -> None:
|
71
73
|
results = []
|
74
|
+
self.outputs["done"].value = NoValue
|
72
75
|
for i in input:
|
73
76
|
self.outputs["do"].set_value(i, does_trigger=False)
|
74
77
|
triggerstack = TriggerStack()
|
75
|
-
|
76
|
-
await self.outputs["do"].trigger(triggerstack)
|
77
|
-
await triggerstack
|
78
|
-
except Exception as e:
|
79
|
-
pass
|
78
|
+
await self.outputs["do"].trigger(triggerstack)
|
80
79
|
v = self.inputs["collector"].value
|
81
80
|
if v is not NoValue:
|
82
81
|
results.append(v)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
funcnodes_basic/__init__.py,sha256=zsbdWOv6CgaIcOLBH3YtUMnRtYtU6VNw1zrfaNvOrv8,505
|
2
|
+
funcnodes_basic/dicts.py,sha256=7wHKDH6Mr1nfWrX3Bd9oP6V20Tl1dHOx_ze5FKiSymA,2457
|
3
|
+
funcnodes_basic/lists.py,sha256=cDBaXY_I2D1-CHbIA4_7OV2Dn2zk47c20hCAQHhPoO4,1561
|
4
|
+
funcnodes_basic/logic.py,sha256=zxkFdqgDtWKxnQPPqpguqT0-Dw2MGq4tJEa2roqVUnw,3631
|
5
|
+
funcnodes_basic/math.py,sha256=9kYKXCH1f8lXvuxiUJnTORUp29rYrjmi24Di71toiDE,11280
|
6
|
+
funcnodes_basic/strings.py,sha256=BbLuq6m96Sia02UEmi-aUi5L5bebGbcgwvpTnGFVD2E,16429
|
7
|
+
funcnodes_basic-0.1.4.dist-info/METADATA,sha256=VmPcsdcr4uqmAw-XrTaD94r1zNhS2FJgi37iOJtxiSc,432
|
8
|
+
funcnodes_basic-0.1.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
9
|
+
funcnodes_basic-0.1.4.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
funcnodes_basic/__init__.py,sha256=1xIYBA0_AUVoTwmatlvpKqFvaNxz9LUQskpim310_gc,505
|
2
|
-
funcnodes_basic/dicts.py,sha256=7wHKDH6Mr1nfWrX3Bd9oP6V20Tl1dHOx_ze5FKiSymA,2457
|
3
|
-
funcnodes_basic/lists.py,sha256=cDBaXY_I2D1-CHbIA4_7OV2Dn2zk47c20hCAQHhPoO4,1561
|
4
|
-
funcnodes_basic/logic.py,sha256=X1gHjQzhGYYFJwV0Y-L0Cty3CD-w6UWbcax72JWmGoM,3577
|
5
|
-
funcnodes_basic/math.py,sha256=9kYKXCH1f8lXvuxiUJnTORUp29rYrjmi24Di71toiDE,11280
|
6
|
-
funcnodes_basic/strings.py,sha256=BbLuq6m96Sia02UEmi-aUi5L5bebGbcgwvpTnGFVD2E,16429
|
7
|
-
funcnodes_basic-0.1.3.dist-info/METADATA,sha256=yqZaUnqYInVWQI18u87NQnWkisT2SlObvJZmC_eMjv0,432
|
8
|
-
funcnodes_basic-0.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
9
|
-
funcnodes_basic-0.1.3.dist-info/RECORD,,
|
File without changes
|