Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

An execution graph for Python tasks

Project description

Nodal

An execution graph for Python tasks.

Example

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import nodal

from nodal.graph import Graph


def demo():

    # Create a graph
    graph = 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 = nodal.nodes.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

This version

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nodal, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size nodal-0.0.1-py3.7.egg (33.2 kB) File type Egg Python version 3.7 Upload date Hashes View hashes
Filename, size nodal-0.0.1-py3-none-any.whl (14.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size nodal-0.0.1.tar.gz (7.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page