Skip to main content

Multithreaded downloader for faster downloads

Project description

Pump

Concurrent file downloader written in Python

Downloads file in parts using multiple concurrent threads

Installation

Recommended to be used in a python virtual environment.

  • Create a python virtualenv and activate it.
$ python3 -m venv env
$ source env/bin/activate
  • Install the tool using pip
$ pip install pump-downloader

Usage

  • Use as pump through shell
$ pump --help
Usage: pump [OPTIONS] URL

  Multithreaded Downloader for concurrent downloads

Options:
  -s, --csize INTEGER     Chunk size to use, defaults to size/#chunks
  -c, --ccount INTEGER    Number of Chunks to download concurrently
  -o, --output-path TEXT  Path to write the downloaded output file
  -v, --verbose           Enable/Disable verbose
  -f, --force             Supress confirmation for filename
  -H, --header TEXT       Pass each request header (as in curl)
  --help                  Show this message and exit.

Example

$ pump 'https://storage.googleapis.com/kaggle-data-sets/705300/1231826/compressed/multinli_1.0_train.txt.zip' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8' \
-H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Referer: https://www.kaggle.com/' -H 'Alt-Used: storage.googleapis.com' \
-H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' \
-H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: cross-site' -H 'Sec-Fetch-User: ?1' \
-H 'Pragma: no-cache' -H 'Cache-Control: no-cache'
File will be saved as multinli_1.0_train.txt.zip
Do you want to change the name? [y/N]: n
Fetching 102.88 MiBs in 8 chunks

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

pump-downloader-0.2.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

pump_downloader-0.2.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file pump-downloader-0.2.1.tar.gz.

File metadata

  • Download URL: pump-downloader-0.2.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pump-downloader-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b536c2d1ed9f4022d79d96f32f363a2b0224c163723f9c8375be47e7d28b37ef
MD5 075db2e83c0d565ee86f286ab24778d3
BLAKE2b-256 53c61d7a4c81728d4f60bc33d73161a153e1c53459095a5b57f6b74876076c00

See more details on using hashes here.

File details

Details for the file pump_downloader-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pump_downloader-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13af4789cd32a42e292db129b97b9cded35781505107f43b9e360e5018159c66
MD5 2745395c1eb6dc849d7ffefbbe538e66
BLAKE2b-256 d9a48389ed219dd0474ae623f5a9c039a8a01356f1a1f1a3a60f32c37221c003

See more details on using hashes here.

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