A minimal Python downloader with robustness in mind - resumable downloads, retries, and more.
Installation
pip install robust-downloader
Usage
From Python
from robust_downloader import download
download("https://raw.githubusercontent.com/fedebotu/robust-downloader/main/README.md")
From CLI
$ robust-downloader --help
usage: robust-downloader [-h] [-V] [--folder FOLDER] [--filename FILENAME] [--key KEY]
[--proxy PROXY] [--md5 MD5] [--sha256 SHA256]
[--max-redirect-hops MAX_REDIRECT_HOPS] [--verify VERIFY]
[--timeout TIMEOUT] [--retry-max RETRY_MAX]
[--sleep-max SLEEP_MAX] [--chunk-size CHUNK_SIZE]
[--show-progress SHOW_PROGRESS] [--logging-level LOGGING_LEVEL]
url
Example:
$ robust-downloader https://raw.githubusercontent.com/fedebotu/robust-downloader/main/README.md
Available Arguments
positional arguments:
url url to download
options:
-h, --help show this help message and exit
-V, --version display version (default: None)
--folder FOLDER folder to save the file (default: None)
--filename FILENAME filename to save the file (default: None)
--key KEY key to decrypt the file (default: None)
--proxy PROXY proxy to use (default: None)
--md5 MD5 md5 to check the file (default: None)
--sha256 SHA256 sha256 to check the file (default: None)
--max-redirect-hops MAX_REDIRECT_HOPS
max redirect hops (default: 3)
--verify VERIFY verify the file (default: None)
--timeout TIMEOUT timeout in seconds (default: 60)
--retry-max RETRY_MAX
retry max in seconds (default: 500)
--sleep-max SLEEP_MAX
sleep max in seconds (default: 120)
--chunk-size CHUNK_SIZE
chunk size (default: 1024)
--show-progress SHOW_PROGRESS
show progress (default: True)
--logging-level LOGGING_LEVEL
logging level (default: 20)
Acknowledgements
This repository was inspired by gdown.
Contributing
Feel free to contribute to this repository by creating a pull request or submitting an issue!
Metadata
Release files for robust-downloader 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robust-downloader-0.0.2.tar.gz | 15.8 kB | Without provenance | Details for robust-downloader-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robust_downloader-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for robust_downloader-0.0.2-py3-none-any.whl |
Total release size: 31.3 kB
Release files / robust-downloader-0.0.2.tar.gz
| Download URL | robust-downloader-0.0.2.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08c938b96e317abe6b037e34230a91bda9b5d613f009bca4a47664997c61de90
|
|
BLAKE2b-256 checksum How to use checksums |
63208d28efa080f58fa06f6378875ac482ee511c076369e5293a2e65128cf9a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / robust_downloader-0.0.2-py3-none-any.whl
| Download URL | robust_downloader-0.0.2-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fe08bfb64d714fd1a048a7df6eb7b413eb4e624309a49db2c16fbb80a62869d
|
|
BLAKE2b-256 checksum How to use checksums |
56a1779e9d0ebbdc704411ce30915a1105eb01aeaa9e402d7e446613ff8fb121
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for robust-downloader 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.