Skip to main content

downloader-cli

A simple downloader written in Python with an awesome progressbar.


Installation   |   Requirements   |   Usage   |   Use It   

forthebadge made-with-python

License PRs Welcome

Installation

The package is available in PyPi here

Install it using

pip install downloader-cli

If you want to manuall install, clone the repo and run the following command

sudo python setup.py install

Requirements

downloader-cli requires just one external module.

Use the requirements.txt file to install them.

pip install -r requirements.txt

Run the command with sudo if you get permission denied.

Usage

The script also allows some other values from the commandline.

usage: download.py [-h] [-o] URL [des]

positional arguments:
  URL         URL of the file
  des         The name of the file to be saved with.

optional arguments:
  -h, --help  show this help message and exit
  -o          Overwrite if the file already exists else, try to resume
              download.

Use It

Want to use it in your project?

Just include the file in your project directory and import it. It's simple to use it.

from download import Download
Download(url).download()

Above is the simplest way to use it in your app. The other arguments are optional.

Arguments

The module takes 5 arguments.

Name required default
URL Yes
des No None (Current directory is selected and the name is extracted from the URL)
overwrite No False
icon_done No
icon_left No

In case you want to experiment with the progress bar's icons, here's an example.

This is when I passed icon_done as # and icon_left as space.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

downloader_cli-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file downloader_cli-0.1.0.tar.gz.

File metadata

  • Download URL: downloader_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4

File hashes

Hashes for downloader_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b8637b1023949100808fcfbcca404ea8c42174d95e531e52b1b04ec9506653b
MD5 699a0a1afd8bc7092ef79700c3794245
BLAKE2b-256 cf54f0143f1116cf1a6a78e4d2de5cbdbc127fe1d6fc9f607775725ab5236fc3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.4

2 files

0.3.3

2 files

0.3.2.post1

2 files

0.3.2

2 files

0.3.1

2 files

0.2.0

2 files

0.1.0.post2

2 files

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page