Skip to main content

A simple package for multithreaded downloading

Project description

PyDownload

This package aims to provide the functionality to download large files from the internet using chunked and multithreaded downloads.

Index

Installation

pip install pydownload

Usage

import time
from pyDownload import Downloader

url = 'https://github.com/party98/Python-Parallel-Downloader/archive/master.zip'
downloader = Downloader(url=url, filename=filename)
if downloader.is_running:
    time.sleep(1)
print('File downloaded to %s' % downloader.file_name)

Developer Guide

Setting Up The Environment

  • Setup VirtualEnv (Recommended But Optional)

    pip install virtualenv
    virtualenv env
    source ./env/bin/activate
    
  • Install Dependencies

    pip install -r requirements.txt
    
  • Install pre-commit hooks

    The project uses various pre-commit hooks to enforce code quality and standards. Therefore, it is really necessary for all the contributors to install these and run before every commit else the contributions will be rejected.

    Steps
    pre-commit install
    

Running Tests

  • Install Dependencies

    pip install nose coverage
    
  • Run the Tests

    • With Coverage Report (Recommended)

      nosetests --cover-erase --cover-package=pyDownload --with-coverage --cover-branches
      
    • Without Coverage Report

      nosetests --cover-erase --cover-package=pyDownload  --cover-branches
      

SayThanks

You can thank the team here.

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

pyDownload-0.0.1.dev2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pyDownload-0.0.1.dev2-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyDownload-0.0.1.dev2.tar.gz.

File metadata

File hashes

Hashes for pyDownload-0.0.1.dev2.tar.gz
Algorithm Hash digest
SHA256 efa29e1c22324fd22e9d2b3737ffb8c310a3862cb6cbdc83d0ea0dd329b7bc35
MD5 e3ad289def3f529791145bd351b72c0b
BLAKE2b-256 eaa33ca297661c8fdd31f8adf260e97f2ef9ba9c221069ccfc9b24720e9d6ee5

See more details on using hashes here.

File details

Details for the file pyDownload-0.0.1.dev2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyDownload-0.0.1.dev2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 91dc1b540ee0ea15cb2664538edaa11137feaae97f061d8dd5b6a2247c246a01
MD5 2fa0fbf3c23bdac31c081433122e19a6
BLAKE2b-256 f31a4e1b83a3f4539ae53b06f181a78315a2cd03fa87018b3993c20cf2fc8182

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