pyg-downloader
Uses multiple parallel connections to download a file.
Testing
pytest
Install
pip install pyg-downloader
OR if you want to show progress
pip install pyg-downloader[atpbar]
Usage
CLI
pyg-downloader https://download.samplelib.com/mp4/sample-15s.mp4 -o test.mp4 --max-connections 8 --progress
To Download to disk
from pyg_download_manager import DownloadManager
manager = DownloadManager(max_connections=8, show_progress=True)
# Download to disk and returns the path to the file
# destination_path is the path to the folder for download
# filename is the name of the file to save to. Default is the filename from url.
path = manager.download("https://download.samplelib.com/mp4/sample-15s.mp4", destination_path='./', filename=None)
To Download to memory
from pyg_download_manager import DownloadManager
manager = DownloadManager(max_connections=8, show_progress=True)
# Download data to an BytesIO object and returns the object
# task_name is used to log progress. Default is the filename from url.
data = manager.get("https://download.samplelib.com/mp4/sample-15s.mp4", task_name='Test Task')
Metadata
Release files for pyg-downloader 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyg-downloader-0.0.2.tar.gz | 5.4 kB | Without provenance | Details for pyg-downloader-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyg_downloader-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pyg_downloader-0.0.2-py3-none-any.whl |
Total release size: 11.6 kB
Release files / pyg-downloader-0.0.2.tar.gz
| Download URL | pyg-downloader-0.0.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64b167cbcdd926d302f15881fcfbf874348057bc362e6e4953cb617f846ca4a8
|
|
BLAKE2b-256 checksum How to use checksums |
69d37f408a0df4870871a30c454f40bd6d7125ad8bcd1842af53d06bd9f68aee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / pyg_downloader-0.0.2-py3-none-any.whl
| Download URL | pyg_downloader-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
042cc8ffb8bdb74372e87057d303d6bf90f1fd223090c7efb7fcf5bb02125736
|
|
BLAKE2b-256 checksum How to use checksums |
cf7bbd1016e3fe6ce81741952e6a0ad84a956dd552a94936d0796565738b925b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for pyg-downloader 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.