https://github.com/4thel00z/dwnld
A small download helper library for Python.
https://github.com/4thel00z/dwnld
download dwnld file ftp http https python python3 sftp ssh torrent
Last synced: 8 months ago
JSON representation
A small download helper library for Python.
- Host: GitHub
- URL: https://github.com/4thel00z/dwnld
- Owner: 4thel00z
- License: gpl-3.0
- Created: 2021-07-26T13:44:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T19:06:22.000Z (over 4 years ago)
- Last Synced: 2025-07-13T23:21:40.944Z (12 months ago)
- Topics: download, dwnld, file, ftp, http, https, python, python3, sftp, ssh, torrent
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# dwnld

## Motivation
A library to download stuff given urls with different protocols, like `ftp://...` or `ssh://...`.
## Usage
There is only one interesting module level function in this repo, it can download (or move) stuff from A to B:
```python
from dwnld import download
download("file://stuff.txt", "somewhere_else.txt")
download("ssh://some-remote-server:/home/reptile/stuff.txt", "here.txt")
download("https://cool.com/nice.pdf", "here.pdf")
download("http://cool.com/nice.pdf", "here.pdf")
# supports tor via
download("onion://cool.onion/here.pdf", "here.pdf", proto="https")
```
## Todos
- Support ftp/sftp
- Support torrent
- Support non-default ports for tor/socks4/socks5 server
## License
This project is licensed under the GPL-3 license.