Skip to main content

Easy file downloads

Project description

Downloads

test PyPI version Downloads

Easier HTTP downloads in Python 3.7+

Features

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

Installation

pip install downloads==1.1.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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

downloads-1.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file downloads-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: downloads-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for downloads-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6d6702464a980ae0d74f8d7be4c630b8e3efbec811374beef7ace16906ea92e
MD5 00d523fe429ae0b797af835fb9488fe7
BLAKE2b-256 c951fd853bd28dbe50620b103c13f95fb979debb99c40040aa1ee79fae984aac

See more details on using hashes here.

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