Skip to main content

nodeeditor-qtpy

A node editor framework for Qt. Build interactive graph interfaces out of draggable nodes, connectable sockets and edges, with undo/redo, JSON serialization and support for your own evaluation logic.

The distribution is called nodeeditor-qtpy; the import package is nodeeditor. The framework itself is binding-agnostic: it talks to Qt through QtPy, so it runs on PyQt5, PySide2, PyQt6 and PySide6.

Calculator example

Features

  • full framework for customizable nodes, sockets and edges
  • undo / redo and serialization into JSON files in a VCS friendly way
  • support for implementing evaluation logic
  • hovering effects, dragging edges, cutting lines, snapping and more
  • node groups, multi-input nodes, custom socket shapes and color schemes
  • canvas comments (sticky notes) with inline editing and serialization
  • ready-made examples you can copy from

Requirements

  • Python 3.10+
  • A Qt binding: PyQt6 or PySide6 (any Qt 5/6 binding QtPy supports works)

Installation

From PyPI, including a Qt binding:

pip install nodeeditor-qtpy[pyqt6]

or, for PySide6:

pip install nodeeditor-qtpy[pyside6]

Without an extra, the package installs no binding and uses whichever PyQt5/PySide2/PyQt6/PySide6 you already have. When several are installed, QtPy picks one from the QT_API environment variable.

Directly from source code to get the latest version:

pip install "nodeeditor-qtpy[pyqt6] @ git+https://github.com/AzadKshitij/qtpy-nodeeditor.git"

Or clone the repository:

git clone https://github.com/AzadKshitij/qtpy-nodeeditor.git

Quick start

A node is a Node belonging to a Scene. Give it sockets, then connect an output socket to an input socket with an Edge:

import sys

from qtpy.QtWidgets import QApplication

from nodeeditor.node_editor_widget import NodeEditorWidget
from nodeeditor.node_node import Node
from nodeeditor.node_edge import Edge

app = QApplication(sys.argv)

editor = NodeEditorWidget()
scene = editor.scene

# a node with one output socket
source = Node(scene, title="Value", outputs=[1], output_text=["out"])

# a node with one input socket
sink = Node(scene, title="Print", inputs=[1], input_text=["in"])

# connect the output of the first node to the input of the second
Edge(scene, source.outputs[0], sink.inputs[0])

editor.show()
sys.exit(app.exec())

NodeEditorWidget creates the Scene for you. Use Scene on its own when you want to drive the graph without a widget:

from nodeeditor.node_scene import Scene
from nodeeditor.node_node import Node

scene = Scene()
node = Node(scene, title="Value", outputs=[1], output_text=["out"])

The inputs and outputs lists hold socket types, and the matching input_text / output_text lists hold the labels drawn next to them. Both Node and Edge register themselves with the scene when created, so there is nothing to add by hand.

Import names

from nodeeditor import NodeEditorColorScheme, get_socket_shape
from nodeeditor.node_scene import Scene
from nodeeditor.node_node import Node
from nodeeditor.node_edge import Edge
from nodeeditor.node_comment import Comment

Credits

This project is a fork of the original PyQt Node Editor by Pavel Křupala, which is released under the MIT licence. The original author is credited in LICENCE, and the history of the upstream project is kept in CHANGES.md and HISTORY.rst.

Metadata

Release files for nodeeditor-qtpy 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nodeeditor-qtpy 0.8.2
File Size Uploaded Provenance Actions
nodeeditor_qtpy-0.8.2.tar.gz 465.4 kB With provenance Details for nodeeditor_qtpy-0.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nodeeditor-qtpy 0.8.2
File Interpreter ABI Platform Actions
nodeeditor_qtpy-0.8.2-py3-none-any.whl Python 3 none any Details for nodeeditor_qtpy-0.8.2-py3-none-any.whl

Total release size: 600.6 kB

Release files / nodeeditor_qtpy-0.8.2.tar.gz

Download URL nodeeditor_qtpy-0.8.2.tar.gz
Size 465.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a82b1b616a4345c69dc31b5017055a19c6dfe15a3fd2b892a5c1fef3a019ebf3
BLAKE2b-256 checksum
How to use checksums
56a1bc4e706cf3195ae6c12ecd2b042a32d52fcdc7826232976fd77aa120e5a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / nodeeditor_qtpy-0.8.2-py3-none-any.whl

Download URL nodeeditor_qtpy-0.8.2-py3-none-any.whl
Size 135.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60a543c72b94cfacb7becf3eee3a6e784d7677e23912d11cc053f695679714f4
BLAKE2b-256 checksum
How to use checksums
16714d255975d62c68181e8c16c8cdff9e9a892a222752a15fc0f3e39a83bd49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for nodeeditor-qtpy 0.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nodeeditor_qtpy-0.8.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page