Skip to content

scinode/node-graph

Repository files navigation

NodeGraph

PyPI version CI codecov Docs status

A platform for designing node-based workflows.

    pip install --upgrade --user node_graph

Documentation

Check the docs and learn about the features.

Examples

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()

License

MIT