mss-python 0.1.6__tar.gz → 0.1.8__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.1.6 → mss_python-0.1.8}/.flake8 +1 -1
- {mss_python-0.1.6 → mss_python-0.1.8}/PKG-INFO +2 -1
- {mss_python-0.1.6 → mss_python-0.1.8}/pyproject.toml +4 -1
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python/_version.py +2 -2
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python/client.py +4 -4
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python.egg-info/PKG-INFO +2 -1
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python.egg-info/SOURCES.txt +1 -0
- mss_python-0.1.8/src/mss_python.egg-info/requires.txt +1 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/.github/workflows/python-publish.yml +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/.gitignore +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/.vscode/settings.json +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/LICENSE +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/README.md +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/examples/simple/main.py +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/requirements.txt +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/setup.cfg +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python/__init__.py +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python/request/method_names.py +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python/request/methods.py +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python/request/types_mss.py +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python.egg-info/dependency_links.txt +0 -0
- {mss_python-0.1.6 → mss_python-0.1.8}/src/mss_python.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mss-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Summary: MSS API wrapper for Python projects
|
|
5
5
|
Author: Rubin Canaj
|
|
6
6
|
Author-email: HGV <development@hgv.it>
|
|
@@ -30,6 +30,7 @@ Project-URL: Repository, https://github.com/bookingsuedtirol/mss-python
|
|
|
30
30
|
Requires-Python: <4,>=3.7
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
+
Requires-Dist: xmltodict==0.13.0
|
|
33
34
|
|
|
34
35
|
# mss-python 
|
|
35
36
|
|
|
@@ -12,11 +12,14 @@ authors = [
|
|
|
12
12
|
{ name = "HGV", email = "development@hgv.it" },
|
|
13
13
|
{ name = "Rubin Canaj" },
|
|
14
14
|
]
|
|
15
|
-
dynamic = ["version"]
|
|
15
|
+
dynamic = ["version", "dependencies"]
|
|
16
16
|
|
|
17
17
|
[project.urls]
|
|
18
18
|
Repository = "https://github.com/bookingsuedtirol/mss-python"
|
|
19
19
|
|
|
20
|
+
[tool.setuptools.dynamic]
|
|
21
|
+
dependencies = { file = ["requirements.txt"] }
|
|
22
|
+
|
|
20
23
|
[tool.setuptools.packages.find]
|
|
21
24
|
where = ["src"]
|
|
22
25
|
include = ["mss_python"]
|
|
@@ -58,7 +58,7 @@ class Client:
|
|
|
58
58
|
|
|
59
59
|
root = method.get_base_xml(self.cred, self.lang)
|
|
60
60
|
|
|
61
|
-
if data is None:
|
|
61
|
+
if data is not None:
|
|
62
62
|
root = change_structure(root, data)
|
|
63
63
|
|
|
64
64
|
if _print is True:
|
|
@@ -92,13 +92,13 @@ def refine_getHotelList(resp: dict) -> dict:
|
|
|
92
92
|
return resp
|
|
93
93
|
elif "hotel" not in resp["result"] or resp["result"]["hotel"] is None:
|
|
94
94
|
return resp
|
|
95
|
-
elif resp["result"]["hotel"] is list:
|
|
95
|
+
elif resp["result"]["hotel"] is not list:
|
|
96
96
|
resp["result"]["hotel"] = [resp["result"]["hotel"]]
|
|
97
97
|
|
|
98
98
|
for hotel in resp["result"]["hotel"]:
|
|
99
99
|
ensure_list_value(hotel, "pictures", "picture")
|
|
100
100
|
ensure_list_value(hotel, "gallery", "picture")
|
|
101
|
-
ensure_list_value(hotel, "
|
|
101
|
+
ensure_list_value(hotel, "features_view", "feature")
|
|
102
102
|
ensure_list_value(hotel, "pos", "id_pos")
|
|
103
103
|
|
|
104
104
|
return resp
|
|
@@ -107,5 +107,5 @@ def refine_getHotelList(resp: dict) -> dict:
|
|
|
107
107
|
def ensure_list_value(hotel: dict, parent_fld: str, child_fld: str) -> None:
|
|
108
108
|
if parent_fld not in hotel:
|
|
109
109
|
hotel[parent_fld] = {child_fld: []}
|
|
110
|
-
elif hotel[parent_fld][child_fld] is list:
|
|
110
|
+
elif hotel[parent_fld][child_fld] is not list:
|
|
111
111
|
hotel[parent_fld][child_fld] = [hotel[parent_fld][child_fld]]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mss-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Summary: MSS API wrapper for Python projects
|
|
5
5
|
Author: Rubin Canaj
|
|
6
6
|
Author-email: HGV <development@hgv.it>
|
|
@@ -30,6 +30,7 @@ Project-URL: Repository, https://github.com/bookingsuedtirol/mss-python
|
|
|
30
30
|
Requires-Python: <4,>=3.7
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
+
Requires-Dist: xmltodict==0.13.0
|
|
33
34
|
|
|
34
35
|
# mss-python 
|
|
35
36
|
|
|
@@ -13,6 +13,7 @@ src/mss_python/client.py
|
|
|
13
13
|
src/mss_python.egg-info/PKG-INFO
|
|
14
14
|
src/mss_python.egg-info/SOURCES.txt
|
|
15
15
|
src/mss_python.egg-info/dependency_links.txt
|
|
16
|
+
src/mss_python.egg-info/requires.txt
|
|
16
17
|
src/mss_python.egg-info/top_level.txt
|
|
17
18
|
src/mss_python/request/method_names.py
|
|
18
19
|
src/mss_python/request/methods.py
|
|
@@ -0,0 +1 @@
|
|
|
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
|
|
File without changes
|