%global _empty_manifest_terminate_build 0 Name: python-pyDownload Version: 0.0.1.dev4 Release: 1 Summary: A simple package for multithreaded downloading License: GNU Affero General Public License v3 or later (AGPLv3+) URL: https://github.com/party98/Python-Parallel-Downloader Source0: https://mirrors.nju.edu.cn/pypi/web/packages/21/4f/065cfd16191cad1adbacd1b65df47322be7b3186b1abad244ecfa59ba217/pyDownload-0.0.1.dev4.tar.gz BuildArch: noarch Requires: python3-requests Requires: python3-progressbar2 Requires: python3-pre-commit Requires: python3-nose Requires: python3-coverage %description # PyDownload [![PyPI version](https://badge.fury.io/py/pyDownload.svg)](https://badge.fury.io/py/pyDownload) [![Build Status](https://travis-ci.org/party98/pyDownload.svg?branch=master)](https://travis-ci.org/party98/pyDownload) [![codecov](https://codecov.io/gh/party98/pyDownload/branch/master/graph/badge.svg)](https://codecov.io/gh/party98/pyDownload) This package aims to provide the functionality to download large files from the internet using chunked and multithreaded downloads. # Index - [Command Line Usage](#command-line-usage) - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [Developer Guide](#developer-guide) - [Bug Reporting Guide](#bug-reporting-guide) - [Contribution Guide](#contribution-guide) - [SayThanks](#saythanks) # Command Line usage The package can be used to perform multithreaded downloads via the CLI. ### Usage ```bash pyDownload https://github.com/party98/Python-Parallel-Downloader/archive/master.zip ``` ### Config Options ```bash positional arguments: url list of urls to download optional arguments: -h, --help show this help message and exit -o FILENAME, --output FILENAME output file -t NUM_THREADS, --threads NUM_THREADS number of threads to use -c CHUNK_SIZE, --chunk-size CHUNK_SIZE chunk size (in bytes) --version display the version of pyDownload being used ``` # Features - Written in pure python. - Supports ability to perform multithreaded downloads from any url if the server supports. - Small and concise API therefore easy to integrate in python code. # Installation ```bash pip install pydownload ``` # Usage ```python 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) ```bash pip install virtualenv virtualenv env source ./env/bin/activate ``` - ### Install Dependencies ```bash pip install .[dev] ``` - ### 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 ```bash pre-commit install ``` ## Running Tests - ### Install Dependencies ```bash pip install .[test] ``` - ### 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 ``` # Bug Reporting Guide You can report bugs [here](https://github.com/party98/pyDownload/issues). - Make sure you are using the latest version. (Check by running `pyDownload --version`). - Search for the issue in existing issues (open & closed) and create only if the issue is not mentioned. - Fill the issue template correctly. Note: If you feel that you can fix the issue, you are more than welcome to submit a PR. # Contribution Guide Contributors are welcome to make this package more awesome. But before you do, make sure that you have read the following limited but important guidelines. - Make sure that the issue that you are trying to fix exists [here](https://github.com/party98/pyDownload/issues). Create one if it does not. - Make sure that you perform `flake8` checks on the code before you submit a PR. - Write unittests and comments for the changes that you have made. - Make sure your branch is updated with the `development` branch. - All PRs should be submitted to `development` branch. PRs to any other branch will be rejected. - Please install and perform `pre-commit` check on all your commits to maintain code quality # SayThanks You can thank the team [here](https://saythanks.io/to/party98). %package -n python3-pyDownload Summary: A simple package for multithreaded downloading Provides: python-pyDownload BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-pyDownload # PyDownload [![PyPI version](https://badge.fury.io/py/pyDownload.svg)](https://badge.fury.io/py/pyDownload) [![Build Status](https://travis-ci.org/party98/pyDownload.svg?branch=master)](https://travis-ci.org/party98/pyDownload) [![codecov](https://codecov.io/gh/party98/pyDownload/branch/master/graph/badge.svg)](https://codecov.io/gh/party98/pyDownload) This package aims to provide the functionality to download large files from the internet using chunked and multithreaded downloads. # Index - [Command Line Usage](#command-line-usage) - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [Developer Guide](#developer-guide) - [Bug Reporting Guide](#bug-reporting-guide) - [Contribution Guide](#contribution-guide) - [SayThanks](#saythanks) # Command Line usage The package can be used to perform multithreaded downloads via the CLI. ### Usage ```bash pyDownload https://github.com/party98/Python-Parallel-Downloader/archive/master.zip ``` ### Config Options ```bash positional arguments: url list of urls to download optional arguments: -h, --help show this help message and exit -o FILENAME, --output FILENAME output file -t NUM_THREADS, --threads NUM_THREADS number of threads to use -c CHUNK_SIZE, --chunk-size CHUNK_SIZE chunk size (in bytes) --version display the version of pyDownload being used ``` # Features - Written in pure python. - Supports ability to perform multithreaded downloads from any url if the server supports. - Small and concise API therefore easy to integrate in python code. # Installation ```bash pip install pydownload ``` # Usage ```python 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) ```bash pip install virtualenv virtualenv env source ./env/bin/activate ``` - ### Install Dependencies ```bash pip install .[dev] ``` - ### 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 ```bash pre-commit install ``` ## Running Tests - ### Install Dependencies ```bash pip install .[test] ``` - ### 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 ``` # Bug Reporting Guide You can report bugs [here](https://github.com/party98/pyDownload/issues). - Make sure you are using the latest version. (Check by running `pyDownload --version`). - Search for the issue in existing issues (open & closed) and create only if the issue is not mentioned. - Fill the issue template correctly. Note: If you feel that you can fix the issue, you are more than welcome to submit a PR. # Contribution Guide Contributors are welcome to make this package more awesome. But before you do, make sure that you have read the following limited but important guidelines. - Make sure that the issue that you are trying to fix exists [here](https://github.com/party98/pyDownload/issues). Create one if it does not. - Make sure that you perform `flake8` checks on the code before you submit a PR. - Write unittests and comments for the changes that you have made. - Make sure your branch is updated with the `development` branch. - All PRs should be submitted to `development` branch. PRs to any other branch will be rejected. - Please install and perform `pre-commit` check on all your commits to maintain code quality # SayThanks You can thank the team [here](https://saythanks.io/to/party98). %package help Summary: Development documents and examples for pyDownload Provides: python3-pyDownload-doc %description help # PyDownload [![PyPI version](https://badge.fury.io/py/pyDownload.svg)](https://badge.fury.io/py/pyDownload) [![Build Status](https://travis-ci.org/party98/pyDownload.svg?branch=master)](https://travis-ci.org/party98/pyDownload) [![codecov](https://codecov.io/gh/party98/pyDownload/branch/master/graph/badge.svg)](https://codecov.io/gh/party98/pyDownload) This package aims to provide the functionality to download large files from the internet using chunked and multithreaded downloads. # Index - [Command Line Usage](#command-line-usage) - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [Developer Guide](#developer-guide) - [Bug Reporting Guide](#bug-reporting-guide) - [Contribution Guide](#contribution-guide) - [SayThanks](#saythanks) # Command Line usage The package can be used to perform multithreaded downloads via the CLI. ### Usage ```bash pyDownload https://github.com/party98/Python-Parallel-Downloader/archive/master.zip ``` ### Config Options ```bash positional arguments: url list of urls to download optional arguments: -h, --help show this help message and exit -o FILENAME, --output FILENAME output file -t NUM_THREADS, --threads NUM_THREADS number of threads to use -c CHUNK_SIZE, --chunk-size CHUNK_SIZE chunk size (in bytes) --version display the version of pyDownload being used ``` # Features - Written in pure python. - Supports ability to perform multithreaded downloads from any url if the server supports. - Small and concise API therefore easy to integrate in python code. # Installation ```bash pip install pydownload ``` # Usage ```python 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) ```bash pip install virtualenv virtualenv env source ./env/bin/activate ``` - ### Install Dependencies ```bash pip install .[dev] ``` - ### 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 ```bash pre-commit install ``` ## Running Tests - ### Install Dependencies ```bash pip install .[test] ``` - ### 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 ``` # Bug Reporting Guide You can report bugs [here](https://github.com/party98/pyDownload/issues). - Make sure you are using the latest version. (Check by running `pyDownload --version`). - Search for the issue in existing issues (open & closed) and create only if the issue is not mentioned. - Fill the issue template correctly. Note: If you feel that you can fix the issue, you are more than welcome to submit a PR. # Contribution Guide Contributors are welcome to make this package more awesome. But before you do, make sure that you have read the following limited but important guidelines. - Make sure that the issue that you are trying to fix exists [here](https://github.com/party98/pyDownload/issues). Create one if it does not. - Make sure that you perform `flake8` checks on the code before you submit a PR. - Write unittests and comments for the changes that you have made. - Make sure your branch is updated with the `development` branch. - All PRs should be submitted to `development` branch. PRs to any other branch will be rejected. - Please install and perform `pre-commit` check on all your commits to maintain code quality # SayThanks You can thank the team [here](https://saythanks.io/to/party98). %prep %autosetup -n pyDownload-0.0.1.dev4 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-pyDownload -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.0.1.dev4-1 - Package Spec generated