Skip to main content

Utility to load a CWL (remote) document

Project description

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.

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.

Project details


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.19.0.tar.gz (104.0 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.19.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cwl_loader-0.19.0.tar.gz
  • Upload date:
  • Size: 104.0 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.19.0.tar.gz
Algorithm Hash digest
SHA256 1c1dbad5c79472cbdae23e084ae5cef843cff334c00071fa15e4a481bbf1cb7c
MD5 ffef59b59cc6bfe992364df6aa177a1c
BLAKE2b-256 54d748f87dfda3c7afb8fb4ede7436fce0aaa305e6c870290eb5c034fb9fc394

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwl_loader-0.19.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.19.0-py3-none-any.whl.

File metadata

  • Download URL: cwl_loader-0.19.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a20c6e63945bbc9a02451193eab58b938988d51cd40c2ecc525c09cfe01fa93
MD5 5975e9b1b8496fb35fd3dbdaf46a7a10
BLAKE2b-256 5a9b928f96e1cfc7d5ad15cd798c961d1c79e2f3bbf6b1d856cc873cc58a3882

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwl_loader-0.19.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page