Skip to main content

Create node-based workflow

Project description

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, node

@node()
def add(x, y):
    return x + y

ng = NodeGraph(name="example")
add1 = ng.add_node(add, x=1, y=2)
add2 = ng.add_node(add, x=3)
ng.add_link(add1.outputs.result, add2.inputs.y)
ntdata = ng.to_dict()

License

MIT

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page