Skip to main content
https://badge.fury.io/py/dlmanager.svg Documentation Status https://travis-ci.org/parkouss/dlmanager.svg?branch=master https://codecov.io/github/parkouss/dlmanager/coverage.svg?branch=master

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)

Source distribution for dlmanager 0.1.1
File Size Uploaded
dlmanager-0.1.1.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dlmanager 0.1.1
File Interpreter ABI Platform
dlmanager-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page