Download¶
Resume-safe HTTPS downloads with integrity verification: a short read or a
mid-stream break keeps the .part for resume, a changed object restarts
cleanly, and the finished file is hashed against the object's ETag.
download_item
¶
Download several assets of an item.
Defaults to every product asset present on the item.
download_asset
¶
Download a single named asset (e.g. "GEC") of an item.
download_url
¶
Stream url to dest.
dest may be a directory (the server filename is used) or a full file
path. Partial downloads are written to a .part sidecar and resumed via
an HTTP Range request when resume is true.
When verify is true (the default) and the server exposes a single-part
S3 ETag (the object's hex MD5), the finished file is hashed and compared
against it, so on-the-wire corruption a correct byte count can't catch fails
loudly. Multipart ETags ("<hash>-<n>") are not a plain MD5 and are
skipped.