You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

node-graph

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-graph

Create node-based workflow

0.1.29
Source
PyPI
Maintainers
1

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

Keywords

graph

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts