Skip to main content

A powerful python based downloader module.

Project description

Python Downloader Demo

Build a powerful python based downloader app.

Requirements

  • python>=3.6
  • requests
  • tqdm
  • retry
  • hashlib
  • multitasking
  • signal
  • gooey (GUI only / check the Github repo)

Example, create a test.py file with the following code to download the tensorflow git repo (about 76 MB) and the gitignore git repo (about 100KB)

The run function will return the md5 of the downloaded file for checking purposes.

from pySpeedDownloader import pydownloader

url = "https://github.com/tensorflow/tensorflow/archive/refs/heads/master.zip"
file_name = "tensorflow-master.zip"
output_dir = "download/tf"

file_md5 = pydownloader.run(url, file_name, output_dir)
print(file_md5)

url = "https://github.com/github/gitignore/archive/refs/heads/master.zip"
file_name = "gitignore-master.zip"

output_dir = "download/gitignore"

file_md5 = pydownloader.run(url, file_name, output_dir)
print(file_md5)

Bash command window output will be like:

 python test.py
Downloading tensorflow-master.zip...
Downloading: tensorflow-master.zip: 76029696it [00:21, 3457111.70it/s]                                                                   
dd8bfb4bab14f81742574bbe19aae8a6
Downloading gitignore-master.zip...
Downloading: gitignore-master.zip: 103808it [00:02, 35557.32it/s]                                                                        
8c0224157f4748eead1423530f52f401  

If you re-run the code again, it will ask you if you want to overwrite the existing files.

 python test.py
Downloading tensorflow-master.zip...
 ⛔️ download/tf/tensorflow-master.zip already exists, overwrite it?? (Y/N): N
dd8bfb4bab14f81742574bbe19aae8a6
Downloading gitignore-master.zip...
 ⛔️ download/gitignore/gitignore-master.zip already exists, overwrite it?? (Y/N): N
8c0224157f4748eead1423530f52f401

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

pySpeedDownloader-0.1.2.tar.gz (145.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pySpeedDownloader-0.1.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pySpeedDownloader-0.1.2.tar.gz.

File metadata

  • Download URL: pySpeedDownloader-0.1.2.tar.gz
  • Upload date:
  • Size: 145.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for pySpeedDownloader-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cfdd702901e3c516965a5aa8443b07c105a7d3873c85a9a297a39b4afac6271c
MD5 a56582f3ff4865f97e53a7cc58d0021e
BLAKE2b-256 9118b0f8519c79ce1cdb6f2824a506c205b2cd320395c40dbea73fbf0420a4ae

See more details on using hashes here.

File details

Details for the file pySpeedDownloader-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pySpeedDownloader-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for pySpeedDownloader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27757b30b9865d717ff80d6aaf065cbbfd0cab36684d05c57855bdc21c967d65
MD5 5a8291986c3a918d9f2482f1d5928fd4
BLAKE2b-256 01a81a1e19041c8793a8a68dce1e4a5832ae32a596992b7ce140aee3732326a1

See more details on using hashes here.

Supported by

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