Wrapper for pyLoad to allow downloading files through Python (no webserver). Includes CLI
Project description
ez-pyload
Wrapper for pyLoad so it can be used in your Python projects without too much overhead (it won't start a webserver like pyLoad normally does).
Installation
$ python3 -m pip install ez-pyload
Using as a library
ez-pyload comes with a single function: download(url: str, download_dir: str | Path, loglevel: int = logging.INFO) -> Path)
This function will download the file/folder at url
to the directory download_dir
. If loglevel is set to logging.DEBUG
, debug mode will be enabled.
Example
from ez_pyload import download
path = download("https://drive.google.com/file/d/xxxxxxxxxxxxxxxxxxx-xxxxxxxx/view?usp=drive_link", ".")
print("Downloaded file:", path)
Using as a CLI app
After installing, you may use pydl [url] [path]
to download a file/folder at url to the given path (defaults to current working directory)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ez_pyload-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9663d577d8f35b47274c1fe21caffa69c172baaff9f8bc88f919b640a739700 |
|
MD5 | f369874b2c2a4b99a5a6a1414916b839 |
|
BLAKE2b-256 | cfa711aafe8ef01e9502375e43a3a7d27f4ca0e1183fc87a83bcdd5e152c8079 |