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

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_download-1.5.0.tar.gz
  • Upload date:
  • Size: 99.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.0.tar.gz
Algorithm Hash digest
SHA256 180a0d0402c2c4a62a15ed93766d20aa0a13e6ee0ab8898eb6fe24fcd791493f
MD5 27ed70b5774220fbe68eed8d7b1ecce1
BLAKE2b-256 ad0a5720cd91d5d8069a3b5428f1e645effb16a171281a9779e1264d8e734480

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_download-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 091c3f1901dec74887a3a0150a486ef96602c74a248ca3c6719c4db9656e0a83
MD5 fabce694c4882ef76a7b1d507d297aa0
BLAKE2b-256 5854fecf29d2a913f656d20c208091ae3aaccd49a44fca2fc139ddae53d38e13

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