Module eoap_cwlwrap
EOAP CWLWrap is a command-line utility that composes a CWL Workflow
from a series of Workflow
/CommandLineTool
steps, defined according to Application package patterns based on data stage-in and stage-out behaviors commonly used in EO workflows, and packs it into a single self-contained CWL document.
EOAP CWLWrap (c) 2025
EOAP CWLWrap is licensed under Creative Commons Attribution-ShareAlike 4.0 International.
You should have received a copy of the license along with this work. If not, see https://creativecommons.org/licenses/by-sa/4.0/.
Sub-modules
Variables
URL_SCHEMA
Functions
wrap
def wrap(
workflows: Union[cwl_utils.parser.cwl_v1_2.Workflow, list[cwl_utils.parser.cwl_v1_2.Workflow]],
workflow_id: str,
stage_out: cwl_utils.parser.cwl_v1_2.Workflow,
directory_stage_in: Optional[cwl_utils.parser.cwl_v1_2.Workflow] = None,
file_stage_in: Optional[cwl_utils.parser.cwl_v1_2.Workflow] = None
) -> list[cwl_utils.parser.cwl_v1_2.Workflow]
Composes a CWL Workflow
from a series of Workflow
/CommandLineTool
steps, defined according to Application package patterns based on data stage-in and stage-out behaviors commonly used in EO workflows, and packs it into a single self-contained CWL document.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
workflows |
Workflows |
The CWL document object model (or models, if the CWl is a $graph ) |
None |
workflow_id |
str |
ID of the workflow | None |
stage_out |
Workflow |
The CWL stage-out document object model | None |
directory_stage_in |
Optional[Workflow] |
The CWL stage-in file for Directory derived types |
None |
file_stage_in |
Optional[Workflow] |
The CWL stage-in file for File derived types |
None |
Returns:
Type | Description |
---|---|
list[Workflow] |
The composed CWL $graph . |
wrap_raw
def wrap_raw(
workflows: Mapping[str, Any],
workflow_id: str,
stage_out: Mapping[str, Any],
directory_stage_in: Optional[Mapping[str, Any]] = None,
file_stage_in: Optional[Mapping[str, Any]] = None
) -> list[cwl_utils.parser.cwl_v1_2.Workflow]
Composes a CWL Workflow
from a series of Workflow
/CommandLineTool
steps, defined according to Application package patterns based on data stage-in and stage-out behaviors commonly used in EO workflows, and packs it into a single self-contained CWL document.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
workflows |
Mapping[str, Any] |
The CWL document object model (or models, if the CWl is a $graph ) |
None |
workflow_id |
str |
ID of the workflow | None |
stage_out |
Mapping[str, Any] |
The CWL stage-out document object model | None |
directory_stage_in |
Optional[Mapping[str, Any]] |
The CWL stage-in file for Directory derived types |
None |
file_stage_in |
Optional[Mapping[str, Any]] |
The CWL stage-in file for File derived types |
None |
Returns:
Type | Description |
---|---|
list[Workflow] |
The composed CWL $graph . |