cwltool.pack

Reformat a CWL document and all its references to be a single stream.

Module Contents

Functions

find_run(d, loadref, runs)

find_ids(d, ids)

replace_refs(d, rewrite, stem, newstem)

import_embed(d, seen)

pack(loadingContext, uri, rewrite_out = None, loader = None)

Attributes

LoadRefType

cwltool.pack.LoadRefType
cwltool.pack.find_run(d, loadref, runs)
Parameters
  • d (Union[cwltool.utils.CWLObjectType, schema_salad.utils.ResolveType]) –

  • loadref (LoadRefType) –

  • runs (Set[str]) –

Return type

None

cwltool.pack.find_ids(d, ids)
Parameters
  • d (Union[cwltool.utils.CWLObjectType, cwltool.utils.CWLOutputType, MutableSequence[cwltool.utils.CWLObjectType], None]) –

  • ids (Set[str]) –

Return type

None

cwltool.pack.replace_refs(d, rewrite, stem, newstem)
Parameters
  • d (Any) –

  • rewrite (Dict[str, str]) –

  • stem (str) –

  • newstem (str) –

Return type

None

cwltool.pack.import_embed(d, seen)
Parameters
  • d (Union[MutableSequence[cwltool.utils.CWLObjectType], cwltool.utils.CWLObjectType, cwltool.utils.CWLOutputType]) –

  • seen (Set[str]) –

Return type

None

cwltool.pack.pack(loadingContext, uri, rewrite_out=None, loader=None)
Parameters
  • loadingContext (cwltool.context.LoadingContext) –

  • uri (str) –

  • rewrite_out (Optional[Dict[str, str]]) –

  • loader (Optional[schema_salad.ref_resolver.Loader]) –

Return type

cwltool.utils.CWLObjectType