Skip to main content

A simple downloader written in Python with an awesome progressbar.

Project description

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.

Project details


Download files

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

Files for downloader-cli, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size downloader_cli-0.1.0.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page