INNER CODE UNIT · Python
download
sign-language-translator/sign-language-translator · sign_language_translator/cli.py:135
def download(filenames, overwrite, progress_bar, timeout, chunk_size, directory):
"""
Download resource files with regex.
Downloads package resources matching the given filename regex
and saves them to the resources folder in installation directory.\n
Examples:\n
$ slt download '.*.json' --overwrite true
"""
from sign_language_translator.config.assets import Assets
if directory:
Assets.set_root_dir(directory)
# Download the specified files
for filename in filenames:
success = Assets.download(