Awesome evo_downloader created by maycuatroi
Project description
Evo Downloader
This module contains the main functionality for downloading files, including support for multi-threaded downloads and handling servers that do not support range requests.
Install it from PyPI
pip install evo-downloader
Usage
As a Library
You can use evo-download
to download files programmatically.
from evo_downloader.downloader import Downloader
downloader = Downloader(num_threads=10)
# Example file URLs
file_urls = [
# url only
"http://images.cocodataset.org/annotations/image_info_test2014.zip",
# Tuple with file name
('evo_downloader.zip', 'https://github.com/maycuatroi/evo_downloader/archive/refs/heads/main.zip')
]
downloaded_files = downloader.download_files(file_urls, "example_folder")
for file_path in downloaded_files:
print(f"Downloaded: {file_path}")
CLI Usage
You can also use edownload
from the command line.
$ python -m edownload download http://images.cocodataset.org/annotations/image_info_test2014.zip --folder example_folder --num-threads 10
# or if installed as a script
$ edownload download http://images.cocodataset.org/annotations/image_info_test2014.zip --folder example_folder --num-threads 10
Example Commands
# Download a file with range support
$ evo_downloader download http://images.cocodataset.org/annotations/image_info_test2014.zip --folder example_folder --num-threads 10
# Download a file without range support
$ evo_downloader download https://github.com/maycuatroi/evo_downloader/archive/refs/heads/main.zip --folder example_folder --num-threads 10
download_example.py
This example demonstrates how to use the Downloader
class to download files programmatically.
Evo Downloader developed with ❤️ by maycuatroi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
evo_downloader-1.0.7.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file evo_downloader-1.0.7.tar.gz
.
File metadata
- Download URL: evo_downloader-1.0.7.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe1413c450fe93588496d00bfec44924ba45632ef606a7964328b2af91ce740 |
|
MD5 | 665caa4daca69e5d4db452c4674b987a |
|
BLAKE2b-256 | a3be220b01e69d7136cc2ae56783cdbf115b5fbb12ba26c6742bd9e7f367163c |
File details
Details for the file evo_downloader-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: evo_downloader-1.0.7-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4da43a0231a32740a30018c503b47a90578c13a99ac491decd02d13ac40db1 |
|
MD5 | e35a74174ac6c658000d268ed8972f17 |
|
BLAKE2b-256 | ef55da5b0a81ebf33cfacb91e28e0d47a4cb36d4efebd392bdb0813a37d2a689 |