Uses coroutines to download files
Project description
Async download
Uses coroutines to download urls
Note: Greedy and built for speed. [10K cdn hosted urls; 0.5GB Total data; <5 minutes; M1 laptop]
Usage
Usage: async_download [COMMAND] <OPTIONS>
Commands:
headers - hit urls with the head request
download - download urls
`headers` Options:
--header TEXT Headers to extract (default: Content-Length, Server)
--batch-size INTEGER number of concurrent requests (default: 1000)
--help Show this message and exit.
`download` Options:
--batch-size INTEGER number of concurrent requests (default: 1000)
--execute required to do something
--help Show this message and exit.
- Free software: MIT license
- Documentation: https://async-download.readthedocs.io.
Install & Run
pipx install async-download
async_download --help
Development
python -mvenv .venv --prompt .
. ./.venv/bin/activate
pip install --editable .[testing]
make test
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage
project template.
The main loop was taken from
History
1.2.0 (2022-08-29)
- better progress bars.
1.1.0 (2022-08-29)
- add a validate option.
1.0.0 (2022-08-29)
- First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
async_download-1.4.0.tar.gz
(12.1 kB
view details)
Built Distribution
File details
Details for the file async_download-1.4.0.tar.gz
.
File metadata
- Download URL: async_download-1.4.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44c184e99e32810efd9a136943db27ec7321aa2d69e047c8cea34f7582bcf8ad |
|
MD5 | badf56143966c2961997c2f0d5e0ab21 |
|
BLAKE2b-256 | 485dea713b368b3eeb521d8d0c5e801a37bc42e7547563683a72b8d707494e83 |
File details
Details for the file async_download-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: async_download-1.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9254f55336ccc43a0683f6a7f81cf09215c7d6030ee1274c2498a252081a8373 |
|
MD5 | 6e7df52ccd19b1058c9f970bdb23dc3a |
|
BLAKE2b-256 | 6c6488e54964058368394234988c1b8d14d62c17dedcb3566dcacc79cc289780 |