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
-
pip install virtualenv virtualenv env source ./env/bin/activate
-
pip install -r requirements.txt
-
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.
pre-commit install
Running Tests
-
pip install nose coverage
-
-
nosetests --cover-erase --cover-package=pyDownload --with-coverage --cover-branches
-
nosetests --cover-erase --cover-package=pyDownload --cover-branches
-
SayThanks
You can thank the team here.