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)
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.dev3.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distributions

pyDownload-0.0.1.dev3-py3.5.egg (12.3 kB view hashes)

Uploaded Source

pyDownload-0.0.1.dev3-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 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