A platform for designing node-based workflows.
pip install --upgrade --user node_graph
Check the docs and learn about the features.
A simple math calculation
from node_graph import NodeGraph
nt = NodeGraph(name="example")
float1 = nt.nodes.new("node_graph.float", value=2.0)
float2 = nt.nodes.new("node_graph.float", value=3.0)
add1 = nt.nodes.new("Operator", operator="+")
nt.links.new(float1.outputs[0], add1.inputs[0])
nt.links.new(float2.outputs[0], add1.inputs[1])
ntdata = nt.to_dict()