Skip to main content

Easy file downloads

Project description

Downloads

test PyPI version Downloads

Easier HTTP downloads in Python 3.5+

Features

  1. Easier to remember than urllib
  2. Files are not written unless download finishes
  3. Progress bar!

Installation

pip install downloads==1.0.0

Usage

from downloads import download

download("http://i.imgur.com/ij2h06p.png")

# output path is automatically determined and returned
# but you can specify it manually if that"s your thing:

download("http://i.imgur.com/i5pJRxX.jpg", out_path="cheezburger.jpg")

# or, if you want to be fancy:

download("https://www.gutenberg.org/files/2600/2600-0.txt", progress=True)

That's it!

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

downloads-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

downloads-1.0.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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