Documentation
Please refer to online docs.
Examples
A simple math calculation
from node_graph import task
@task()
def add(x, y):
return x + y
@task()
def multiply(x, y):
return x * y
@task.graph()
def AddMultiply(x, y, z):
the_sum = add(x=x, y=y).result
return multiply(x=the_sum, y=z).result
Engines and provenance
Explore different execution engines in node-graph-engine.
Run the above graph locally with the LocalEngine and export the provenance graph:
from node_graph.engine.local import LocalEngine
graph = AddMultiply.build(x=1, y=2, z=3)
engine = LocalEngine()
results = engine.run(graph)
# export provenance for visualization
engine.recorder.save_graphviz_svg("add_multiply.svg")
License
Metadata
Release files for node-graph 0.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| node_graph-0.6.5.tar.gz | 100.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| node_graph-0.6.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 218.1 kB
Release files / node_graph-0.6.5.tar.gz
| Download URL | node_graph-0.6.5.tar.gz |
|---|---|
| Size | 100.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25114f96e3154aeccac8faf75cde16e8acaf772e0cc34857d446c1145ae30cde
|
|
BLAKE2b-256 checksum How to use checksums |
12faf64cb06871fc56c43f34f799b68f84321451e0f821ccc5b9a76a8207d92a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / node_graph-0.6.5-py3-none-any.whl
| Download URL | node_graph-0.6.5-py3-none-any.whl |
|---|---|
| Size | 117.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4efe5acd8900f9cf872b90f3bc0afccd63651c3bf7705bd6edfbd55e1dd2c471
|
|
BLAKE2b-256 checksum How to use checksums |
d75afee76af3ad82de6ce8708846bc1c6217792cde04f8acc23991c8dc496731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|