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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file JINTFP-0.1.1.tar.gz.

File metadata

  • Download URL: JINTFP-0.1.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.8

File hashes

Hashes for JINTFP-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f942838846693d74a2221daa7859fe5259760a96905e45dcd450b2cab919bc1
MD5 7bc1c60b30f7c3169df5ef060faa5261
BLAKE2b-256 a0c14e85cf5730ea0af4ae0fdb32c940201c6c47fe03e7014bb40aab260cae4d

See more details on using hashes here.

File details

Details for the file JINTFP-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: JINTFP-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.8

File hashes

Hashes for JINTFP-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5062aa1f55c72b85ddb4adf4c0987a593e421ed5f6f295d37fe957475c6bd3
MD5 ce57365abb3cacb95b694a30abff781d
BLAKE2b-256 1d8407a8f59624a406cbeb2776e80f8bcff23579164a225813c0132f91fe2b44

See more details on using hashes here.

Supported by

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