Utility to load a CWL (remote) document
Project description
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
License
Licensed under the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cwl_loader-0.16.0.tar.gz.
File metadata
- Download URL: cwl_loader-0.16.0.tar.gz
- Upload date:
- Size: 94.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
617ca278c5ae78e402554e5494ad01ed2e9ea0d454c280b2bfbcb1283fcd5ce1
|
|
| MD5 |
e982ee3ceeeb959663d5d36200449246
|
|
| BLAKE2b-256 |
fbae9e0257ca924307986cba3d891373d5cd3984b4273ab14908583a1a1805e9
|
Provenance
The following attestation bundles were made for cwl_loader-0.16.0.tar.gz:
Publisher:
package.yaml on Terradue/cwl-loader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwl_loader-0.16.0.tar.gz -
Subject digest:
617ca278c5ae78e402554e5494ad01ed2e9ea0d454c280b2bfbcb1283fcd5ce1 - Sigstore transparency entry: 1255321879
- Sigstore integration time:
-
Permalink:
Terradue/cwl-loader@c7686c56daf6cc5e01b1b8dd00ec0ff77cd2afb9 -
Branch / Tag:
refs/tags/v0.16.0 - Owner: https://github.com/Terradue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yaml@c7686c56daf6cc5e01b1b8dd00ec0ff77cd2afb9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cwl_loader-0.16.0-py3-none-any.whl.
File metadata
- Download URL: cwl_loader-0.16.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca504baa0d892858cccdba11f205ca2b3c983b534ffc6377f28b2312e6e04acb
|
|
| MD5 |
e2d5336ce6cf71f9215e7d9c95a021f1
|
|
| BLAKE2b-256 |
defa653f17d7baf532235d2b7258c7680875903cff0fd98559608ab6f485d4ee
|
Provenance
The following attestation bundles were made for cwl_loader-0.16.0-py3-none-any.whl:
Publisher:
package.yaml on Terradue/cwl-loader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwl_loader-0.16.0-py3-none-any.whl -
Subject digest:
ca504baa0d892858cccdba11f205ca2b3c983b534ffc6377f28b2312e6e04acb - Sigstore transparency entry: 1255321997
- Sigstore integration time:
-
Permalink:
Terradue/cwl-loader@c7686c56daf6cc5e01b1b8dd00ec0ff77cd2afb9 -
Branch / Tag:
refs/tags/v0.16.0 - Owner: https://github.com/Terradue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yaml@c7686c56daf6cc5e01b1b8dd00ec0ff77cd2afb9 -
Trigger Event:
push
-
Statement type: