Skip to main content

cwl-loader

PyPI - Version PyPI - Python Version

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.

[!IMPORTANT] The cwl-loader bundle CLI has moved to Transpiler Mate. This package continues to provide the Python API for loading and serializing CWL documents.

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

License

Licensed under the Apache License 2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cwl_loader-0.21.0.tar.gz (103.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cwl_loader-0.21.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file cwl_loader-0.21.0.tar.gz.

File metadata

  • Download URL: cwl_loader-0.21.0.tar.gz
  • Upload date:
  • Size: 103.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cwl_loader-0.21.0.tar.gz
Algorithm Hash digest
SHA256 42285a46509e5a9973740dd9d45887def1dbbb1e52f1bf3ce33754704250a5b4
MD5 5023ec292da301463220d9405d77a144
BLAKE2b-256 64c41a1b9a1af472703ac668eeb81b883ae965181dd7c27c0a14b1e8b5482ea1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwl_loader-0.21.0.tar.gz:

Publisher: package.yaml on Terradue/cwl-loader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cwl_loader-0.21.0-py3-none-any.whl.

File metadata

  • Download URL: cwl_loader-0.21.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cwl_loader-0.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c672542aabeaeef4f5252ad96ab05d0c8231a452dc4cde86de8cf6d26fd7794e
MD5 99b003c101e6ce80006856ab6dc013a7
BLAKE2b-256 3b32ea18a9b018e158a2b99f6f05d68b3129eb28939687cbd64067f4cfe27919

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwl_loader-0.21.0-py3-none-any.whl:

Publisher: package.yaml on Terradue/cwl-loader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.25.0

2 files

0.24.0

2 files

0.23.0

2 files

0.22.0

2 files

This release

0.21.0 This release

2 files

0.20.0

2 files

0.19.0

2 files

0.18.0

2 files

0.17.0

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 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