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.3.tar.gz (99.5 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.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_download-1.5.3.tar.gz
  • Upload date:
  • Size: 99.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.3.tar.gz
Algorithm Hash digest
SHA256 bb39bceebebb230974f7acfc4e7035991ba40019ff57a42e751813671e8d3408
MD5 6e914cb2b9167b5458bf2bf6cbe5aee3
BLAKE2b-256 aac83357c71b1432f5edeab3c7eb3567a1940534ea321e404a5e8d74367d09eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_download-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a02f3f0ab281a71057b11621e66c509a0a1dde831b9c0ed9fc69d54ef1f0886
MD5 fc5c3262ea7b6c7822e7144f0fa97e39
BLAKE2b-256 3cceaecc5e472acdef828ac5e9f75a20b3c87d9599c8fcbd8e4f43e38e6f79bf

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