Skip to main content

Python package for creating node-based function pipeline.

Project description

JINTFP

Just in Need, Time Functional Pipeline.

This package is designed to aid implementation of Function Pipeline design into arbitrary program.
With simple three classes, convert your functions into Node and draw Pipeline to effectively chain those primitives.
For more detail and tutorial, please refer to short technical report on the topic :
https://github.com/grasshopperTrainer/JINTFP/blob/master/res/Introduction-to-JINT-Function-Pipeline.pdf

Installation

Use pip to install the package.
pip install JINTFP

Usage

import JINTFP as fp


class Adder(fp.NodeBody):
    in0 = fp.Input(def_val=0)
    in1 = fp.Input(def_val=0)
    out0 = fp.Output()

    def __init__(self, a, b):
        super().__init__(a, b)

    def calculate(self, a, b):
        print(f'adding {a}, {b}')
        return a + b


node0 = Adder(1, 2)
node1 = Adder(20, 50)
node1.in0 = node0.out0

print(node0.out0)
print(node1.out0)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
https://github.com/grasshopperTrainer/JINTFP

Alternative contact

For any questions :
grasshoppertrainer@gmail.com

Licence

MIT

Project details


Download files

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

Source Distribution

JINTFP-0.1.1.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

JINTFP-0.1.1-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

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