cwltool.sandboxjs
¶
Evaluate CWL Javascript Expressions in a sandbox.
Module Contents¶
Functions¶
|
Check if the nodeJS engine version on the system with the allowed minimum version. |
|
Return a subprocess ready to submit javascript to. |
|
|
|
|
|
Attributes¶
- exception cwltool.sandboxjs.JavascriptException¶
Bases:
Exception
Common base class for all non-exit exceptions.
- cwltool.sandboxjs.localdata¶
- cwltool.sandboxjs.default_timeout = 20¶
- cwltool.sandboxjs.have_node_slim = False¶
- cwltool.sandboxjs.minimum_node_version_str = 0.10.26¶
- cwltool.sandboxjs.check_js_threshold_version(working_alias)¶
Check if the nodeJS engine version on the system with the allowed minimum version.
https://github.com/nodejs/node/blob/master/CHANGELOG.md#nodejs-changelog
- Parameters
working_alias (str) –
- Return type
bool
- cwltool.sandboxjs.new_js_proc(js_text, force_docker_pull=False, container_engine='docker')¶
Return a subprocess ready to submit javascript to.
- Parameters
js_text (str) –
force_docker_pull (bool) –
container_engine (str) –
- Return type
subprocess.Popen[str]
- cwltool.sandboxjs.PROCESS_FINISHED_STR = r1cepzbhUTxtykz5XTC4¶
- cwltool.sandboxjs.exec_js_process(js_text, timeout=default_timeout, js_console=False, context=None, force_docker_pull=False, container_engine='docker')¶
- Parameters
js_text (str) –
timeout (float) –
js_console (bool) –
context (Optional[str]) –
force_docker_pull (bool) –
container_engine (str) –
- Return type
Tuple[int, str, str]
- cwltool.sandboxjs.code_fragment_to_js(jscript, jslib='')¶
- Parameters
jscript (str) –
jslib (str) –
- Return type
str
- cwltool.sandboxjs.execjs(js, jslib, timeout, force_docker_pull=False, debug=False, js_console=False, container_engine='docker')¶
- Parameters
js (str) –
jslib (str) –
timeout (float) –
force_docker_pull (bool) –
debug (bool) –
js_console (bool) –
container_engine (str) –
- Return type
cwltool.utils.CWLOutputType