easyidp.data.downloader._stream_download¶
- easyidp.data.downloader._stream_download(url, output, expected_size, expected_sha256, progress)¶
Stream a file from url to output with verification.
- Parameters:
url (str) – Download URL.
output (Path) – Output file path.
expected_size (int) – Expected file size in bytes.
expected_sha256 (str) – Expected SHA256 hex digest.
progress (bool) – Show a tqdm progress bar.
- Raises:
RuntimeError – If the downloaded size or SHA256 does not match.