Skip to main content

Workflow Canvas

PyPI CI Documentation License: BSD-3-Clause

A visual dry-lab notebook for reproducible analysis.

Workflow Canvas (wfc) turns your analysis, in Python, R or bash, into a pipeline you can see, and records the exact code, data, settings and software behind each result, so anyone can rerun it and check that it matches.

Your AI agent can build the pipeline from your existing scripts and notebooks; you can write it yourself, or mix the two. Either way, every result is reproducible.

Most analysis folders hold things that make a result hard to reproduce: hard-coded paths, a random step with no seed, a threshold picked by eye, a helper shared between notebooks. Convert an Analysis into a Pipeline takes an example folder with all of these and turns it into a pipeline, step by step.

For researchers, scientists and PhD students who want their analysis organized, reproducible, and easy to pass on to others.

The Canvas Builder with the demo pipeline wired: three samples fanned across five methods

Build it with an AI agent

The wfc plugin teaches Claude Code and Codex how Workflow Canvas works. Ask in plain words to set up a project, turn one of your scripts into a pipeline step, run it, or explain why a run failed. The agent tries each step on your data as a draft, shows you every change it made, and registers nothing until you agree. What it builds appears in the Canvas, with each step's settings and the results of every run.

In Claude Code (run each line in a terminal):

claude plugin marketplace add ddpoe/workflow-canvas
claude plugin install wfc@workflow-canvas

In Codex:

codex plugin marketplace add ddpoe/workflow-canvas
codex plugin add wfc@workflow-canvas

The plugin has three skills:

  • using-wfc: working with wfc, from setting up a project to reading a failed run.
  • creating-a-wfc-method: bringing one script in as a method.
  • converting-an-analysis-to-a-wfc-pipeline: handing over a whole analysis, a folder of notebooks and scripts, and getting back a pipeline you approved step by step, with a record of every change.

Each is a plain folder under plugins/wfc/skills/, with a SKILL.md, that you can copy into either tool's skills folder. For chats on claude.ai or ChatGPT, the desktop app and other agents, see Work with an AI Agent.

Your agent sends what you type and the files it reads to its provider: see Anthropic's Data usage page or OpenAI's privacy policy.

Key Features

Feature What it does
AI agent plugin Skills for Claude Code and Codex that set up a project, turn your scripts or a whole analysis into pipeline steps, run them and explain failures. Nothing is registered until you agree.
Drafts Run a step on your data as often as you like before registering it. Nothing a draft does is recorded.
Rerun bundles Export any result, with its samples and every step that led to it, as one zip that reruns on another computer with Python and Docker and checks each output against yours.
Core pipeline Register modules, methods, and samples; build a pipeline in the Canvas; generate and execute a Snakefile (wfc run-pipeline).
Contracts Two-tier validation (module + method) declared in method.yaml — wiring errors and missing outputs are caught before a run starts.
Caching A clean-git run gate plus a SHA-256 cache key over code, inputs, parameters, and the resolved container image — unchanged steps are skipped automatically; changing one method re-runs only what it touched.
Lineage Every run is recorded in SQLite; trace any output back through its full DAG ancestry (cache hits appear as audit rows).
Environments Methods run in containers built from a pixi, conda, or bring-your-own (byo) backend via wfc register-env; image digests are pinned in .wfc/envs.json.
Parameter sweeps & fan-out Sweep parameters, fan out across variants and per-sample overrides, and reuse values with pipeline variables.
Canvas A browser-based UI (wfc canvas) with three views: a drag-and-drop Builder, a run-History viewer with lineage and artifacts, and a Registry browser.

Under the hood

Workflow Canvas tracks your methods, their input/output contracts, run lineage, and content-addressed caching in a local SQLite database, then compiles pipelines to Snakemake Snakefiles so Snakemake handles execution, parallelism, and dependency resolution. Every method runs inside a container, and every output is stored in a content-addressed archive (DVC), so results are reproducible and re-running an unchanged pipeline does no duplicate work.

A method is an ordinary script that reads a few environment variables and writes files, so it does not need to import wfc. You declare its contract (inputs, outputs and parameters) in method.yaml; registering the method checks a Python script against that contract and commits a copy of the code to git. wfc-client is a separate, optional Python helper library: its @wfc.method decorator does the reading and writing for you.

Requirements

  • Python 3.12 — required.
  • Docker — required. Methods always run inside a container; nothing runs without a working Docker installation. wfc init pre-flights it and wfc doctor checks it.
  • Git — required, but local only. wfc commits a method's code once, when you register it. A run makes no commit: it records the commit the project is at, and refuses to start on uncommitted code. No GitHub account, login, or network is involved; wfc never pushes.

DVC and Snakemake ship with Workflow Canvas — you do not install them separately.

Installation

# Installs the wfc CLI, plus bundled DVC and Snakemake
pip install workflow-canvas

# Verify
wfc --help

wfc runs on Python 3.12 only; on another Python, pip refuses it or installs an old release. Install Workflow Canvas sets up Python 3.12, Docker and git step by step.

Quick Start

New to Workflow Canvas? Start with the Your First Pipeline tutorial in the documentation.

For the fastest first look, wfc demo populates a freshly initialized project with a complete runnable example pipeline and opens it in the Canvas (wfc demo --remove takes it back out):

wfc init --dir ./demo_project && cd demo_project && wfc demo

To have an agent do the setup instead, add the plugin (Build it with an AI agent) and ask it: Set up a wfc project here.

The steps below show the same setup done manually with your own code and data:

# 1. Initialize a project (guided wizard: scaffolds dirs, configures an output
#    archive, sets up a local git repo, and pre-flights Docker)
wfc init --dir ./my_project
cd my_project

# Optional: check that the project is ready to run (git, archive, Docker)
wfc doctor

# 2. Build and register the container environment your methods will run in.
#    Docs → "Register an Environment"
wfc register-env analysis conda:analysis

# 3. Register a module (from a module.yaml, recommended).
#    Docs → "Register a Module"
wfc register-module --name cell_analysis --module-dir src/cell_analysis

# 4. Register a method (reads the contract in its method.yaml and checks the
#    script against it).
#    Docs → "Write a Method in Python" and "Write a Method"
wfc register-method src/cell_analysis/preprocess --module cell_analysis

# 5. Register input data (content-hashed into the DVC store).
#    Docs → "Register Samples"
wfc register-sample --name CFPAC_ERKi --source /data/raw/cfpac_erki.csv

# 6. Build a pipeline in the Canvas and save it, then run the file.
#    Docs → "Run and Inspect Your Pipelines"
wfc run-pipeline --pipeline pipelines/my_pipeline.json --cores 4

Visual Canvas

wfc canvas        # serves the UI at http://127.0.0.1:8500 by default

Use the Builder to assemble pipelines by dragging and wiring method nodes, the History view to browse past runs (lineage chains, params, metrics, artifacts), and the Registry to inspect everything registered in the project. See the Use the Canvas how-to in the documentation for a walkthrough.

Project Structure

A project is a local git repository. wfc keeps its config, its database and the registered copy of each method in .wfc/, and the output files in an archive folder outside the repository; your own method source lives wherever you keep it (for example src/). Back up both .wfc/ and the archive folder to keep results recoverable. Project Anatomy maps every folder.

Documentation

Full user documentation, with tutorials, how-to guides, the reference and explanations, is published at workflow-canvas.readthedocs.io.

Contributing

Bug reports, questions and pull requests are welcome. See CONTRIBUTING.md for how to set up a development environment, run the tests and build the docs, and the Code of Conduct for how we work together.

License

See LICENSE.

Metadata

Release files for workflow-canvas 0.8.1

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

Source distribution (sdist)

Source distribution for workflow-canvas 0.8.1
File Size Uploaded Provenance Actions
workflow_canvas-0.8.1.tar.gz 3.0 MB Without provenance Details for workflow_canvas-0.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for workflow-canvas 0.8.1
File Interpreter ABI Platform Actions
workflow_canvas-0.8.1-py3-none-any.whl Python 3 none any Details for workflow_canvas-0.8.1-py3-none-any.whl

Total release size: 6.3 MB

Release files / workflow_canvas-0.8.1.tar.gz

Download URL workflow_canvas-0.8.1.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
901b6cde3391b22a77593289f6cdcc51950d678d69a427d8c246e9691d5e6668
BLAKE2b-256 checksum
How to use checksums
ac58829f0e43e74f43132763d954b8241fbd2a9054fb65c47777889b6271ce13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.9 Windows/10

Release files / workflow_canvas-0.8.1-py3-none-any.whl

Download URL workflow_canvas-0.8.1-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
35d33fb2606f2682fb3045120f0dfe377ad7c95de94436b5f3de161a443639e4
BLAKE2b-256 checksum
How to use checksums
401d6e6a2edcd723f381c336825caf427debfd10e50379d31aae1646fc70fc23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.9 Windows/10

Security for workflow-canvas 0.8.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.

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 release files No provenance

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