cwltool.load_tool
Loads a CWL document.
Module Contents
Functions
|
|
|
|
|
Retrieve a CWL document. |
|
|
|
|
|
Validate a CWL document. |
|
Make a Python CWL object. |
|
|
|
|
|
|
|
Validate a CWL document, checking that a tool object can be built. |
Attributes
- cwltool.load_tool.docloaderctx: schema_salad.utils.ContextType
- cwltool.load_tool.jobloader_id_name = '__id'
- cwltool.load_tool.jobloaderctx: schema_salad.utils.ContextType
- cwltool.load_tool.overrides_ctx: schema_salad.utils.ContextType
- cwltool.load_tool.default_loader(fetcher_constructor=None, enable_dev=False, doc_cache=True)
- Parameters:
- Return type:
- cwltool.load_tool.resolve_tool_uri(argsworkflow, resolver=None, fetcher_constructor=None, document_loader=None)
- Parameters:
argsworkflow (str) –
resolver (Optional[cwltool.utils.ResolverType]) –
fetcher_constructor (Optional[schema_salad.utils.FetcherCallableType]) –
document_loader (Optional[schema_salad.ref_resolver.Loader]) –
- Return type:
- cwltool.load_tool.fetch_document(argsworkflow, loadingContext=None)
Retrieve a CWL document.
- Parameters:
argsworkflow (Union[str, cwltool.utils.CWLObjectType]) –
loadingContext (Optional[cwltool.context.LoadingContext]) –
- Return type:
Tuple[cwltool.context.LoadingContext, ruamel.yaml.comments.CommentedMap, str]
- cwltool.load_tool.update_index(document_loader, pr)
- Parameters:
document_loader (schema_salad.ref_resolver.Loader) –
pr (ruamel.yaml.comments.CommentedMap) –
- Return type:
None
- cwltool.load_tool.fast_parser(workflowobj, fileuri, uri, loadingContext, fetcher)
- Parameters:
workflowobj (Union[ruamel.yaml.comments.CommentedMap, ruamel.yaml.comments.CommentedSeq, None]) –
fileuri (Optional[str]) –
uri (str) –
loadingContext (cwltool.context.LoadingContext) –
fetcher (schema_salad.fetcher.Fetcher) –
- Return type:
Tuple[Union[ruamel.yaml.comments.CommentedMap, ruamel.yaml.comments.CommentedSeq], ruamel.yaml.comments.CommentedMap]
- cwltool.load_tool.resolve_and_validate_document(loadingContext, workflowobj, uri, preprocess_only=False)
Validate a CWL document.
- Parameters:
loadingContext (cwltool.context.LoadingContext) –
workflowobj (Union[ruamel.yaml.comments.CommentedMap, ruamel.yaml.comments.CommentedSeq]) –
uri (str) –
preprocess_only (bool) –
- Return type:
Tuple[cwltool.context.LoadingContext, str]
- cwltool.load_tool.make_tool(uri, loadingContext)
Make a Python CWL object.
- Parameters:
uri (Union[str, ruamel.yaml.comments.CommentedMap, ruamel.yaml.comments.CommentedSeq]) –
loadingContext (cwltool.context.LoadingContext) –
- Return type:
- cwltool.load_tool.load_tool(argsworkflow, loadingContext=None)
- Parameters:
argsworkflow (Union[str, cwltool.utils.CWLObjectType]) –
loadingContext (Optional[cwltool.context.LoadingContext]) –
- Return type:
- cwltool.load_tool.resolve_overrides(ov, ov_uri, baseurl)
- cwltool.load_tool.load_overrides(ov, base_url)
- cwltool.load_tool.recursive_resolve_and_validate_document(loadingContext, workflowobj, uri, preprocess_only=False)
Validate a CWL document, checking that a tool object can be built.
- Parameters:
loadingContext (cwltool.context.LoadingContext) –
workflowobj (Union[ruamel.yaml.comments.CommentedMap, ruamel.yaml.comments.CommentedSeq]) –
uri (str) –
preprocess_only (bool) –
- Return type:
Tuple[cwltool.context.LoadingContext, str, cwltool.process.Process]