DDownloader 0.1.1__tar.gz → 0.1.3__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.
@@ -0,0 +1,77 @@
1
+ Metadata-Version: 2.1
2
+ Name: DDownloader
3
+ Version: 0.1.3
4
+ Summary: A library to download HLS and DASH manifests and decrypt media files.
5
+ Author: Pari Malam
6
+ Author-email: shafiqsamsuri@serasi.tech
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+
14
+ # DDownloader
15
+
16
+ **DDownloader** is a Python library to download HLS and DASH manifests and decrypt media files.
17
+
18
+ ## Features
19
+ - Download HLS streams using `N_m3u8DL-RE`.
20
+ - Download DASH manifests and segments.
21
+ - Decrypt media files using `mp4decrypt`.
22
+
23
+ ## Installation
24
+
25
+ Use the package manager [pip](https://pypi.org/project/DDownloader/0.1.3/) to install DDownloader.
26
+
27
+ ```bash
28
+ pip install DDownloader==0.1.3
29
+ ```
30
+
31
+ ## Usage
32
+ - Download HLS content using the library:
33
+ ```python
34
+ from DDownloader import HLSDownloader
35
+
36
+ hls_downloader = HLSDownloader("https://example.com/playlist.m3u8")
37
+ hls_downloader.download_with_n_m3u8dl()
38
+ ```
39
+ - Download Dash content using the library:
40
+ ```python
41
+ from DDownloader import DASHDownloader
42
+
43
+ dash_downloader = DASHDownloader("https://example.com/manifest.mpd")
44
+ dash_downloader.download_with_n_m3u8dl()
45
+ ```
46
+ - To decrypt media files after downloading:
47
+ ```python
48
+ from DDownloader import DecryptDownloader
49
+
50
+ decrypt_downloader = DecryptDownloader()
51
+ decrypt_downloader.set_manifest_url("https://example.com/manifest.mpd")
52
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
53
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
54
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
55
+ ```
56
+ - Here's a complete example demonstrating the use of all features:
57
+ ```python
58
+ from DDownloader import HLSDownloader, DASHDownloader, DecryptDownloader
59
+
60
+ # HLS Download Example
61
+ hls_url = "https://example.com/playlist.m3u8"
62
+ hls_downloader = HLSDownloader(hls_url)
63
+ hls_downloader.download_with_n_m3u8dl()
64
+
65
+ # DASH Download Example
66
+ dash_url = "https://example.com/manifest.mpd"
67
+ dash_downloader = DASHDownloader(dash_url)
68
+ dash_downloader.download_with_n_m3u8dl()
69
+
70
+ # Decrypting Example
71
+ decrypt_downloader = DecryptDownloader()
72
+ decrypt_downloader.set_manifest_url(dash_url)
73
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
74
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
75
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
76
+
77
+ ```
@@ -7,6 +7,5 @@ DDownloader/hls_downloader.py
7
7
  DDownloader.egg-info/PKG-INFO
8
8
  DDownloader.egg-info/SOURCES.txt
9
9
  DDownloader.egg-info/dependency_links.txt
10
- DDownloader.egg-info/entry_points.txt
11
10
  DDownloader.egg-info/requires.txt
12
11
  DDownloader.egg-info/top_level.txt
@@ -0,0 +1,77 @@
1
+ Metadata-Version: 2.1
2
+ Name: DDownloader
3
+ Version: 0.1.3
4
+ Summary: A library to download HLS and DASH manifests and decrypt media files.
5
+ Author: Pari Malam
6
+ Author-email: shafiqsamsuri@serasi.tech
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+
14
+ # DDownloader
15
+
16
+ **DDownloader** is a Python library to download HLS and DASH manifests and decrypt media files.
17
+
18
+ ## Features
19
+ - Download HLS streams using `N_m3u8DL-RE`.
20
+ - Download DASH manifests and segments.
21
+ - Decrypt media files using `mp4decrypt`.
22
+
23
+ ## Installation
24
+
25
+ Use the package manager [pip](https://pypi.org/project/DDownloader/0.1.3/) to install DDownloader.
26
+
27
+ ```bash
28
+ pip install DDownloader==0.1.3
29
+ ```
30
+
31
+ ## Usage
32
+ - Download HLS content using the library:
33
+ ```python
34
+ from DDownloader import HLSDownloader
35
+
36
+ hls_downloader = HLSDownloader("https://example.com/playlist.m3u8")
37
+ hls_downloader.download_with_n_m3u8dl()
38
+ ```
39
+ - Download Dash content using the library:
40
+ ```python
41
+ from DDownloader import DASHDownloader
42
+
43
+ dash_downloader = DASHDownloader("https://example.com/manifest.mpd")
44
+ dash_downloader.download_with_n_m3u8dl()
45
+ ```
46
+ - To decrypt media files after downloading:
47
+ ```python
48
+ from DDownloader import DecryptDownloader
49
+
50
+ decrypt_downloader = DecryptDownloader()
51
+ decrypt_downloader.set_manifest_url("https://example.com/manifest.mpd")
52
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
53
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
54
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
55
+ ```
56
+ - Here's a complete example demonstrating the use of all features:
57
+ ```python
58
+ from DDownloader import HLSDownloader, DASHDownloader, DecryptDownloader
59
+
60
+ # HLS Download Example
61
+ hls_url = "https://example.com/playlist.m3u8"
62
+ hls_downloader = HLSDownloader(hls_url)
63
+ hls_downloader.download_with_n_m3u8dl()
64
+
65
+ # DASH Download Example
66
+ dash_url = "https://example.com/manifest.mpd"
67
+ dash_downloader = DASHDownloader(dash_url)
68
+ dash_downloader.download_with_n_m3u8dl()
69
+
70
+ # Decrypting Example
71
+ decrypt_downloader = DecryptDownloader()
72
+ decrypt_downloader.set_manifest_url(dash_url)
73
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
74
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
75
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
76
+
77
+ ```
@@ -9,30 +9,30 @@
9
9
 
10
10
  ## Installation
11
11
 
12
- Use the package manager [pip](https://pypi.org/project/DDownloader/0.1.0/) to install DDownloader.
12
+ Use the package manager [pip](https://pypi.org/project/DDownloader/0.1.3/) to install DDownloader.
13
13
 
14
14
  ```bash
15
- pip install DDownloader==0.1.0
15
+ pip install DDownloader==0.1.3
16
16
  ```
17
17
 
18
18
  ## Usage
19
19
  - Download HLS content using the library:
20
20
  ```python
21
- from manifest_downloader import HLSDownloader
21
+ from DDownloader import HLSDownloader
22
22
 
23
23
  hls_downloader = HLSDownloader("https://example.com/playlist.m3u8")
24
24
  hls_downloader.download_with_n_m3u8dl()
25
25
  ```
26
26
  - Download Dash content using the library:
27
27
  ```python
28
- from manifest_downloader import DASHDownloader
28
+ from DDownloader import DASHDownloader
29
29
 
30
30
  dash_downloader = DASHDownloader("https://example.com/manifest.mpd")
31
31
  dash_downloader.download_with_n_m3u8dl()
32
32
  ```
33
33
  - To decrypt media files after downloading:
34
34
  ```python
35
- from manifest_downloader import DecryptDownloader
35
+ from DDownloader import DecryptDownloader
36
36
 
37
37
  decrypt_downloader = DecryptDownloader()
38
38
  decrypt_downloader.set_manifest_url("https://example.com/manifest.mpd")
@@ -42,7 +42,7 @@ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp
42
42
  ```
43
43
  - Here's a complete example demonstrating the use of all features:
44
44
  ```python
45
- from manifest_downloader import HLSDownloader, DASHDownloader, DecryptDownloader
45
+ from DDownloader import HLSDownloader, DASHDownloader, DecryptDownloader
46
46
 
47
47
  # HLS Download Example
48
48
  hls_url = "https://example.com/playlist.m3u8"
@@ -1,12 +1,11 @@
1
1
  from setuptools import setup, find_packages
2
- import os
3
-
4
- here = os.path.abspath(os.path.dirname(__file__))
5
2
 
6
3
  setup(
7
4
  name='DDownloader',
8
- version='0.1.1',
5
+ version='0.1.3',
9
6
  description='A library to download HLS and DASH manifests and decrypt media files.',
7
+ long_description=open('README.md').read(),
8
+ long_description_content_type='text/markdown',
10
9
  author='Pari Malam',
11
10
  author_email='shafiqsamsuri@serasi.tech',
12
11
  packages=find_packages(),
@@ -22,9 +21,4 @@ setup(
22
21
  package_data={
23
22
  '': ['bin/*'],
24
23
  },
25
- entry_points={
26
- 'console_scripts': [
27
- 'd-downloader = manifest_downloader:main',
28
- ],
29
- },
30
24
  )
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: DDownloader
3
- Version: 0.1.1
4
- Summary: A library to download HLS and DASH manifests and decrypt media files.
5
- Author: Pari Malam
6
- Author-email: shafiqsamsuri@serasi.tech
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: License :: OSI Approved :: MIT License
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
11
- Requires-Dist: requests
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- d-downloader = manifest_downloader:main
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: DDownloader
3
- Version: 0.1.1
4
- Summary: A library to download HLS and DASH manifests and decrypt media files.
5
- Author: Pari Malam
6
- Author-email: shafiqsamsuri@serasi.tech
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: License :: OSI Approved :: MIT License
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
11
- Requires-Dist: requests
File without changes