Skip to main content

Uses coroutines to download files

Project description

Async download

download travis documentation status

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.

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 hashes)

Uploaded Source

Built Distribution

async_download-1.4.0-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page