Simple Download Manager
Simple Download Manager is a complete desktop application built with Python and CustomTkinter. It downloads files from direct URLs, accelerates transfers with segmented multi-threading, supports pause and resume, and keeps a persistent download history across application restarts.
Features
The project includes:
- a src-based package layout
- a runnable CustomTkinter desktop shell
- domain models for downloads and status tracking
- an HTTP probe service that inspects remote files before download
- a simple download manager with worker threads, pause, resume, cancel, partial resume, and file assembly
- SQLite-backed task history loaded automatically on startup
- SQLite-backed per-segment metadata for richer recovery and diagnostics
- configurable default save location, thread count, retry count, and max concurrent downloads
- queueing when the concurrent download limit is reached
- optional scheduled start times per download
- shared bandwidth limiting across active downloads
- queue actions for removing tasks and opening download folders
- direct open-file actions for completed downloads
- advanced progress with live speed and ETA
- a recent activity panel and in-app completion/failure notifications
- a live task details dialog for segment-level diagnostics
- unit and integration tests for speed tracking, persistence, segment resume, and end-to-end downloads
Functional Coverage
This implementation satisfies the project requirements for:
- file downloading from URLs
- multi-threaded segmented downloads
- HTTP Range request handling
- error handling with automatic retry
- pause and resume
- progress monitoring with percentage, speed, and ETA
- download history persistence
- download scheduling
- bandwidth limiting
- resume after application restart
- queue management
Architecture
graph TD
UI[UI Layer] --> APP[Application Controller]
APP --> DM[Download Manager]
DM --> HTTP[HTTP Probe Service]
DM --> CTRL[Thread Controller]
CTRL --> WORKERS[Segment Workers]
CTRL --> ASSEMBLER[File Assembler]
DM --> CORE[Download Domain Model]
DM --> PERSIST[SQLite History Store]
The application follows a layered desktop architecture with a clear split between UI, orchestration, download execution, and persistence. Communication between components is handled through Python objects, threads, and HTTP requests.
Project Layout
Simple Download Manager/
├── main.py
├── pyproject.toml
├── requirements.txt
├── src/
│ └── sdm/
│ ├── app.py
│ ├── core/
│ ├── models/
│ └── ui/
└── tests/
Testing
Run the full automated suite:
python -m pytest
Current result: 19 passed.
Run
Create a virtual environment and install dependencies:
# Optional, but highly recommended
python3 -m venv venv
python -m pip install -r requirements.txt
If you are using Debian/Ubuntu:
sudo apt update
sudo apt install python3-tk
Finally, run the application:
python main.py
After publishing to PyPI, you will also be able to install it with:
python -m pip install simpledownloadmanager-sfar
sdm
License
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for the full text.
Metadata
Release files for simpledownloadmanager-sfar 0.1.0
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 |
|---|---|---|---|---|
| simpledownloadmanager_sfar-0.1.0.tar.gz | 38.3 kB | Without provenance | Details for simpledownloadmanager_sfar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simpledownloadmanager_sfar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for simpledownloadmanager_sfar-0.1.0-py3-none-any.whl |
Total release size: 79.0 kB
Release files / simpledownloadmanager_sfar-0.1.0.tar.gz
| Download URL | simpledownloadmanager_sfar-0.1.0.tar.gz |
|---|---|
| Size | 38.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce34bb7b35876e0bc81f6e3aa0cd1f9056933a5ade5d39576ce830b18f6d12a0
|
|
BLAKE2b-256 checksum How to use checksums |
6941dd3e4f079a19c972613b688358cd940c495096416c1f97ecd2999222cc43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / simpledownloadmanager_sfar-0.1.0-py3-none-any.whl
| Download URL | simpledownloadmanager_sfar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f1752014468190ca548cec3dd46b35023826c8fa087baf64fa4505a73c1782e
|
|
BLAKE2b-256 checksum How to use checksums |
ae17c6d0fbaabd91abea83bd5e117a04a3d1161bd240bbfa0aed4aae52780264
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for simpledownloadmanager-sfar 0.1.0
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.