Click here to see the table of contents.
Note that this README is automatically generated - don't edit! Use README-extra.md
to add more info.
- CM GitHub repository: mlcommons@ck
- GitHub directory for this script: GitHub
- CM meta description for this script: _cm.json
- CM "database" tags to find this script: download,file,download-file
- Output cached?: False
cm pull repo mlcommons@ck
cm run script --help
-
cm run script --tags=download,file,download-file[,variations] [--input_flags]
-
cm run script "download file download-file[,variations]" [--input_flags]
-
cm run script 9cdc8dc41aae437e [--input_flags]
Click here to expand this section.
import cmind
r = cmind.access({'action':'run'
'automation':'script',
'tags':'download,file,download-file'
'out':'con',
...
(other input keys for this script)
...
})
if r['return']>0:
print (r['error'])
cm run script --tags=gui --script="download,file,download-file"
Use this online GUI to generate CM CMD.
TBD
-
No group (any variation can be selected)
Click here to expand this section.
_url.#
- Environment variables:
- CM_DOWNLOAD_URL:
#
- CM_DOWNLOAD_URL:
- Workflow:
- Environment variables:
-
Group "download-tool"
Click here to expand this section.
_cmutil
(default)- Environment variables:
- CM_DOWNLOAD_TOOL:
cmutil
- CM_DOWNLOAD_TOOL:
- Workflow:
- Environment variables:
_curl
- Environment variables:
- CM_DOWNLOAD_TOOL:
curl
- CM_DOWNLOAD_TOOL:
- Workflow:
- Environment variables:
_gdown
- Environment variables:
- CM_DOWNLOAD_TOOL:
gdown
- CM_DOWNLOAD_TOOL:
- Workflow:
- Read "deps" on other CM scripts
- get,generic-python-lib,_package.gdown
- CM script: get-generic-python-lib
- get,generic-python-lib,_package.gdown
- Read "deps" on other CM scripts
- Environment variables:
_wget
- Environment variables:
- CM_DOWNLOAD_TOOL:
wget
- CM_DOWNLOAD_TOOL:
- Workflow:
- Environment variables:
_cmutil
Click here to expand this section.
--download_path=value
→CM_DOWNLOAD_PATH=value
--url=value
→CM_DOWNLOAD_URL=value
Above CLI flags can be used in the Python CM API as follows:
r=cm.access({... , "download_path":...}
Click here to expand this section.
These keys can be updated via --env.KEY=VALUE
or env
dictionary in @input.json
or using script flags.
Click here to expand this section.
- Read "deps" on other CM scripts from meta
- Run "preprocess" function from customize.py
- Read "prehook_deps" on other CM scripts from meta
- Run native script if exists
- Read "posthook_deps" on other CM scripts from meta
- Run "postrocess" function from customize.py
- Read "post_deps" on other CM scripts from meta
<<<CM_DOWNLOAD_FINAL_ENV_NAME>>>
CM_DOWNLOAD_DOWNLOADED_PATH
CM_GET_DEPENDENT_CACHED_PATH
CM_DOWNLOAD_DOWNLOADED_PATH
CM_GET_DEPENDENT_CACHED_PATH