nyx
Nyx is a nodal execution graph written in Python. You build a stage: a tree of nodes whose components are connected by links. Data links move values between components, flow links decide which node runs next. Running the stage executes the nodes in order.
- Editor. A PySide6 application to build, inspect and run stages.
- Headless runner. The same stages run from the command line, for batch jobs and CI.
- Plugins. New nodes, components, datatypes and notes are plain Python classes registered by a plugin. Any Python function can become a node.
- Bridge. Stages can send code to other applications (Maya, Blender, anything that runs Python) over a small TCP protocol, and use the results in the graph.
Installation
Nyx requires Python 3.14.3 (pinned in pyproject.toml).
From source
The project uses uv.
git clone https://github.com/sowwic/nyx.git
cd nyx
uv sync --locked --dev
uv run nyx # open the editor
As a package in your project
Nyx is published on PyPI. Its other dependencies
(sowwic-json-config, sowwic-json-config-qt and sowwic-nyx-bridge) come from PyPI too.
uv add sowwic-nyx
# or
pip install sowwic-nyx
Or declare it in the pyproject.toml of your project:
[project]
requires-python = "==3.14.3"
dependencies = ["sowwic-nyx"]
To try an unreleased version, install it from git instead:
uv add "sowwic-nyx @ git+https://github.com/sowwic/nyx@<branch or tag>"
Then import from the public API, which is what plugins use too. Nothing outside
nyx.api.v1 is a stable interface.
from nyx.api.v1 import Stage, NYX_REGISTRY, NyxPlugin, NyxPluginManager
Running a stage from your own code needs the plugins loaded, which NyxApplication
does at startup:
from PySide6 import QtWidgets
from nyx.api.v1 import Stage
from nyx.application import NyxApplication
app = NyxApplication() # loads the config and the plugins
stage = Stage() # keep the reference, nodes don't hold the stage
stage.import_json("path/to/stage.nyx")
stage.crawler.start()
app.session.shutdown()
NyxApplication is a QApplication without any window. Use NyxEditorApplication
(nyx.application) when you want the editor.
Command line
nyx # open the editor
nyx stage run path/to/stage.nyx # run a stage without the editor
nyx-run-stage path/to/stage.nyx # the same, as one command
stage run loads the plugins, starts the bridge server (so stages with Remote Client
nodes can reach Maya, Blender, ...) unless --no-bridge is given, and runs the stage
once. --port N replaces the configured bridge port for the run. The config is read
but never saved.
Exit codes: 0 the stage ran, 1 it failed (the log names the node), 2 the file was
not found or could not be loaded.
Standalone build
Nyx can be packaged as an application with PyInstaller. PyInstaller does not
cross-compile, so build on the platform you ship for. The build is driven by
scripts/build.py, which works without make (use it on Windows):
uv run python scripts/build.py build-app # or: make build-app
| Command | Result |
|---|---|
build-app |
Compiles the Qt resources, generates the icons and runs PyInstaller. Output: dist/nyx.app (macOS) or dist/nyx/ (Linux, Windows). |
archive-app |
build-app, then a zip (macOS, Windows) or tar.gz (Linux): dist/nyx-<version>-<os>-<arch>. |
test-app |
Runs the built executables: --help, a missing file (exit code 2) and a real stage. |
install-app |
Copies dist/nyx.app to /Applications (macOS). |
install-cli |
Links the nyx and nyx-run-stage commands of the app into a bin directory such as /usr/local/bin. |
qrc, icons |
Only compile the Qt resources, or generate the icon file of this platform. |
Each make target of the same name calls the script. The version comes from the
VERSION file. The built app contains nyx (the editor, also nyx stage run) and
nyx-run-stage. On Linux the folder also gets a .desktop entry and an icon.
Plugins outside the application are still found by the built app: set the
plugin_paths config value or NYX_PLUGIN_PATH, see below.
Plugins
Everything a stage can contain comes from a plugin: nodes, node components, datatypes, notes and groups ("util objects") and the graphics items that draw them. The built-in ones are plugins too:
| Plugin | Provides |
|---|---|
nyx.stdlib |
The core: flow, value, script, file components and the core nodes (branch, loops, getter/setter, reference, remote nodes, ...), notes and groups. |
nyx/plugins/functions/* |
Function nodes for math, strings, lists, dictionaries, paths, files, JSON, regex, dates, random, encoding, logic and system operations. |
A plugin is a folder with a nyx_plugin.py file defining a NyxPlugin subclass. Nyx
searches for nyx_plugin.py files recursively in:
- the standard library plugin (
nyx.stdlib), - the built-in plugins (
nyx/plugins), - every directory in the
plugin_pathsconfig value, - every directory in the
NYX_PLUGIN_PATHenvironment variable (separated by:on Linux and macOS,;on Windows).
Minimal plugin that turns two functions into nodes:
# my_plugins/greetings/nyx_plugin.py
import typing
from nyx.api.v1 import NyxPlugin, NyxPluginManager
def greet(name: str, excited: bool = False) -> str:
"""Build a greeting.
Args:
name: Who to greet.
excited: Add an exclamation mark.
"""
return f"Hello, {name}{'!' if excited else '.'}"
@NyxPluginManager.register_plugin()
class GreetingsPlugin(NyxPlugin):
@classmethod
def get_type_id(cls) -> str:
return "GreetingsPlugin"
@classmethod
def initialize(cls) -> typing.Self:
plugin = cls()
plugin.contents.register_function_node(greet, type_id="function:greetings.greet")
return plugin
NYX_PLUGIN_PATH=/path/to/my_plugins nyx
The developer guide shows how to add every kind of plugin content: nodes, function nodes, components, QML editors for components, datatypes, util objects and graphics objects.
Bridge
Many pipelines need a graph to drive other applications: open a scene in Maya, export from Blender, call a tool that only exists inside a DCC. Nyx does this through the bridge:
- Nyx is the TCP server. The external process is the client and connects out to it, so the application that executes code never listens on a port.
- The server starts with the application (config section
bridge), generates a token and writes its address and token tobridge.jsonin the Nyx data directory. Clients read that file to find the server, so no setup is needed on the same machine. - A Remote Client node waits for a matching client to connect. The Remote Action
nodes inside it send a Python script or a
module:functionentry point to that client, and the value the code assigns toresultcomes back as the node output. - The optional Launch Process node starts the client itself (for example a headless Blender), waits for it to connect and stops it when its nodes are done.
Protocol, client and server classes live in a separate, dependency-free package so they can be imported inside the Python of a DCC (which cannot install Nyx itself). See Related projects for the repositories.
See the user guide ("Remote nodes") for how a stage uses the bridge.
Related projects
| Repository | Purpose |
|---|---|
| sowwic/nyx-bridge | Protocol, BridgeServer and the base NyxClient. Python 3.11+, no dependencies. Never imports Nyx or Qt. |
| sowwic/nyx-bridge-maya | Maya client implementation of the bridge. |
| sowwic/nyx-bridge-blender | Blender client implementation of the bridge. |
Development
make check # ruff + tests
make pytest # tests only
make lint-fix # ruff autofix
make format # ruff format
make qrc # regenerate resources_rc.py after editing .qrc files or icons
make mkdocs # documentation server
develop is the default and PR branch, main is the release branch.
License
MIT, see LICENSE.
Metadata
Release files for sowwic-nyx 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sowwic_nyx-1.0.1.tar.gz | 11.3 MB | Without provenance | Details for sowwic_nyx-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sowwic_nyx-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for sowwic_nyx-1.0.1-py3-none-any.whl |
Total release size: 22.8 MB
Release files / sowwic_nyx-1.0.1.tar.gz
| Download URL | sowwic_nyx-1.0.1.tar.gz |
|---|---|
| Size | 11.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b76109229027cd288238cf34d764be7d3144aacb945cb1ceacd82689efbcf9a
|
|
BLAKE2b-256 checksum How to use checksums |
dde600f3305649c04c52277df50ad0c78f594f187c92710670131ef19d90d447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / sowwic_nyx-1.0.1-py3-none-any.whl
| Download URL | sowwic_nyx-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1854d724bd5b9610eec52906a7992fe2bd77aa5c81145b1b2fbdf7e5d0df4e52
|
|
BLAKE2b-256 checksum How to use checksums |
9e0b392d6c3b75850c668aa9235e79f2dc0f763d82473c08b4ced0677b21c73b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for sowwic-nyx 1.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.