Skip to main content

cwl2puml

PyPI - Version PyPI - Python Version

cwl2puml converts Common Workflow Language workflows into PlantUML diagrams.

It provides a Python API and a transpiler-mate plugin that write PlantUML source and optionally render PNG or SVG images through a PlantUML server.

Supported Diagrams

activity, component, class, sequence, state, ogc_processes_inputs, and ogc_processes_outputs.

Requirements

  • Python >=3.10

Local quality checks

Install Hatch and Taskfiles and then install the Git hook:

task quality:pre-commit:install

Every commit runs Ruff (including the configured McCabe complexity limit), Ruff formatting, mypy checks, Bandit security checks, and the pytest suite. Run the complete hook explicitly with:

task quality:pre-commit:run

Installation

For command-line use, install the runtime and plugin together:

pip install transpiler-mate-runtime "cwl2puml>=0.48.0"

For the Python library alone, use pip install cwl2puml. To install the current checkout, use pip install ..

CLI Usage

transpiler-mate cwl2puml --help
transpiler-mate cwl2puml --output ./out 'workflow.cwl#main'

Omit #main to render all workflows. Select diagram types by repeating --diagrams, and optionally request images:

transpiler-mate cwl2puml \
  --diagrams component \
  --diagrams sequence \
  --output ./out \
  --convert-image \
  --image-format svg \
  'workflow.cwl#main'

Output

The plugin writes <output>/<workflow.id>/<diagram>.puml, plus .png or .svg files when image conversion is enabled. The default output directory is ./docs; images are disabled by default. All seven diagram types are selected unless --diagrams is supplied.

See the plugin guide for all options and migration details, and the API guide for Python usage.

Development

Install Hatch with pip install hatch, then run the test matrix:

hatch run test:test

Run coverage:

hatch run test:test-cov

Format the code:

hatch run dev:lint

Run Ruff fixes:

hatch run dev:check

Documentation

Project documentation: https://Terradue.github.io/cwl2puml/

To preview the documentation locally, use an isolated environment:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install mkdocs mkdocs-mermaid2-plugin mkdocs-jupyter "mkdocstrings[python]" pymdown-extensions
mkdocs serve

Run mkdocs build --strict to validate the documentation. Notebook pages use their saved outputs; regenerate those outputs in Jupyter when updating examples.

Contributing

Open an issue at https://github.com/Terradue/cwl2puml/issues if you find a bug or want to propose a change.

License

Apache License, Version 2.0

Metadata

Release files for cwl2puml 0.49.0

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

Source distribution (sdist)

Source distribution for cwl2puml 0.49.0
File Size Uploaded
cwl2puml-0.49.0.tar.gz 298.2 kB Details

Built distribution (wheel)

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

Total release size: 315.6 kB

Release files / cwl2puml-0.49.0.tar.gz

Download URL cwl2puml-0.49.0.tar.gz
Size 298.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5472986b0f8b981891cd886b472a4db7a319cf98dfa623c20c00de7f82ad7678
BLAKE2b-256 checksum
How to use checksums
822aa3aad995d04e36f1fc6b08e6df080a08aa5abec67425938aa597c7deddb4
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 Sep 16, 2026.

Transparency log

Release files / cwl2puml-0.49.0-py3-none-any.whl

Download URL cwl2puml-0.49.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffe008f75920cf37c51cbd36f417428d38842a00a28a2c47e2ec4298262f6244
BLAKE2b-256 checksum
How to use checksums
8cd6ea67a46a67fd1758a44170529e0227cb42a3b1824c621ac84969ca2644e2
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 Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.49.1

2 release files

This release

0.49.0 This release

2 release files

0.48.0

2 release files

0.47.0

2 release files

0.46.0

2 release files

0.45.0

2 release files

0.44.0

2 release files

0.43.0

2 release files

0.42.0

2 release files

0.41.0

2 release files

0.36.0

2 release files

0.35.0

2 release files

0.34.0

2 release files

0.33.0

2 release files

0.32.0

2 release files

0.29.0

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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