dlmanager
dlmanager is Python 2 and 3 download manager library, with the following features:
Download files in background and in parallel
Cancel downloads
store downloads in a given directory, avoiding re-downloading files
Limit the size of this directory, removing oldest files
Example
from dlmanager import DownloadManager, PersistLimit
manager = DownloadManager(
"dlmanager-destir",
persist_limit=PersistLimit(
size_limit=1073741824, # 1 GB max
file_limit=10, # force to keep 10 files even if size_limit is reached
)
)
# Start downloads in background
# Note that if files are already present, this is a no-op.
manager.download(url1)
manager.download(url2)
# Wait for completion
try:
manager.wait()
except:
manager.cancel()
raise
Installation
Use pip:
pip install -U dlmanager
Metadata
Release files for dlmanager 0.1.1
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 |
|---|---|---|---|---|
| dlmanager-0.1.1.tar.gz | 2.1 kB | Without provenance | Details for dlmanager-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dlmanager-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for dlmanager-0.1.1-py2.py3-none-any.whl |
Total release size: 5.2 kB
Release files / dlmanager-0.1.1.tar.gz
| Download URL | dlmanager-0.1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae9d27189dd0fa977a7f30cb30f9bfa1c8ac7f697c5fc053aa0038b82ca31d9b
|
|
BLAKE2b-256 checksum How to use checksums |
a634ce422e0e07f9207bc2a568e912124df7d80d248273f733622b4af01799a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dlmanager-0.1.1-py2.py3-none-any.whl
| Download URL | dlmanager-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e44db05e963f70d7472e643a1188086dbd7e1ad25d20ae5d7b23d984402eb825
|
|
BLAKE2b-256 checksum How to use checksums |
b6a73498ddddc194a856bd707a67a32dea7f4e0a09d66be9f818b8c9c67fbf42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dlmanager 0.1.1
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.