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
ng = NodeGraph(name="example")
float1 = ng.nodes.new("node_graph.float", value=2.0)
float2 = ng.nodes.new("node_graph.float", value=3.0)
add1 = ng.nodes.new("Operator", operator="+")
ng.links.new(float1.outputs[0], add1.inputs[0])
ng.links.new(float2.outputs[0], add1.inputs[1])
ntdata = ng.to_dict()