Add SIMPLE_BAR for other scripts

This commit is contained in:
Josh Meyer 2021-07-30 13:09:14 -04:00
parent fb2d99e9e0
commit da23122cca
1 changed files with 9 additions and 0 deletions

View File

@ -1,10 +1,19 @@
from os import makedirs, path
from tqdm import tqdm
import progressbar
import requests
from .io import is_remote_path, open_remote, path_exists_remote
SIMPLE_BAR = [
"Progress ",
progressbar.Bar(),
" ",
progressbar.Percentage(),
" completed",
]
def maybe_download(archive_name, target_dir, archive_url):
# If archive file does not exist, download it...