mss-python 0.2.0__tar.gz → 0.2.2__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.
- mss_python-0.2.2/.python-version +1 -0
- mss_python-0.2.2/.vscode/settings.json +5 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/PKG-INFO +5 -4
- {mss_python-0.2.0 → mss_python-0.2.2}/pyproject.toml +1 -1
- mss_python-0.2.2/requirements.in +1 -0
- mss_python-0.2.2/requirements.txt +5 -0
- mss_python-0.2.2/src/mss_python/_version.py +34 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python/client.py +14 -1
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python.egg-info/PKG-INFO +5 -4
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python.egg-info/SOURCES.txt +2 -0
- mss_python-0.2.2/src/mss_python.egg-info/requires.txt +1 -0
- mss_python-0.2.0/.vscode/settings.json +0 -4
- mss_python-0.2.0/requirements.txt +0 -1
- mss_python-0.2.0/src/mss_python/_version.py +0 -16
- mss_python-0.2.0/src/mss_python.egg-info/requires.txt +0 -1
- {mss_python-0.2.0 → mss_python-0.2.2}/.flake8 +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/.github/workflows/python-publish.yml +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/.gitignore +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/LICENSE +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/README.md +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/examples/simple/main.py +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/setup.cfg +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python/__init__.py +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python/request/method_names.py +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python/request/methods.py +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python/request/types_mss.py +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python.egg-info/dependency_links.txt +0 -0
- {mss_python-0.2.0 → mss_python-0.2.2}/src/mss_python.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mss-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: MSS API wrapper for Python projects
|
|
5
5
|
Author: Rubin Canaj
|
|
6
6
|
Author-email: HGV <development@hgv.it>
|
|
@@ -27,10 +27,11 @@ License: MIT License
|
|
|
27
27
|
SOFTWARE.
|
|
28
28
|
|
|
29
29
|
Project-URL: Repository, https://github.com/bookingsuedtirol/mss-python
|
|
30
|
-
Requires-Python: <4,>=3.
|
|
30
|
+
Requires-Python: <4,>=3.12
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
-
Requires-Dist: xmltodict==0.
|
|
33
|
+
Requires-Dist: xmltodict==1.0.2
|
|
34
|
+
Dynamic: license-file
|
|
34
35
|
|
|
35
36
|
# mss-python 
|
|
36
37
|
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
name = "mss-python"
|
|
7
7
|
description = "MSS API wrapper for Python projects"
|
|
8
8
|
readme = "README.md"
|
|
9
|
-
requires-python = ">=3.
|
|
9
|
+
requires-python = ">=3.12, <4"
|
|
10
10
|
license = { file = "LICENSE" }
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "HGV", email = "development@hgv.it" },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
xmltodict==1.*
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
TYPE_CHECKING = False
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from typing import Tuple
|
|
16
|
+
from typing import Union
|
|
17
|
+
|
|
18
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
20
|
+
else:
|
|
21
|
+
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
23
|
+
|
|
24
|
+
version: str
|
|
25
|
+
__version__: str
|
|
26
|
+
__version_tuple__: VERSION_TUPLE
|
|
27
|
+
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
30
|
+
|
|
31
|
+
__version__ = version = '0.2.2'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 2, 2)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = 'g42576850a'
|
|
@@ -32,6 +32,17 @@ def change_structure(root: Root, child: BaseType):
|
|
|
32
32
|
return root
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
# Replace all picture urls with the new, cdn ones
|
|
36
|
+
def replace_picture_urls(path, key, value):
|
|
37
|
+
if key == "url" and path[-2][0] == "picture":
|
|
38
|
+
return key, value.replace(
|
|
39
|
+
"https://easychannel.it/mss/mss_renderimg.php?",
|
|
40
|
+
"https://cdn.easychannel.it/mss/mss_renderimg.php?",
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return key, value
|
|
44
|
+
|
|
45
|
+
|
|
35
46
|
class Client:
|
|
36
47
|
def __init__(
|
|
37
48
|
self, cred: Credentials, lang: list, elements: list | None = None
|
|
@@ -70,7 +81,9 @@ class Client:
|
|
|
70
81
|
headers={"Content-Type": "application/xml"},
|
|
71
82
|
)
|
|
72
83
|
|
|
73
|
-
responseRoot = xmltodict.parse(
|
|
84
|
+
responseRoot = xmltodict.parse(
|
|
85
|
+
response.content, postprocessor=replace_picture_urls
|
|
86
|
+
)
|
|
74
87
|
error = responseRoot["root"]["header"]["error"]
|
|
75
88
|
if int(error["code"]) > 0:
|
|
76
89
|
raise Exception(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mss-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: MSS API wrapper for Python projects
|
|
5
5
|
Author: Rubin Canaj
|
|
6
6
|
Author-email: HGV <development@hgv.it>
|
|
@@ -27,10 +27,11 @@ License: MIT License
|
|
|
27
27
|
SOFTWARE.
|
|
28
28
|
|
|
29
29
|
Project-URL: Repository, https://github.com/bookingsuedtirol/mss-python
|
|
30
|
-
Requires-Python: <4,>=3.
|
|
30
|
+
Requires-Python: <4,>=3.12
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
-
Requires-Dist: xmltodict==0.
|
|
33
|
+
Requires-Dist: xmltodict==1.0.2
|
|
34
|
+
Dynamic: license-file
|
|
34
35
|
|
|
35
36
|
# mss-python 
|
|
36
37
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
xmltodict==1.0.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
xmltodict==0.13.0
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# file generated by setuptools_scm
|
|
2
|
-
# don't change, don't track in version control
|
|
3
|
-
TYPE_CHECKING = False
|
|
4
|
-
if TYPE_CHECKING:
|
|
5
|
-
from typing import Tuple, Union
|
|
6
|
-
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
-
else:
|
|
8
|
-
VERSION_TUPLE = object
|
|
9
|
-
|
|
10
|
-
version: str
|
|
11
|
-
__version__: str
|
|
12
|
-
__version_tuple__: VERSION_TUPLE
|
|
13
|
-
version_tuple: VERSION_TUPLE
|
|
14
|
-
|
|
15
|
-
__version__ = version = '0.2.0'
|
|
16
|
-
__version_tuple__ = version_tuple = (0, 2, 0)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
xmltodict==0.13.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|