download#

Download logic for conda indices and packages.

Classes#

TmpDownload

Context manager to handle downloads to a tempfile.

Functions#

disable_ssl_verify_warning()

download(url, target_full_path[, md5, sha256, size, ...])

download_inner(url, target_full_path, md5, sha256, ...)

download_partial_file(target_full_path, *, url, ...)

Create or open locked partial download file, moving onto target_full_path

download_http_errors(url)

Exception translator used inside download()

download_text(url)

Attributes#

CHUNK_SIZE#
disable_ssl_verify_warning()#
download(url, target_full_path, md5=None, sha256=None, size=None, progress_update_callback=None)#
download_inner(url, target_full_path, md5, sha256, size, progress_update_callback)#
download_partial_file(target_full_path: str | pathlib.Path, *, url: str, sha256: str, md5: str, size: int)#

Create or open locked partial download file, moving onto target_full_path when finished. Preserve partial file on exception.

download_http_errors(url: str)#

Exception translator used inside download()

download_text(url)#
class TmpDownload(url, verbose=True)#

Context manager to handle downloads to a tempfile.

__enter__()#
__exit__(exc_type, exc_value, traceback)#