Skip to main content

Uses coroutines to download files

Project description

Async download

download 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

uv add async-download
async_download --help

Or install directly with uv tool:

uv tool install async-download
async_download --help

Development

uv sync
uv run pytest

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

The main loop was taken from

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.5.4.tar.gz (98.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

async_download-1.5.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file async_download-1.5.4.tar.gz.

File metadata

  • Download URL: async_download-1.5.4.tar.gz
  • Upload date:
  • Size: 98.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for async_download-1.5.4.tar.gz
Algorithm Hash digest
SHA256 175f92f1fa2a35631b30a7847d0d17c9521109a0f4bb6777f4aee411f8016ef1
MD5 ce7dc55c0d13c8ec408840b88e70502e
BLAKE2b-256 ba660961583f3fd2dc07ea024e75b5a8c25d8a96c5701e73b3c44cf46593ccf1

See more details on using hashes here.

File details

Details for the file async_download-1.5.4-py3-none-any.whl.

File metadata

  • Download URL: async_download-1.5.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for async_download-1.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e8ebb9a342e46ee1f321220389c0e541371f7431c287568a679aeac5d08d864
MD5 67184c80dc4970978fbc9d34ae22f292
BLAKE2b-256 32293574503dfb85afe14f279f4dcc33ae523ce7f50cf8dd70d3416d26efc049

See more details on using hashes here.

Supported by

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