cwl_utils.normalizer

Normalize CWL documents to CWL v1.2, JSON style.

Attributes

defaultStreamHandler

Functions

pack(cwl_path)

load_document_by_yaml(yaml, uri[, loadingOptions])

Shortcut to load via a YAML object.

save(val[, top, base_url, relative_uris])

arg_parser()

Build the argument parser.

parse_args(args)

Parse the command line arguments.

main()

Console entry point.

run(args)

Primary processing loop.

Module Contents

cwl_utils.normalizer.pack(cwl_path)
Parameters:

cwl_path (str) –

Return type:

Dict[str, Any]

cwl_utils.normalizer.load_document_by_yaml(yaml, uri, loadingOptions=None)

Shortcut to load via a YAML object. yaml: must be from ruamel.yaml.main.YAML.load with preserve_quotes=True

Parameters:
Return type:

Any

cwl_utils.normalizer.save(val, top=True, base_url='', relative_uris=True)
Parameters:
  • val (Any) –

  • top (bool) –

  • base_url (str) –

  • relative_uris (bool) –

Return type:

save_type

cwl_utils.normalizer.defaultStreamHandler
cwl_utils.normalizer.arg_parser()

Build the argument parser.

Return type:

argparse.ArgumentParser

cwl_utils.normalizer.parse_args(args)

Parse the command line arguments.

Parameters:

args (List[str]) –

Return type:

argparse.Namespace

cwl_utils.normalizer.main()

Console entry point.

Return type:

None

cwl_utils.normalizer.run(args)

Primary processing loop.

Parameters:

args (argparse.Namespace) –

Return type:

int