Skip to main content

FlowGraph Core

FlowGraph is the GUI-free Python workflow engine. It provides typed workflow composition, validation, persistence, execution, adapters, mesh and image data operations, browser-WASM execution support, and metadata-only catalog export for compatible external clients.

Alpha status: FlowGraph Core 0.1.x is an alpha series for evaluation, development, experimentation, and early adopter feedback. APIs and workflow behavior may change before 1.0.0. See Release Policy.

Incremental workflow execution

WorkflowExecutor remains stateless. Use WorkflowSession for selected targets, dependency-aware cache reuse, forced runs and session lifecycle. See Incremental execution for the Python API, node safety contracts, transport options and resource limits.

Development setup

uv sync --extra dev --extra io
uv run pytest
uv run ruff check .

See Contributing for prerequisites, development workflow, testing, documentation, and pull-request expectations.

Headless workflows

The flowgraph command is headless and has no GUI runtime dependency:

uv run flowgraph inspect workflow.json
uv run flowgraph inspect workflow.json --full
uv run flowgraph inspect workflow.json -i name=value --override node-id.parameter=value
uv run flowgraph run workflow.json --input name=value
uv run flowgraph run workflow.json -i name=value
uv run flowgraph run workflow.json --override node-id.parameter=value
uv run flowgraph run workflow.json --json-output results.json

Use --input or its short form -i for each published workflow input; repeat the option to provide multiple inputs. flowgraph inspect displays the resolved default to the right of each published input, or marks it as required or having conflicting saved values. Inspection is compact by default; add --full (or -f) to include the workflow graph. Arbitrary-code warnings remain visible in both modes. Inspection accepts the same --input / -i and --override assignments as execution: overrides update the displayed defaults, and explicit inputs take precedence and are marked (--input). It never executes nodes or saves changes. When an input is omitted, flowgraph run uses its downstream node's saved parameter value and prints a warning to stderr identifying the input, value, and parameter. This also works for directly exported parameters and nested workflow inputs. Explicit inputs take precedence; parameter overrides are applied before resolving defaults. Inputs without usable saved values remain required, and conflicting saved values require an explicit --input. For examples and warning output, see Omitted inputs and saved parameter values.

Workflows use the versioned flowgraph-workflow JSON format. Core validation and execution are UI-independent.

JSON execution boundary

Python clients and browser-hosted Python workers use the same entry point:

from flowgraph.application.workflow_execution import execute_workflow_json

result_json = execute_workflow_json(workflow_json)

The response includes execution order, public outputs, retained node values, display previews, warnings, and structured errors. A process-local node registry is reused, but each call reconstructs its workflow. This API does not provide a server, authentication, cancellation, or filesystem isolation.

Mesh display previews retain scalar values or vector magnitudes in fields and cell_fields. Multi-component fields additionally expose their original tuples in field_components and cell_field_components, indexed by vertex or surface triangle respectively, so viewers can select an individual component without rerunning the workflow. These preview projections do not modify the input mesh.

The former WASM-specific execution module has been removed without a compatibility alias. Browser clients must update their import and rebuild/stage their core wheel together; the workflow file and execution response formats are unchanged.

Experimental local server

The prototype branch includes an authenticated, loopback-only execution API:

uv run flowgraph serve --workspace /absolute/path/to/existing/workspace

Port 8765 and the allowed editor origin https://flowgraph-web.fbw-es.com are defaults; explicit --allow-origin values replace that origin. The editor still requires bearer authentication and browser local-network permission. Click the printed Open editor link to pass the token and port automatically; keep the link private.

It runs one workflow at a time in a cancellable native subprocess and provides runtime metadata, catalog, and workspace file endpoints. Core is API-only and never serves editor assets. Web and desktop clients own their GUI hosting and explicitly allow their origin with --allow-origin. Native workflow code is not sandboxed. See Local server API and limitations for authentication, request/response formats, examples, limits, and shutdown behavior.

Package artifacts

Build the portable, pure-Python source distribution and wheel with:

uv build --out-dir dist/

The resulting wheel is compatible with all supported Python platforms. See packaging/README.md for release details.

Conda, Docker, operating-system package managers, and third-party mirrors are not supported release channels at this time. See Release Channels for the release policy.

FlowGraph Core declares Python 3.11 or newer. CI covers Python 3.11, 3.12, 3.13, and 3.14 on GitHub-hosted Ubuntu, Windows, and macOS runners; a platform/version combination is supported only after its release-candidate job passes. See Support Policy for compatibility, deprecation, maintenance, and unsupported-use policies.

Catalog export

FlowGraph can export non-executable node metadata for tools that need to author or structurally validate workflow JSON:

uv run python -m flowgraph.application.workflow_web_catalog node-catalog.json

The catalog intentionally excludes node executors and other callable runtime behavior.

Documentation and support

Optional integrations

The io extra supplies meshio, Meshlane, pandas, h5py, Pillow, and openpyxl for mesh, table, and image I/O and image processing. Install it when your workflows use these libraries:

uv pip install 'flowgraph[io]'
# From a source checkout:
uv sync --extra io

The ml extra enables the PyPlaid adapter and the cosapp extra enables the CoSApp adapter. Neither extra is part of the minimum core support guarantee. Install an extra only when its upstream dependency, license terms, platform requirements, and integration behavior have been reviewed for the target release:

uv sync --extra ml
uv sync --extra cosapp

Optional adapters may execute external tools or user-provided models. Treat their workflows as trusted input and test the exact dependency versions before production use.

License

FlowGraph Core is licensed under the BSD 3-Clause License. Release compliance requires review of the exact dependency lockfile, build artifacts, third-party notices, native dependencies, and applicable license obligations.

Metadata

Release files for flowgraph 0.1.8

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

Source distribution (sdist)

Source distribution for flowgraph 0.1.8
File Size Uploaded Provenance Actions
flowgraph-0.1.8.tar.gz 2.0 MB With provenance Details for flowgraph-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flowgraph 0.1.8
File Interpreter ABI Platform Actions
flowgraph-0.1.8-py3-none-any.whl Python 3 none any Details for flowgraph-0.1.8-py3-none-any.whl

Total release size: 4.0 MB

Release files / flowgraph-0.1.8.tar.gz

Download URL flowgraph-0.1.8.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
262d7b667745a056f46ee1fe33175b40cd33823c4e3f791116a158329b6b82ac
BLAKE2b-256 checksum
How to use checksums
42bf3785f7d902c7a01a8dc7be9c0d6398a25f68e228357b2a12734590a8832f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 5, 2026.

Transparency log

Release files / flowgraph-0.1.8-py3-none-any.whl

Download URL flowgraph-0.1.8-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dc2a21155291ec2e70d83d4d5bf58fac25fa73acaff81122360e9736572f25dc
BLAKE2b-256 checksum
How to use checksums
3934c706bc3334cd59c8bec9fb3edbe1878e767c592e84b0cdb25c1e8e7f77ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 5, 2026.

Transparency log

Security for flowgraph 0.1.8

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 flowgraph-0.1.8.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 Nov 5, 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