cwl-loader
cwl-loader provides utilities to load CWL documents (local files, URLs, streams, or strings) into cwl-utils object models, normalize references, and sort dependency graphs.
Installation
pip install cwl-loader
Quick Start
Load a CWL document from a URL or local path:
from cwl_loader import load_cwl_from_location
process = load_cwl_from_location("workflow.cwl")
Load from in-memory text:
from cwl_loader import load_cwl_from_string_content
content = """
cwlVersion: v1.2
class: CommandLineTool
id: example-tool
baseCommand: echo
inputs: []
outputs: []
"""
process = load_cwl_from_string_content(content)
Dump back to YAML:
from cwl_loader import dump_cwl
with open("normalized.cwl", "w", encoding="utf-8") as out:
dump_cwl(process, out)
Development
Run tests:
task test
Or directly with Hatch:
hatch run test:test
Run code quality checks:
task check
task lint
Documentation
Project documentation is published at: https://Terradue.github.io/cwl-loader/
Contributing
Issues and pull requests are welcome: https://github.com/eoap/cwl-loader/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
Release files for cwl-loader 0.26.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cwl_loader-0.26.0.tar.gz | 109.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cwl_loader-0.26.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 127.0 kB
Release files / cwl_loader-0.26.0.tar.gz
| Download URL | cwl_loader-0.26.0.tar.gz |
|---|---|
| Size | 109.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab1426bdbbf3be00280ad12178fa8035c7ade5a3f55211120e7c8921a11e13df
|
|
BLAKE2b-256 checksum How to use checksums |
2f73ad4d2591b9e7e2046e1659584d693bcc6caf1e9c3a57362138bec61f9d31
|
| 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 21, 2026.
Transparency logRelease files / cwl_loader-0.26.0-py3-none-any.whl
| Download URL | cwl_loader-0.26.0-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93b6446d66e1e452cd2a6115c91f9039d9b4c2c996e6f8c0d9acbbc5d97e1870
|
|
BLAKE2b-256 checksum How to use checksums |
3ed1afbd96d69c6c929adb9127a03549ebe6a34f0984d8a6781576f133da0465
|
| 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 21, 2026.
Transparency log