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
Release history Release notifications | RSS feed
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)
Built Distribution
File details
Details for the file pyDownload-0.0.1.dev2.tar.gz
.
File metadata
- Download URL: pyDownload-0.0.1.dev2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efa29e1c22324fd22e9d2b3737ffb8c310a3862cb6cbdc83d0ea0dd329b7bc35 |
|
MD5 | e3ad289def3f529791145bd351b72c0b |
|
BLAKE2b-256 | eaa33ca297661c8fdd31f8adf260e97f2ef9ba9c221069ccfc9b24720e9d6ee5 |
File details
Details for the file pyDownload-0.0.1.dev2-py2.py3-none-any.whl
.
File metadata
- Download URL: pyDownload-0.0.1.dev2-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91dc1b540ee0ea15cb2664538edaa11137feaae97f061d8dd5b6a2247c246a01 |
|
MD5 | 2fa0fbf3c23bdac31c081433122e19a6 |
|
BLAKE2b-256 | f31a4e1b83a3f4539ae53b06f181a78315a2cd03fa87018b3993c20cf2fc8182 |