Skip to main content

download_file

Download data from source_url inside directory. Parameters:
NameTypeDescriptionDefault
directory(str, Path)Custom directory where data will be downloaded.required
source_urlstrURL where data is hosted.required
decompressboolWhether to decompress downloaded file. Default False.False
filenamestrOverride filename for the downloaded file. If None, the filename is derived from the URL.None
max_retriesintMaximum number of retry attempts on transient errors.3

extract_file

async_download_files

Asynchronously download files from urls inside path. Parameters:
NameTypeDescriptionDefault
path(str, Path)Directory where files will be downloaded.required
urlsIterable[str]Iterable of URLs to download.required
Example:

download_files

Download files from urls inside directory. Parameters:
NameTypeDescriptionDefault
directory(str, Path)Directory where files will be downloaded.required
urlsIterable[str]Iterable of URLs to download.required
Example: