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-download
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.6.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file evo_downloader-1.0.6.tar.gz
.
File metadata
- Download URL: evo_downloader-1.0.6.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 | 77a8e70789a6916e31e6d08c44648b61051a836554dc403e510b8befbef1efd1 |
|
MD5 | 6da67d53cd8e310ff10274c65e159269 |
|
BLAKE2b-256 | ea9e32f24bca6594e99d453adce9a2b9a391f448ff56105a33e72f2e354c3bab |
File details
Details for the file evo_downloader-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: evo_downloader-1.0.6-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 | e21720219f6ffd1d52b680bc0e865c3c06f742173266a31ded5d6e0042167a57 |
|
MD5 | 0748c3930b346398bde76381dd3c3446 |
|
BLAKE2b-256 | 569dac262b8e2cd5422c9f356356729b91ce008016643fc135f2e91519aba41f |