Skip to main content

pysmartdl2

GitHub top language PyPI - Python Version GitHub License PyPI - Version PyPI - Downloads

This software is a fork of the pySmartDL or Python Smart Download Manager by iTaybb which appears to not be maintained anymore. I (1) went through its codebase to check if things work as expected in modern (Python 3.8-14+) versions of Python, (2) did some modernizing fixes here and there, (3) fixed broken test suites, (4) implemented automated testing workflows, and (4) restructured the package to modern standards (e.g., pyproject.toml). New features were added and bugs have been fixed, but original API is and will be retained, so that you can treat it as a drop-in replacement. Enjoy!

Test suites go over all popular Python versions (Python 3.9 - 3.14) on all four platforms enabled by GitHub Action Runners: Linux (Ubuntu), MacOS (M1 CPU), and Windows. Live status is shown below.

Multi-OS Multi-Python Build Multi-OS Multi-Python Build2 Multi-OS Multi-Python Build4

Per the pre-fork README, pysmartdl2 is a lightweight but full-fledged smart download manager for Python. Main features:

  • Built-in download acceleration (with the multipart downloading technique)
  • Mirrors support
  • Pausing and unpausing
  • Speed limiting feature
  • Hash checking
  • Non-blocking, shows the progress bar, download speed and ETA
  • Full support for custom headers and methods

Beyond what was mentioned earlier, pysmartdl2 ships with the following improvements over the legacy pysmartdl:

  • Smart handling of HTTP 429 errors with respecting Retry-After, per-thread chunk recovery, and other improvements to work reliably in the age of filters against AI bots
  • Proper socket cleanup and HEAD-based probing to avoid connection leaks and CDN throttling
  • Mid-download mirror failover (quite unique feature!) with per-mirror Range re-evaluation.
  • Accurate speed limiting and proper thread cancellations
  • A number of bugfixes related to thread-pool, pause/wait race conditions at retries or fast connections
  • Up-to-date User-Agent pool for reliable CDN compatibility

Installation

You can install pysmartdl2 from PyPI through pip, with a simple:

pip install pysmartdl2

Or you can install from the source in editable mode, by cloning this repository and:

pip install -e .

Usage

Downloading with it is as simple as creating an instance and starting it:

from pysmartdl2 import SmartDL

url = "https://raw.githubusercontent.com/amkrajewski/pysmartdl2/master/test/7za920.zip"
dest = "."  # <-- To download to current directory 
            # or '~/Downloads/' for Downloads directory on Linux
            # or "C:\\Downloads\\" for Downloads directory on Windows

obj = SmartDL(url, dest)
obj.start()
# [*] 0.23 Mb / 0.37 Mb @ 88.00Kb/s [##########--------] [60%, 2s left]

path = obj.get_dest()

Metadata

Release files for pysmartdl2 2.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 pysmartdl2 2.1.1
File Size Uploaded Provenance Actions
pysmartdl2-2.1.1.tar.gz 21.0 kB With provenance Details for pysmartdl2-2.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysmartdl2 2.1.1
File Interpreter ABI Platform Actions
pysmartdl2-2.1.1-py3-none-any.whl Python 3 none any Details for pysmartdl2-2.1.1-py3-none-any.whl

Total release size: 41.4 kB

Release files / pysmartdl2-2.1.1.tar.gz

Download URL pysmartdl2-2.1.1.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f0a34aeaf1270499f59379b651700f9f131faf08b6fa004c7fb659d769fafe1e
BLAKE2b-256 checksum
How to use checksums
31695559e30eee5555e63c21f3fd6e4ff2d4e5e54220eef4b1f26b31e482a5db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pysmartdl2-2.1.1-py3-none-any.whl

Download URL pysmartdl2-2.1.1-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ec9b192ff006e6781824aa43b8fdef9acd4923532725217ec9f0b328ff33896
BLAKE2b-256 checksum
How to use checksums
6a49c12ccec9af76104067306e5b040bb921b5f563319694e1aaa3d96cf6642d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for pysmartdl2 2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pysmartdl2-2.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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.

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