pyxtream 0.7.1__tar.gz → 0.7.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.
- {pyxtream-0.7.1/pyxtream.egg-info → pyxtream-0.7.3}/PKG-INFO +33 -23
- pyxtream-0.7.1/PKG-INFO → pyxtream-0.7.3/README.md +23 -35
- pyxtream-0.7.3/pyproject.toml +34 -0
- {pyxtream-0.7.1 → pyxtream-0.7.3}/pyxtream/__init__.py +1 -1
- pyxtream-0.7.3/pyxtream/html/index.html +917 -0
- {pyxtream-0.7.1 → pyxtream-0.7.3}/pyxtream/progress.py +10 -10
- {pyxtream-0.7.1 → pyxtream-0.7.3}/pyxtream/pyxtream.py +273 -139
- pyxtream-0.7.3/pyxtream/rest_api.py +115 -0
- {pyxtream-0.7.1 → pyxtream-0.7.3}/pyxtream/schemaValidator.py +92 -91
- {pyxtream-0.7.1 → pyxtream-0.7.3}/pyxtream/version.py +1 -1
- pyxtream-0.7.1/README.md +0 -125
- pyxtream-0.7.1/pyproject.toml +0 -22
- pyxtream-0.7.1/pyxtream/rest_api.py +0 -89
- pyxtream-0.7.1/pyxtream.egg-info/SOURCES.txt +0 -15
- pyxtream-0.7.1/pyxtream.egg-info/dependency_links.txt +0 -1
- pyxtream-0.7.1/pyxtream.egg-info/requires.txt +0 -3
- pyxtream-0.7.1/pyxtream.egg-info/top_level.txt +0 -1
- pyxtream-0.7.1/setup.cfg +0 -4
- pyxtream-0.7.1/setup.py +0 -40
- {pyxtream-0.7.1 → pyxtream-0.7.3}/LICENSE +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: pyxtream
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: xtream IPTV loader
|
|
5
|
-
Home-page: https://github.com/superolmo/pyxtream
|
|
6
|
-
Author: Claudio Olmi
|
|
7
|
-
Author-email: superolmo2@gmail.com
|
|
8
5
|
License: GPL3
|
|
9
|
-
|
|
6
|
+
Author: Claudio Olmi
|
|
7
|
+
Author-email: <superolmo2@gmail.com>
|
|
8
|
+
Requires-Python: >=3.9
|
|
10
9
|
Classifier: Development Status :: 4 - Beta
|
|
11
10
|
Classifier: Environment :: Console
|
|
12
11
|
Classifier: Intended Audience :: Developers
|
|
@@ -14,15 +13,17 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
14
13
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
15
14
|
Classifier: Operating System :: OS Independent
|
|
16
15
|
Classifier: Natural Language :: English
|
|
16
|
+
Provides-Extra: flask
|
|
17
|
+
Requires-Dist: flask (>=3.1.0,<4.0.0) ; extra == "flask"
|
|
18
|
+
Requires-Dist: jsonschema (>=4.23.0,<5.0.0)
|
|
19
|
+
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
17
20
|
Description-Content-Type: text/markdown
|
|
18
|
-
Provides-Extra: REST_API
|
|
19
|
-
License-File: LICENSE
|
|
20
21
|
|
|
21
22
|
# PyXtream - A Python Xtream Loader
|
|
22
23
|
|
|
23
24
|
PyXtream loads the xtream IPTV content from a provider server. Groups, Channels, Series are all organized in dictionaries. Season and Episodes are retrieved as needed. It includes functions for searching streams and downloading.
|
|
24
25
|
|
|
25
|
-
This library was originally designed to work with Hypnotix at https://github.com/linuxmint/hypnotix
|
|
26
|
+
This library was originally designed to work with Hypnotix at https://github.com/linuxmint/hypnotix, so its compatibility with Hypnotix takes precedence.
|
|
26
27
|
|
|
27
28
|
# Installing
|
|
28
29
|
|
|
@@ -54,19 +55,17 @@ else:
|
|
|
54
55
|
print("Could not connect")
|
|
55
56
|
```
|
|
56
57
|
|
|
57
|
-
Once completed, all the data can be found in xTream.groups
|
|
58
|
+
Once completed, all the data can be found in `xTream.groups`, `xTream.channels`, `xTream.movies`, `xTream.series`. Series do not contains the information for all the Seasons and Episodes. Those are loaded separately when needed by calling the following function using a Series object from `xTream.series` array of dictionaries.
|
|
58
59
|
|
|
59
60
|
```python
|
|
60
61
|
xt.get_series_info_by_id(series_obj)
|
|
61
62
|
```
|
|
62
63
|
|
|
63
|
-
At this point, the series_obj will have both Seasons and Episodes populated.
|
|
64
|
-
|
|
65
|
-
If you have installed Flask, the REST Api will be turned ON automatically. At this point, there is no method to turn it off. Maybe in a future version.
|
|
64
|
+
At this point, the `series_obj` will have both Seasons and Episodes populated.
|
|
66
65
|
|
|
67
66
|
## Functional Test
|
|
68
67
|
|
|
69
|
-
Please modify the functional_test.py file with your provider information, then start the application.
|
|
68
|
+
Please modify the `functional_test.py` file with your provider information, then start the application.
|
|
70
69
|
|
|
71
70
|
```shell
|
|
72
71
|
python3 functional_test.py
|
|
@@ -74,19 +73,15 @@ python3 functional_test.py
|
|
|
74
73
|
|
|
75
74
|
The functional test will allow you to authenticate on startup, load and search streams. If Flask is installed, a simple website will be available at http://localhost:5000 to allow you to search and play streams.
|
|
76
75
|
|
|
77
|
-
|
|
76
|
+
## Applications using PyXtream
|
|
78
77
|
|
|
79
|
-
|
|
78
|
+
Applications using PyXtream PYPI package
|
|
80
79
|
|
|
81
|
-
-
|
|
82
|
-
- https://github.com/videojs/mux.js/
|
|
80
|
+
- xtreamPOC - https://github.com/sght500/xtreamPOC - Project is a Proof of Concept (POC) that leverages pyxtream, MPV, and NiceGUI to demonstrate the use of Xtream Portal Codes.
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
- https://developpaper.com/play-ts-video-directly-on-the-web/
|
|
86
|
-
|
|
87
|
-
- This below will allow me to process chunks of data
|
|
88
|
-
- https://stackoverflow.com/questions/37402716/handle-xmlhttprequest-response-with-large-data
|
|
82
|
+
Applications using PyXtream files
|
|
89
83
|
|
|
84
|
+
- Hypnotix - https://github.com/linuxmint/hypnotix - Hypnotix is an IPTV streaming application with support for live TV, movies and series.
|
|
90
85
|
|
|
91
86
|
# API
|
|
92
87
|
|
|
@@ -124,6 +119,7 @@ xTream.movies[{},{},...]
|
|
|
124
119
|
- xTream.allEpg()
|
|
125
120
|
|
|
126
121
|
# Versioning
|
|
122
|
+
Follows the Semantic Versioning from https://semver.org/
|
|
127
123
|
- Increment the MAJOR version when you make incompatible API changes.
|
|
128
124
|
- Increment the MINOR version when you add functionality in a backwards-compatible manner.
|
|
129
125
|
- Increment the PATCH version when you make backwards-compatible bug fixes.
|
|
@@ -132,6 +128,8 @@ xTream.movies[{},{},...]
|
|
|
132
128
|
|
|
133
129
|
| Date | Version | Description |
|
|
134
130
|
| ----------- | -----| ----------- |
|
|
131
|
+
| 2025-02-17 | 0.7.3 | - Added Initial PyTest and Coverage<br>- Added timestamp field "added" to Series to match channels "added" field<br>- Added string field "url" to Series to quickly get the series download address<br>- Added new API "get_last_7days()" returns the last added streams in the last 7 days in JSON format<br>- Added new API "get_download_progress()" returns information on the current download stream in JSON format<br>- Changed internal function _load_series_info_by_id_from_provider to allow returned value to change to JSON<br>- Changed search_stream function to only search in specific collections<br>- Refactored "rest_api.py" to make it easier to extend in the future<br>- Added new rest API<br>- Changed to Poetry environment<br>- Changed Functional Test to test loading series information<br>- Changed sample index.html to test more features|
|
|
132
|
+
| 2024-09-02 | 0.7.2 | - Added missing request package to setup.py<br>- Refactored the search stream function and now, it can search for a specific stream type<br>- Refactored the download stream function<br>- Refactored the _get_request function and removed the call to the sleep function<br>- Added functional test to get series json output from a series_id<br>- Added functional test to get EPG for a specific stream ID<br>- Added xtream account expiration date printed on the console during authentication<br>- Improved results with the Flask HTML page and differentiating between movies and series<br>- Improved code readability|
|
|
135
133
|
| 2024-05-21 | 0.7.1 | - Fixed missing jsonschema package<br>- Fixed provider name in functional_test<br>- Improved print out of connection attempts<br>- Added method to read latest changes in functional_test
|
|
136
134
|
| 2023-11-08 | 0.7.0 | - Added Schema Validator<br>- Added Channel Age<br>- Added list of movies added in the last 30 and 7 days<br>- Updated code based on PyLint<br>- Fixed Flask package to be optional [richard-de-vos](https://github.com/richard-de-vos)|
|
|
137
135
|
| 2023-02-06 | 0.6.0 | - Added methods to change connection header, to turn off reload timer, and to enable/disable Flask debug mode<br>- Added a loop when attempting to connect to the provider <br>- Cleaned up some print lines|
|
|
@@ -144,4 +142,16 @@ xTream.movies[{},{},...]
|
|
|
144
142
|
| 2021-06-04 | 0.1.1 | - Updated README.md |
|
|
145
143
|
| 2021-06-04 | 0.1.0 | - Initial Release |
|
|
146
144
|
|
|
145
|
+
## Interesting content that could be used for future development
|
|
146
|
+
|
|
147
|
+
So far there is no ready to use Transport Stream library for playing live stream.
|
|
148
|
+
|
|
149
|
+
- This is the library to convert TS to MP4
|
|
150
|
+
- https://github.com/videojs/mux.js/
|
|
151
|
+
|
|
152
|
+
- More on above, but same problem. XMLHttpRequest waits until the whole TS file is completely loaded. It does not work for live video streams
|
|
153
|
+
- https://developpaper.com/play-ts-video-directly-on-the-web/
|
|
154
|
+
|
|
155
|
+
- This below will allow me to process chunks of data
|
|
156
|
+
- https://stackoverflow.com/questions/37402716/handle-xmlhttprequest-response-with-large-data
|
|
147
157
|
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pyxtream
|
|
3
|
-
Version: 0.7.1
|
|
4
|
-
Summary: xtream IPTV loader
|
|
5
|
-
Home-page: https://github.com/superolmo/pyxtream
|
|
6
|
-
Author: Claudio Olmi
|
|
7
|
-
Author-email: superolmo2@gmail.com
|
|
8
|
-
License: GPL3
|
|
9
|
-
Platform: UNKNOWN
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: Environment :: Console
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
15
|
-
Classifier: Operating System :: OS Independent
|
|
16
|
-
Classifier: Natural Language :: English
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
Provides-Extra: REST_API
|
|
19
|
-
License-File: LICENSE
|
|
20
|
-
|
|
21
1
|
# PyXtream - A Python Xtream Loader
|
|
22
2
|
|
|
23
3
|
PyXtream loads the xtream IPTV content from a provider server. Groups, Channels, Series are all organized in dictionaries. Season and Episodes are retrieved as needed. It includes functions for searching streams and downloading.
|
|
24
4
|
|
|
25
|
-
This library was originally designed to work with Hypnotix at https://github.com/linuxmint/hypnotix
|
|
5
|
+
This library was originally designed to work with Hypnotix at https://github.com/linuxmint/hypnotix, so its compatibility with Hypnotix takes precedence.
|
|
26
6
|
|
|
27
7
|
# Installing
|
|
28
8
|
|
|
@@ -54,19 +34,17 @@ else:
|
|
|
54
34
|
print("Could not connect")
|
|
55
35
|
```
|
|
56
36
|
|
|
57
|
-
Once completed, all the data can be found in xTream.groups
|
|
37
|
+
Once completed, all the data can be found in `xTream.groups`, `xTream.channels`, `xTream.movies`, `xTream.series`. Series do not contains the information for all the Seasons and Episodes. Those are loaded separately when needed by calling the following function using a Series object from `xTream.series` array of dictionaries.
|
|
58
38
|
|
|
59
39
|
```python
|
|
60
40
|
xt.get_series_info_by_id(series_obj)
|
|
61
41
|
```
|
|
62
42
|
|
|
63
|
-
At this point, the series_obj will have both Seasons and Episodes populated.
|
|
64
|
-
|
|
65
|
-
If you have installed Flask, the REST Api will be turned ON automatically. At this point, there is no method to turn it off. Maybe in a future version.
|
|
43
|
+
At this point, the `series_obj` will have both Seasons and Episodes populated.
|
|
66
44
|
|
|
67
45
|
## Functional Test
|
|
68
46
|
|
|
69
|
-
Please modify the functional_test.py file with your provider information, then start the application.
|
|
47
|
+
Please modify the `functional_test.py` file with your provider information, then start the application.
|
|
70
48
|
|
|
71
49
|
```shell
|
|
72
50
|
python3 functional_test.py
|
|
@@ -74,19 +52,15 @@ python3 functional_test.py
|
|
|
74
52
|
|
|
75
53
|
The functional test will allow you to authenticate on startup, load and search streams. If Flask is installed, a simple website will be available at http://localhost:5000 to allow you to search and play streams.
|
|
76
54
|
|
|
77
|
-
|
|
55
|
+
## Applications using PyXtream
|
|
78
56
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- This is the library to convert TS to MP4
|
|
82
|
-
- https://github.com/videojs/mux.js/
|
|
57
|
+
Applications using PyXtream PYPI package
|
|
83
58
|
|
|
84
|
-
-
|
|
85
|
-
- https://developpaper.com/play-ts-video-directly-on-the-web/
|
|
59
|
+
- xtreamPOC - https://github.com/sght500/xtreamPOC - Project is a Proof of Concept (POC) that leverages pyxtream, MPV, and NiceGUI to demonstrate the use of Xtream Portal Codes.
|
|
86
60
|
|
|
87
|
-
|
|
88
|
-
- https://stackoverflow.com/questions/37402716/handle-xmlhttprequest-response-with-large-data
|
|
61
|
+
Applications using PyXtream files
|
|
89
62
|
|
|
63
|
+
- Hypnotix - https://github.com/linuxmint/hypnotix - Hypnotix is an IPTV streaming application with support for live TV, movies and series.
|
|
90
64
|
|
|
91
65
|
# API
|
|
92
66
|
|
|
@@ -124,6 +98,7 @@ xTream.movies[{},{},...]
|
|
|
124
98
|
- xTream.allEpg()
|
|
125
99
|
|
|
126
100
|
# Versioning
|
|
101
|
+
Follows the Semantic Versioning from https://semver.org/
|
|
127
102
|
- Increment the MAJOR version when you make incompatible API changes.
|
|
128
103
|
- Increment the MINOR version when you add functionality in a backwards-compatible manner.
|
|
129
104
|
- Increment the PATCH version when you make backwards-compatible bug fixes.
|
|
@@ -132,6 +107,8 @@ xTream.movies[{},{},...]
|
|
|
132
107
|
|
|
133
108
|
| Date | Version | Description |
|
|
134
109
|
| ----------- | -----| ----------- |
|
|
110
|
+
| 2025-02-17 | 0.7.3 | - Added Initial PyTest and Coverage<br>- Added timestamp field "added" to Series to match channels "added" field<br>- Added string field "url" to Series to quickly get the series download address<br>- Added new API "get_last_7days()" returns the last added streams in the last 7 days in JSON format<br>- Added new API "get_download_progress()" returns information on the current download stream in JSON format<br>- Changed internal function _load_series_info_by_id_from_provider to allow returned value to change to JSON<br>- Changed search_stream function to only search in specific collections<br>- Refactored "rest_api.py" to make it easier to extend in the future<br>- Added new rest API<br>- Changed to Poetry environment<br>- Changed Functional Test to test loading series information<br>- Changed sample index.html to test more features|
|
|
111
|
+
| 2024-09-02 | 0.7.2 | - Added missing request package to setup.py<br>- Refactored the search stream function and now, it can search for a specific stream type<br>- Refactored the download stream function<br>- Refactored the _get_request function and removed the call to the sleep function<br>- Added functional test to get series json output from a series_id<br>- Added functional test to get EPG for a specific stream ID<br>- Added xtream account expiration date printed on the console during authentication<br>- Improved results with the Flask HTML page and differentiating between movies and series<br>- Improved code readability|
|
|
135
112
|
| 2024-05-21 | 0.7.1 | - Fixed missing jsonschema package<br>- Fixed provider name in functional_test<br>- Improved print out of connection attempts<br>- Added method to read latest changes in functional_test
|
|
136
113
|
| 2023-11-08 | 0.7.0 | - Added Schema Validator<br>- Added Channel Age<br>- Added list of movies added in the last 30 and 7 days<br>- Updated code based on PyLint<br>- Fixed Flask package to be optional [richard-de-vos](https://github.com/richard-de-vos)|
|
|
137
114
|
| 2023-02-06 | 0.6.0 | - Added methods to change connection header, to turn off reload timer, and to enable/disable Flask debug mode<br>- Added a loop when attempting to connect to the provider <br>- Cleaned up some print lines|
|
|
@@ -144,4 +121,15 @@ xTream.movies[{},{},...]
|
|
|
144
121
|
| 2021-06-04 | 0.1.1 | - Updated README.md |
|
|
145
122
|
| 2021-06-04 | 0.1.0 | - Initial Release |
|
|
146
123
|
|
|
124
|
+
## Interesting content that could be used for future development
|
|
147
125
|
|
|
126
|
+
So far there is no ready to use Transport Stream library for playing live stream.
|
|
127
|
+
|
|
128
|
+
- This is the library to convert TS to MP4
|
|
129
|
+
- https://github.com/videojs/mux.js/
|
|
130
|
+
|
|
131
|
+
- More on above, but same problem. XMLHttpRequest waits until the whole TS file is completely loaded. It does not work for live video streams
|
|
132
|
+
- https://developpaper.com/play-ts-video-directly-on-the-web/
|
|
133
|
+
|
|
134
|
+
- This below will allow me to process chunks of data
|
|
135
|
+
- https://stackoverflow.com/questions/37402716/handle-xmlhttprequest-response-with-large-data
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pyxtream"
|
|
3
|
+
version = "0.7.3"
|
|
4
|
+
requires-python = ">=3.9"
|
|
5
|
+
description = "xtream IPTV loader"
|
|
6
|
+
authors = [{name = "Claudio Olmi", email = "<superolmo2@gmail.com>"}]
|
|
7
|
+
license = "GPL3"
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
homepage = "https://github.com/superolmo/pyxtream"
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 4 - Beta",
|
|
12
|
+
"Environment :: Console",
|
|
13
|
+
"Intended Audience :: Developers",
|
|
14
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
15
|
+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
"Natural Language :: English"
|
|
18
|
+
]
|
|
19
|
+
dependencies = [
|
|
20
|
+
"requests (>=2.32.3,<3.0.0)",
|
|
21
|
+
"jsonschema (>=4.23.0,<5.0.0)",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.optional-dependencies]
|
|
25
|
+
flask = ["flask>=3.1.0,<4.0.0"]
|
|
26
|
+
|
|
27
|
+
[tool.poetry.group.dev.dependencies]
|
|
28
|
+
pdoc = "^15.0.1"
|
|
29
|
+
pytest = "^8.3.4"
|
|
30
|
+
pytest-cov = "^6.0.0"
|
|
31
|
+
|
|
32
|
+
[build-system]
|
|
33
|
+
requires = ["poetry-core"]
|
|
34
|
+
build-backend = "poetry.core.masonry.api"
|