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.6.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for best_download-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b4ba4a948490959f1200773d629a52ec4cf74ca6f385390c663ba1510023a98 |
|
MD5 | 73e6ea4fce5677be2201dd53f5b2559d |
|
BLAKE2b-256 | 5f03155d24ac8b3e1d6c21daddc357001045486c3a31beab505e6cfc77b4ee7e |