Skip to main content

cwl2ogc

PyPI - Version PyPI - Python Version

cwl2ogc converts CWL workflow/tool inputs and outputs into:

  • OGC API - Processes I/O descriptors
  • JSON Schema documents for those I/O definitions

This is useful when publishing CWL-based application packages through OGC API - Processes interfaces.

Why

The OGC API - Processes Deploy/Replace/Undeploy workflow requires a process description that exposes valid input and output metadata. cwl2ogc helps generate that description directly from CWL definitions.

Installation

pip install cwl2ogc

Python 3.10+ is required.

Quick Start (transpiler-mate plugin)

Install the runtime and plugin in the same Python environment:

pip install transpiler-mate-runtime "cwl2ogc>=0.20.0"

Generate OGC input/output descriptions from your CWL document:

transpiler-mate cwl2ogc --output processes.json workflow.cwl

Show command help:

transpiler-mate cwl2ogc --help

The output contains application metadata and a processes mapping keyed by CWL process ID. See the plugin guide for source requirements and output details.

Quick Start (Python API)

from cwl_utils.parser import load_document_by_uri
from cwl2ogc import BaseCWLtypes2OGCConverter

workflow = load_document_by_uri("tests/artifacts/cwl-types/inp.cwl#inp")
converter = BaseCWLtypes2OGCConverter(workflow)

inputs = converter.get_inputs()
outputs = converter.get_outputs()

inputs_json_schema = converter.get_inputs_json_schema()
outputs_json_schema = converter.get_outputs_json_schema()

Playground

Requirements:

  • docker
  • task

Run the published playground image:

task run-playground

Build and run the local playground image:

task run-playground-dev

Open http://127.0.0.1.

Development

Install development tooling with Hatch and run checks:

hatch run test:test-q
hatch run dev:check
hatch run dev:lint

Equivalent Taskfile targets:

task test
task check
task lint

Documentation

Project docs: https://transpiler-mate.github.io/cwl2ogc//

Plugin and CLI docs: docs/plugin.md

Contributing

Issues and pull requests are welcome: https://github.com/transpiler-mate/cwl2ogc/issues

Local quality checks

Install Hatch and Taskfiles then install the Git hook:

task quality:pre-commit:install

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

task quality:pre-commit:run

License

Apache License, Version 2.0

Metadata

Release files for cwl2ogc 0.22.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 cwl2ogc 0.22.0
File Size Uploaded
cwl2ogc-0.22.0.tar.gz 175.3 kB Details

Built distribution (wheel)

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

Total release size: 188.8 kB

Release files / cwl2ogc-0.22.0.tar.gz

Download URL cwl2ogc-0.22.0.tar.gz
Size 175.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b7b40f49c81bb439c51d0fa80272259700d8907bbb5e551f66fd2cdfb6cc738f
BLAKE2b-256 checksum
How to use checksums
ed997c89e8dcf15ee488db3b3ddc1cc695b2b2b98cacaf3e598153b7b9b133f0
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 18, 2026.

Transparency log

Release files / cwl2ogc-0.22.0-py3-none-any.whl

Download URL cwl2ogc-0.22.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78a1f18f24774f77216f962db902f5b9a88466f487c5cb727c7d6f80f5453b96
BLAKE2b-256 checksum
How to use checksums
d86134d9a7f69370930b9f50c0adeb26288b5f4d44aa099d81f8d336c789d430
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 18, 2026.

Transparency log
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