foxes.utils.download

Functions

download_file(→ int)

Download a file from a URL with resume capability.

Module Contents

foxes.utils.download.download_file(url: str, out_path: str | pathlib.Path, verbosity: int = 1) int[source]

Download a file from a URL with resume capability.

Parameters:
url

The URL to download from

out_path

Path to the output file

verbosity

The verbosity level, 0 = silent

Returns:
scs

Success indicator. 0 = File already there, 1 = Success, -1 = Failure