idm-cli 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
idm_cli-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rehan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ include requirements.txt
2
+ include README.md
3
+ include LICENSE
idm_cli-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.4
2
+ Name: idm-cli
3
+ Version: 0.0.1
4
+ Summary: A lightning-fast, universal command-line download manager
5
+ Home-page: https://github.com/rj41-w2/idm-cli
6
+ Author: Rehan
7
+ Author-email: rehanjamilwattoo@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Environment :: Console
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: typer
16
+ Requires-Dist: rich
17
+ Requires-Dist: aiohttp
18
+ Requires-Dist: aiofiles
19
+ Requires-Dist: yt-dlp
20
+ Requires-Dist: pyfiglet
21
+ Requires-Dist: questionary
22
+ Dynamic: author
23
+ Dynamic: author-email
24
+ Dynamic: classifier
25
+ Dynamic: description
26
+ Dynamic: description-content-type
27
+ Dynamic: home-page
28
+ Dynamic: license-file
29
+ Dynamic: requires-dist
30
+ Dynamic: requires-python
31
+ Dynamic: summary
32
+
33
+ # IDM-CLI (Internet Download Manager CLI)
34
+
35
+ A lightning-fast, powerful, and universal command-line download manager written in Python. IDM-CLI splits files into multiple parallel chunks (default 8, up to 32) to maximize your internet speed. It seamlessly supports downloading from **YouTube**, **Facebook**, and any **Direct File URL** (`.exe`, `.zip`, `.pdf`, etc.).
36
+
37
+ ## 🚀 Features
38
+
39
+ - **Blazing Fast Speeds:** Splits downloads into multiple parallel chunks (like traditional IDM) to fully saturate your bandwidth.
40
+ - **Universal Downloader:** Paste any direct URL (e.g., a `.pdf` or `.exe`). The built-in smart HTTP `HEAD` detector automatically recognizes file types and routes them to the parallel engine.
41
+ - **Social Media Support:** Natively supports downloading from **YouTube** and **Facebook** via a modular extractor architecture. Auto-detects pre-muxed (SD/HD) vs separated streams.
42
+ - **Audio Only / MP3 Conversion:** Easily download videos as audio. IDM-CLI automatically grabs the best audio stream and uses `ffmpeg` to perfectly convert it to `.mp3`.
43
+ - **Smart Auto-Resume:** Internet dropped? Pressed `Ctrl+C`? No problem! IDM-CLI remembers the exact byte positions of all incomplete chunks. Paste the same link again to resume instantly.
44
+ - **Persistent Queue System (`-Q`):** Add multiple files or videos to a queue and type `start queue` to automatically download all of them sequentially in the background.
45
+ - **Pristine Downloads Folder:** All temporary chunks and raw media files are kept hidden in `~/.idm_cli/tmp/`. Only the fully assembled, 100% complete files are moved to your `~/Downloads` folder.
46
+ - **Interactive UI:** A beautiful, responsive terminal interface powered by `rich` and `questionary` with real-time speed, ETA, and progress bars.
47
+ - **Pause & Play:** Press `p` to pause the active downloads without losing progress, and `r` to resume them.
48
+
49
+ ## 🛠️ Prerequisites
50
+
51
+ - **Python 3.8+**
52
+ - **FFmpeg:** Required for muxing video and audio streams, and converting media to `.mp3`. Ensure `ffmpeg` is installed and added to your system's PATH.
53
+
54
+ ## 📦 Installation
55
+
56
+ Clone the repository and install the required dependencies:
57
+
58
+ ```bash
59
+ git clone https://github.com/rj41-w2/idm-cli.git
60
+ cd IDM-CLI
61
+ pip install -r requirements.txt
62
+ ```
63
+
64
+ *(Note: If you plan to publish this to PyPI, users will simply be able to run `pip install idm-cli`)*
65
+
66
+ ## 💻 Usage
67
+
68
+ Run the app interactively by simply typing:
69
+ ```bash
70
+ idm
71
+ ```
72
+ This will open a prompt where you can paste your link, select video resolutions, or choose to queue the download.
73
+
74
+ ### CLI Flags (Fast Mode)
75
+
76
+ Skip the interactive menus by passing arguments directly!
77
+
78
+ ```bash
79
+ # Download a video with auto-selected 1080p quality
80
+ idm "https://youtube.com/watch?v=..." -q 1080p -v
81
+
82
+ # Download Audio Only (converts to MP3)
83
+ idm "https://youtube.com/watch?v=..." -a
84
+
85
+ # Use 16 parallel chunks for maximum speed (default is 8)
86
+ idm "https://example.com/largefile.zip" -c 16
87
+
88
+ # Add a video to the Queue without downloading it right now
89
+ idm "https://facebook.com/..." -Q
90
+ ```
91
+
92
+ ### Queue Management
93
+
94
+ To start downloading all items currently in your queue, simply type:
95
+ ```bash
96
+ idm start queue
97
+ ```
98
+ *(You can also just type `start queue` into the interactive `idm` prompt!)*
99
+
100
+ ## ⚙️ Architecture Highlights
101
+
102
+ - **`downloader.py`:** The core asynchronous engine handling `aiohttp` range requests, chunk merging, and resume states.
103
+ - **`cli.py`:** The interactive orchestration layer utilizing `typer`, `rich`, and `questionary`.
104
+ - **`muxer.py`:** Safe abstraction over `subprocess` calls to `ffmpeg` for media stream merging.
105
+ - **`extractors/`:** Modular plugins (`youtube.py`, `facebook.py`, `direct.py`) for handling specialized metadata retrieval.
106
+
107
+ ## 📄 License
108
+
109
+ This project is open-source and available under the MIT License.
@@ -0,0 +1,77 @@
1
+ # IDM-CLI (Internet Download Manager CLI)
2
+
3
+ A lightning-fast, powerful, and universal command-line download manager written in Python. IDM-CLI splits files into multiple parallel chunks (default 8, up to 32) to maximize your internet speed. It seamlessly supports downloading from **YouTube**, **Facebook**, and any **Direct File URL** (`.exe`, `.zip`, `.pdf`, etc.).
4
+
5
+ ## 🚀 Features
6
+
7
+ - **Blazing Fast Speeds:** Splits downloads into multiple parallel chunks (like traditional IDM) to fully saturate your bandwidth.
8
+ - **Universal Downloader:** Paste any direct URL (e.g., a `.pdf` or `.exe`). The built-in smart HTTP `HEAD` detector automatically recognizes file types and routes them to the parallel engine.
9
+ - **Social Media Support:** Natively supports downloading from **YouTube** and **Facebook** via a modular extractor architecture. Auto-detects pre-muxed (SD/HD) vs separated streams.
10
+ - **Audio Only / MP3 Conversion:** Easily download videos as audio. IDM-CLI automatically grabs the best audio stream and uses `ffmpeg` to perfectly convert it to `.mp3`.
11
+ - **Smart Auto-Resume:** Internet dropped? Pressed `Ctrl+C`? No problem! IDM-CLI remembers the exact byte positions of all incomplete chunks. Paste the same link again to resume instantly.
12
+ - **Persistent Queue System (`-Q`):** Add multiple files or videos to a queue and type `start queue` to automatically download all of them sequentially in the background.
13
+ - **Pristine Downloads Folder:** All temporary chunks and raw media files are kept hidden in `~/.idm_cli/tmp/`. Only the fully assembled, 100% complete files are moved to your `~/Downloads` folder.
14
+ - **Interactive UI:** A beautiful, responsive terminal interface powered by `rich` and `questionary` with real-time speed, ETA, and progress bars.
15
+ - **Pause & Play:** Press `p` to pause the active downloads without losing progress, and `r` to resume them.
16
+
17
+ ## 🛠️ Prerequisites
18
+
19
+ - **Python 3.8+**
20
+ - **FFmpeg:** Required for muxing video and audio streams, and converting media to `.mp3`. Ensure `ffmpeg` is installed and added to your system's PATH.
21
+
22
+ ## 📦 Installation
23
+
24
+ Clone the repository and install the required dependencies:
25
+
26
+ ```bash
27
+ git clone https://github.com/rj41-w2/idm-cli.git
28
+ cd IDM-CLI
29
+ pip install -r requirements.txt
30
+ ```
31
+
32
+ *(Note: If you plan to publish this to PyPI, users will simply be able to run `pip install idm-cli`)*
33
+
34
+ ## 💻 Usage
35
+
36
+ Run the app interactively by simply typing:
37
+ ```bash
38
+ idm
39
+ ```
40
+ This will open a prompt where you can paste your link, select video resolutions, or choose to queue the download.
41
+
42
+ ### CLI Flags (Fast Mode)
43
+
44
+ Skip the interactive menus by passing arguments directly!
45
+
46
+ ```bash
47
+ # Download a video with auto-selected 1080p quality
48
+ idm "https://youtube.com/watch?v=..." -q 1080p -v
49
+
50
+ # Download Audio Only (converts to MP3)
51
+ idm "https://youtube.com/watch?v=..." -a
52
+
53
+ # Use 16 parallel chunks for maximum speed (default is 8)
54
+ idm "https://example.com/largefile.zip" -c 16
55
+
56
+ # Add a video to the Queue without downloading it right now
57
+ idm "https://facebook.com/..." -Q
58
+ ```
59
+
60
+ ### Queue Management
61
+
62
+ To start downloading all items currently in your queue, simply type:
63
+ ```bash
64
+ idm start queue
65
+ ```
66
+ *(You can also just type `start queue` into the interactive `idm` prompt!)*
67
+
68
+ ## ⚙️ Architecture Highlights
69
+
70
+ - **`downloader.py`:** The core asynchronous engine handling `aiohttp` range requests, chunk merging, and resume states.
71
+ - **`cli.py`:** The interactive orchestration layer utilizing `typer`, `rich`, and `questionary`.
72
+ - **`muxer.py`:** Safe abstraction over `subprocess` calls to `ffmpeg` for media stream merging.
73
+ - **`extractors/`:** Modular plugins (`youtube.py`, `facebook.py`, `direct.py`) for handling specialized metadata retrieval.
74
+
75
+ ## 📄 License
76
+
77
+ This project is open-source and available under the MIT License.
@@ -0,0 +1 @@
1
+ # IDM-CLI Package