Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Module for downloading files over HTTP(s) efficiently

Project description

logo

PyPI version License: MIT

Features

  • Ability to download any file type
  • Multi-threading to run parallel downloads, if supported
  • Resumable downloads on connection loss
  • Cross-platform support
  • Timed bench marks of each individual chunk/overall file
  • File verification, via hash check

Installation

To install DowPy, Use pip:

$ pip install dowpy

Usage

url = "https://gph.to/2BTy5xU"

# To create a single thread download
dow1 = SingleDow(url)

# To create a multi threaded download with 3 parallel downloads
dow2 = MultiDow(url, 3)

# To start the download
dow1.start()

Documentation

The following properties can be set BEFORE the download has started:

prop type Desc
.url string The direct url to the file to request
.chunks int The # of parallel threads to download the file with (MultiDow only)
.writeLocation string File location to download the file
.fileName string Name of the downloaded file
.hash string Known hash to test the file with

The following properties return information about the download:

prop type Desc
.status string Returns the current status of the download (initialized, downloading, complete)
.sizeInBytes string Returns the size of the file in bytes
.startTime string Start time of the download
.endTime string End time of the download
.elapsedTime String Total time of download

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 dowpy, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size DowPy-0.1.6.tar.gz (3.5 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page