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.2.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.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_download-1.5.2.tar.gz
  • Upload date:
  • Size: 99.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","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.2.tar.gz
Algorithm Hash digest
SHA256 61ad5c59d653b3f887ea0984c289c90c567ece32347b62defaed793d1b02424e
MD5 55e15c5bf47c5ae0e43b1f3fa3cdf2d0
BLAKE2b-256 759e66d34025044c652f5867b1e452827819186ac693bb330b9f37c4f5ec0f72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_download-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 85cdac1eb6749d46cbc1eccbdaaf6b174e55101753467f87ba0a1cb8cf3932b8
MD5 fc603e483890dde16b2f0f6b07d564f2
BLAKE2b-256 5ba26ab58afb711b33d385883ac0843cb1fe5adb9707d3a41d47579648d8bcc0

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