pySmartDL

1.3.4 · maintenance · verified Thu Apr 16

pySmartDL is a Smart Download Manager for Python, providing features such as built-in download acceleration, mirror support, pause/unpause, speed limiting, and hash checking. It operates in a non-blocking manner and shows a progress bar, download speed, and ETA. The library version 1.3.4 was last updated on PyPI in September 2020, and the original project is not actively maintained, though a community fork exists.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart downloads a file to a specified destination. The `SmartDL` object's `start()` method is blocking by default. Error handling is included to report any download failures.

import os
from pySmartDL import SmartDL

# A URL to download (using a dummy placeholder for actual use)
url = "https://example.com/some_file.zip" 
# Ensure the destination directory exists
dest = os.path.join(os.getcwd(), "downloads")
os.makedirs(dest, exist_ok=True)

obj = SmartDL(url, dest)
obj.start() # Blocks until download is complete

if obj.isSuccessful():
    print(f"Download finished: {obj.get_dest()}")
else:
    print("Download failed. Errors:")
    for e in obj.get_errors():
        print(str(e))

view raw JSON →