Skip to content

PyFlow

Apache-2.0 license

a node editor for Python and Qt using QtPy

Don’t confuse this PyFlow with

  • the pyflow on read-the-docs that wraps ecflow,
  • or the pyflow Python package on pip for dependency management
  • or another pyflow on github that’s also a node editor

Install

AFAIK Pyflow is not on pip, use
pip install git+https://github.com/wonderworks-software/PyFlow.git@master

import sys
import os

 # force use of pyside6 in pyqt, run before importing qtpy & pyflow
 # this prevents an error if pyside2 is installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", ".."))
os.environ["QT_API"] = "pyside6" 

from qtpy.QtWidgets import QApplication
from PyFlow.App import PyFlow  # a QMainWindow

app = QApplication([])
#w = PyFlow()
w = PyFlow.instance(software="standalone")
w.show()
app.exec()

main logic is described in pyflow.py

PRO

  • uses QtPy
  • can be evaluated without GUI

CON

  • no good docs. missing get started page. had to read source code
  • doesn’t work in PySide2 anymore

todo

load a pipeline in “view/run mode”