Skip to main content

python nodes server for fineflow

Project description

pyfineflow

fineflow的python节点后端

usage

install

pip install pyfineflow

make a demo

create dir and files like this:

  • pyfineflow-demo/
    • main.py
    • app.py
    • math_nodes.py
# app.py
from pyfineflow.core import Fine
fine = Fine('pyserver', 'python后端')
# math_nodes.py
import time
from datetime import datetime
from pathlib import Path
from pyfineflow.core import get_ctx
from app import fine


@fine.node(category='数学运算', name="相加")
def add(num1: int, num2: int) -> int:
    num = num2 + num1
    return num


@fine.node(category='数学运算', name="相减")
def sub(num1: int, num2: int = 2) -> int:
    num = num1 - num2
    return num
# main.py
from app import fine


def init():
    import math_nodes
    _ = math_nodes


init()
fine.init_server(port=8081)

run it:

python main.py

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

pyfineflow-1.0.6.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

pyfineflow-1.0.6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pyfineflow-1.0.6.tar.gz.

File metadata

  • Download URL: pyfineflow-1.0.6.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.8

File hashes

Hashes for pyfineflow-1.0.6.tar.gz
Algorithm Hash digest
SHA256 bdc3ef3395379fadede7202938f569600f277f8c936670dfa06dab2741e76e8c
MD5 bd00b6b795160d475f5084621d01a8ff
BLAKE2b-256 a395569b0af07df0217ddcce9d7abf23c6040c09a77f97fa9fbc9dd0765c7d58

See more details on using hashes here.

File details

Details for the file pyfineflow-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: pyfineflow-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.8

File hashes

Hashes for pyfineflow-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 860c551f9237fe45b109be458b63dc176cfa3e1b278dec915b86ac866dba907d
MD5 6b29362af3aab35c2348438345f23720
BLAKE2b-256 b330fe3e6bd5565ad797c288feeeaabd40de9dafad18fef5edfa6418bd1ce439

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