Skip to main content

geoweaver_cwl

geoweaver_cwl is a python tool wrapper for translating Geoweaver AI - workflows into Common Workflow Language (CWL). CWL is an open standard for describing how to run command-line tools and connect them to create workflows. Tools and workflows described using CWL are portable across a variety of platforms that support the CWL standards. Researchers who are using Geoweaver can use it to translate their workflows and get the formatted CWL files for the existing workflows.

The code is written in Python 3.

Installation

For installation use the following command:

pip install geoweaver_cwl

Example Usage

Import the package

from geoweaver_cwl import translator as tr

The json file will be converted to CWL format using generate_cwl function. It will also create a subdirectory called elementary_cwl_files, which will translate all the python files used in the workflow to CWL.

tr.generate_cwl('workflow.json')

The output should look like this and you should be able to see a workflow.cwl file and elementary_cwl_files in the folder:

Output file: workflow.cwl
Writing header...
Writing steps...
CWL file written to workflow.cwl

The generate_yml function produces a YML file, which you should see in the exiting directory. *Note: specify the name you want to give to your yml file in the function; in our example, we've called it "input."

tr.generate_yml('input.yml')

The output should look like this and you should be able to see a YML file in the folder:

Writing YML file...
YML file created ...

Release files for geoweaver-cwl 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoweaver-cwl 0.0.1
File Size Uploaded
geoweaver_cwl-0.0.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geoweaver-cwl 0.0.1
File Interpreter ABI Platform
geoweaver_cwl-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / geoweaver_cwl-0.0.1.tar.gz

Download URL geoweaver_cwl-0.0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df38eecf72bae9e3748578e20e793076d33eb46dce38aaba21b29bac88036342
BLAKE2b-256 checksum
How to use checksums
5d5585df2a9010be1b17f8247867e936c4f8739f487f267d6026d1b7ee4363b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.8

Release files / geoweaver_cwl-0.0.1-py3-none-any.whl

Download URL geoweaver_cwl-0.0.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2387e865b40b2353386a5ce469755975481bfd495af671c1c403d35086433b6d
BLAKE2b-256 checksum
How to use checksums
0e5ffc7705539ab1d8445d070e66dd24ac5087b3e8526732bee9befe4d1836d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release 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