No project description provided
Project description
cwl-utils
A collection of scripts to demonstrate the use of the new Python classes for loading and parsing CWL v1.0 , CWL v1.1, and CWL v1.2 documents.
Install
Requires Python 3.6+
virtualenv -p python3.6 venv3.6 # Python 3.7, 3.8, or 3.9 would also work
source venv3.6/bin/activate
pip install cwl-utils
or install the latest development version of cwl-utils
git clone https://github.com/common-workflow-language/cwl-utils.git
cd cwl-utils
virtualenv -p python3.6 venv3.6 # Python 3.7, 3.8, or 3.9 would also work
source venv3.6/bin/activate
pip install .
Usage
Pull the all referenced software container images
docker_extract.py
is useful to cache or pre-pull all software container images
referenced in a CWL CommandLineTool or CWL Workflow (including all referenced
CommandLineTools and sub-Workflows and so on).
The default behaviour is to use the Docker engine to download and save the software container images in Docker format.
python docker_extract.py DIRECTORY path_to_my_workflow.cwl
Or you can use the Singularity software container engine to download and save the software container images and convert them to the Singularity format at the same time.
python docker_extract.py --singularity DIRECTORY path_to_my_workflow.cwl
Development
Regenerate parsers
To regenerate install the schema_salad
package and run:
cwl_utils/parser_v1_0.py
was created via
schema-salad-tool --codegen python https://github.com/common-workflow-language/common-workflow-language/raw/main/v1.0/CommonWorkflowLanguage.yml
cwl_utils/parser_v1_1.py
was created via
schema-salad-tool --codegen python https://github.com/common-workflow-language/cwl-v1.1/raw/main/CommonWorkflowLanguage.yml
cwl_utils/parser_v1_2.py
was created via
schema-salad-tool --codegen python https://github.com/common-workflow-language/cwl-v1.2/raw/main/CommonWorkflowLanguage.yml
Release
To release CWLUtils, bump the version in cwl_utils/__meta__.py
, and tag that
commit with the new version. TravisCI should release that tag.
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
File details
Details for the file cwl-utils-0.9.tar.gz
.
File metadata
- Download URL: cwl-utils-0.9.tar.gz
- Upload date:
- Size: 189.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7839ee6980dd2d54682cd5c1e9b19c522a09607821689f7795d346bb117c0b3 |
|
MD5 | 140d071d3f937dd73db6259f2cbeaf1e |
|
BLAKE2b-256 | 9a1fd99d30c8bc20f664466623599492829bec26e97df95fa688a1bec49b0c50 |
Provenance
File details
Details for the file cwl_utils-0.9-py3-none-any.whl
.
File metadata
- Download URL: cwl_utils-0.9-py3-none-any.whl
- Upload date:
- Size: 234.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ebafb910ef170916ae8e358f09d7e10841f2829218ac0570e195dacb3bb04e8 |
|
MD5 | 7258bf70919368b9bc9699a661ea9d1f |
|
BLAKE2b-256 | 91c6a26a1abbbb0333bb114f8ceaab2993888427c1b1efc300980e96d47397b8 |