An open API service indexing awesome lists of open source software.

https://github.com/deadsec-security/pretty-downloader

If you want a progress bar when downloading files in your python app, this is the library for you.
https://github.com/deadsec-security/pretty-downloader

download downloader pretty-print progress-bar python-downloader tqdm

Last synced: 5 months ago
JSON representation

If you want a progress bar when downloading files in your python app, this is the library for you.

Awesome Lists containing this project

README

          

# Pretty Downloader ![Version](https://img.shields.io/badge/Version-v0.2.0-orange?style=flat-square&url=https://github.com/DEADSEC-SECURITY/pretty-downloader/blob/main/CHANGELOG.md) ![Python_Version](https://img.shields.io/badge/Python-3.7%2B-blue?style=flat-square) ![License](https://img.shields.io/badge/License-MIT-red?style=flat-square) ![Donate](https://img.shields.io/badge/Donate-Crypto-yellow?style=flat-square)

[![CodeQL](https://github.com/DEADSEC-SECURITY/pretty-downloader/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/DEADSEC-SECURITY/pretty-downloader/actions/workflows/codeql-analysis.yml)

![PyPI - Downloads](https://img.shields.io/pypi/dd/pretty-downloader?label=Daily%20Downloads&style=flat-square) ![PyPI - Downloads](https://img.shields.io/pypi/dw/pretty-downloader?label=Weekly%20Downloads&style=flat-square) ![PyPI - Downloads](https://img.shields.io/pypi/dm/pretty-downloader?label=Monthly%20Downloads&style=flat-square)

## 📝 CONTRIBUTIONS

Before doing any contribution read CONTRIBUTING.

## 📧 CONTACT

Email: amng835@gmail.com

General Discord: https://discord.gg/dFD5HHa

Developer Discord: https://discord.gg/rxNNHYN9EQ

## 📥 INSTALLING
Latest PyPI stable release
```bash
pip install pretty-downloader
```

## ⚙ HOW TO USE
```python
import pretty_downloader
pretty_downloader.download()
```
OR
```python
from pretty_downloader import download
download()
```

## 🤝 PARAMETERS
- url : str, required
- This should be the url of the file you wish to download
- file_path : str, optional
- The path to save the file (Default: "")
- file_name : str, optional
- The file name you want the file to be saved with. Should include file extension (Default: None)
- show_progress : bool, optional
- Option to disable/enable the default progress bar (Default: True)
- name : str, optional
- The name you want to appear in the progress bar (default: 'Download progress')
- block_size : int, optional
- The size of the download block (Default: 1024)
- proxies : dict, optional
- Dictionary of proxies to be used (Default: None)
- Example: {'http': 'http://135.125.218.47:8080'}
- headers : dict, optional
- Dictionary of headers (Default: None)
- Example: {'user-agent': 'Mozilla/5.0'}
- RETURNS: Path of file downloaded

## 🖼️ SCRIPT SCREENSHOTS & VIDEOS

![alt text](https://s4.gifyu.com/images/New-video.gif)