download_file¶
-
ctapipe.utils.download.
download_file
(url, path, auth=None, chunk_size=10240, progress=False)[source]¶ Download a file. Will write to
path + '.part'
while downloading and rename after successful download to the final name.- Parameters
- url: str or url
The URL to download
- path: pathlib.Path or str
Where to store the downloaded data.
- auth: None or tuple of (username, password) or a request.AuthBase instance.
- chunk_size: int
Chunk size for writing the data file, 10 kB by default.