An execution graph for Python tasks
Project description
Nodal
An execution graph for Python tasks.
Example
import nodal
from nodal.graph import Graph
def demo():
# Create a graph
graph = Graph()
# Create nodes within the graph context to trigger graph callbacks.
with graph:
# Create a Plus node with value 3
plus1 = nodal.nodes.Plus(3)
# Create a Plus node with value 7 and plug into the first Plus
plus2 = graph.create_node('Plus', 7)
plus2.set_input(0, plus1)
# Create an Output node and plug into the second Plus
output = nodal.nodes.Output()
output.set_input(0, plus2)
# Execute graph
graph.execute(output)
if __name__ == '__main__':
demo()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nodal-0.0.3.tar.gz
(11.2 kB
view details)
Built Distribution
nodal-0.0.3-py3-none-any.whl
(17.6 kB
view details)
File details
Details for the file nodal-0.0.3.tar.gz
.
File metadata
- Download URL: nodal-0.0.3.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e038445f53dc5e5472aec821efaf5d0567a80da7dcdf78811ae3a5650b2ccb99
|
|
MD5 |
4f9815fc0e90b8e41f1d35364af8999f
|
|
BLAKE2b-256 |
d3237745242f773712a4da76faf61d4a1f9257d6c608b9a5bf7c38c4d23852c3
|
File details
Details for the file nodal-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: nodal-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
57d54731b1cd966a63cbf8dda01a99041fb70b68617fe0cd76e9a4ba482e435f
|
|
MD5 |
d7d3c77a80fa19361f317c0c94e65662
|
|
BLAKE2b-256 |
f70bb5b12cc4362d2d2df3879176fe09381f9458fcc5c24e8e41966aa817f4c5
|