Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/audy/downloads
:floppy_disk: Happy file downloading for Python
https://github.com/audy/downloads
python
Last synced: about 18 hours ago
JSON representation
:floppy_disk: Happy file downloading for Python
- Host: GitHub
- URL: https://github.com/audy/downloads
- Owner: audy
- License: mit
- Created: 2017-03-12T19:24:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T04:21:19.000Z (7 months ago)
- Last Synced: 2024-09-21T07:28:40.570Z (12 days ago)
- Topics: python
- Language: Python
- Homepage: https://github.com/audy/downloads
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Downloads
[![test](https://github.com/audy/downloads/workflows/test/badge.svg)](https://github.com/audy/downloads/actions?query=workflow%3Atest)
[![PyPI version](https://badge.fury.io/py/downloads.svg)](https://pypi.org/project/downloads/)
[![Downloads](https://pepy.tech/badge/downloads/month)](https://pepy.tech/project/downloads)Easier HTTP downloads in Python 3.7+
## Features
1. Easier to remember than `urllib`
2. Files are not written unless download finishes
3. Progress bar!## Installation
```
pip install downloads==1.1.0
```## Usage
```python
from downloads import downloaddownload("http://i.imgur.com/ij2h06p.png")
# output path is automatically determined and returned
# but you can specify it manually if that"s your thing:download("http://i.imgur.com/i5pJRxX.jpg", out_path="cheezburger.jpg")
# or, if you want to be fancy:
download("https://www.gutenberg.org/files/2600/2600-0.txt", progress=True)
```That's it!