autoreject.utils.fetch_file

autoreject.utils.fetch_file(url, file_name, resume=True, timeout=10.0)[source]

Load requested file, downloading it if needed or requested.

Parameters
url: string

The url of file to be downloaded.

file_name: string

Name, along with the path, of where downloaded file will be saved.

resume: bool, optional

If true, try to resume partially downloaded files.

timeoutfloat

The URL open timeout.

Fork me on GitHub