Skip to main content

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.

Source Distribution

DowPy-0.1.6.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file DowPy-0.1.6.tar.gz.

File metadata

  • Download URL: DowPy-0.1.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.2

File hashes

Hashes for DowPy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cded7d7e020b214512bed4bee65c903c9037fc352044bfe31c78fb3cee56e92b
MD5 b42a1825a5f514c3528873885007e33b
BLAKE2b-256 640ce9f598ca3b22be6dc803eee08906fba1f1e77237a448b967a7fbb1ee4555

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page