URL downloader supporting checkpointing and continuous checksumming.
Project description
best-download
URL downloader supporting checkpointing and continuous checksumming.
Please note that we take over handling of SIGINT for cleaner messaging, this is reverted once downloading is complete. If you already handle SIGINT yourself please make a fork.
Install
pip install best-download
Basic Example
The following example can be found in "examples/basic_example.py". Replace the url with a local speed test server if desired.
from best_download import download_file
def main():
url = "http://speedcheck.cdn.on.net/1000meg.test"
local_file_path = "1000meg.test"
checksum = "cfab8f3761126268a6715f90796a68074c3f57c3af48e0101776d211e7b5139e"
print(f"Testing download of file {url} to {local_file_path}")
print("Please cancel half way through and re-run this example to test resuming")
download_file(url, local_file_path, checksum)
if __name__ == '__main__':
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
best-download-0.0.4.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for best_download-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b629f0d95140e5fe45ab6cd597705df559c9fda5bcc32aee749424bd67ae91fa |
|
MD5 | c622cbd00ed186c235cc35c44a0255f6 |
|
BLAKE2b-256 | 7b71dd585b4f11f0f83efaf214e067bee25dfc0cc4b8bbfc0e595667c541aacd |