mss-python 0.1.3__tar.gz → 0.1.6__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,3 @@
1
+ [flake8]
2
+ exclude = simple # Exclude for the moment
3
+ ignore = E501,E265,E266,E402
@@ -0,0 +1,46 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ deploy:
20
+ runs-on: ubuntu-latest
21
+
22
+ permissions:
23
+ id-token: write
24
+
25
+ environment:
26
+ name: pypi
27
+ url: https://pypi.org/p/mss-python
28
+
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+ - name: Set up Python
32
+ uses: actions/setup-python@v3
33
+ with:
34
+ python-version: "3.x"
35
+ - name: Install dependencies
36
+ run: |
37
+ python -m pip install --upgrade pip
38
+ pip install build
39
+ - name: Install dependencies
40
+ run: |
41
+ python -m pip install --upgrade pip
42
+ pip install -r requirements.txt
43
+ - name: Build package
44
+ run: python -m build
45
+ - name: Publish package
46
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,8 @@
1
+ XML-samples
2
+ .env
3
+ __pycache__
4
+ src/mss_python.egg-info/
5
+ setup.cfg
6
+ .DS_Store
7
+ dist/
8
+ _version.py
@@ -0,0 +1,4 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "python.analysis.typeCheckingMode": "off"
4
+ }
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.1
2
+ Name: mss-python
3
+ Version: 0.1.6
4
+ Summary: MSS API wrapper for Python projects
5
+ Author: Rubin Canaj
6
+ Author-email: HGV <development@hgv.it>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2024 Booking Südtirol
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Repository, https://github.com/bookingsuedtirol/mss-python
30
+ Requires-Python: <4,>=3.7
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+
34
+ # mss-python ![PyPI](https://img.shields.io/pypi/v/mss-python)
35
+
36
+ MSS API client for Python projects
37
+
38
+ <!-- ## Dependencies
39
+
40
+ This library requires an IANA Time Zone database to be present on the operating system (because it uses https://pkg.go.dev/time#LoadLocation). This database comes pre-installed with many Linux distros. If it’s unavailable (such as on Windows), https://pkg.go.dev/time/tzdata can be imported in the main program (which uses mss-go) instead. -->
41
+
42
+ ## Available methods
43
+
44
+ - [x] getHotelList
45
+ - [x] getHotelListByFilter
46
+ - [x] getSpecialList
47
+ - [x] getRoomList
48
+ - [x] getWidgetConfig
49
+ - [x] getBooking
50
+ - [x] cancelBooking
51
+ - [x] prepareBooking
52
+ - [x] getAvailability
53
+ - [x] getRoomAvailability
54
+ - [x] getDayAvailability
55
+ - [x] getPriceList
56
+ - [x] createInquiry
57
+ - [x] getLocationList
58
+ - [x] getThemeList
59
+ - [x] getMasterpackagesList
60
+ - [x] notifyMasterpackages
61
+ - [x] getLastMinuteQuotation
62
+ - [x] validateCoupon
63
+ - [x] getHotelPictures
64
+ - [x] getHotelPictureGroups
65
+ - [x] getOptionalServices
66
+
67
+ ## Example Execution
68
+
69
+ `pip3 install -r requirements.txt`
70
+
71
+ `python3 -m examples.simple.main`
72
+
73
+ <!-- -
74
+
75
+ TODO
76
+
77
+ - [x] getInquiry - how to find booking IDs?
78
+
79
+
80
+ - [x] getUserSources
81
+
82
+ -->
83
+
84
+ <!-- Warning: Only the methods with a ✓ next to them have been tested so far.
85
+
86
+ ## Before running examples/tests
87
+
88
+ Set the environment variables with:
89
+
90
+ ```Bash
91
+ export $(make env)
92
+ ```
93
+
94
+ ## Examples
95
+
96
+ Run `make simple` or `make advanced`
97
+
98
+ ## Tests
99
+
100
+ Run `make test` -->
@@ -1,4 +1,4 @@
1
- # mss-python
1
+ # mss-python ![PyPI](https://img.shields.io/pypi/v/mss-python)
2
2
 
3
3
  MSS API client for Python projects
4
4
 
@@ -8,20 +8,20 @@ This library requires an IANA Time Zone database to be present on the operating
8
8
 
9
9
  ## Available methods
10
10
 
11
- - [x] getHotelList
11
+ - [x] getHotelList
12
12
  - [x] getHotelListByFilter
13
- - [x] getSpecialList
13
+ - [x] getSpecialList
14
14
  - [x] getRoomList
15
- - [x] getWidgetConfig
15
+ - [x] getWidgetConfig
16
16
  - [x] getBooking
17
- - [x] cancelBooking
18
- - [x] prepareBooking
19
- - [x] getAvailability
17
+ - [x] cancelBooking
18
+ - [x] prepareBooking
19
+ - [x] getAvailability
20
20
  - [x] getRoomAvailability
21
21
  - [x] getDayAvailability
22
- - [x] getPriceList
22
+ - [x] getPriceList
23
23
  - [x] createInquiry
24
- - [x] getLocationList
24
+ - [x] getLocationList
25
25
  - [x] getThemeList
26
26
  - [x] getMasterpackagesList
27
27
  - [x] notifyMasterpackages
@@ -31,25 +31,20 @@ This library requires an IANA Time Zone database to be present on the operating
31
31
  - [x] getHotelPictureGroups
32
32
  - [x] getOptionalServices
33
33
 
34
-
35
34
  ## Example Execution
36
35
 
37
- `cd ./examples/simple`
38
-
39
- `python3 main.py`
40
-
41
- or
36
+ `pip3 install -r requirements.txt`
42
37
 
43
- `python3 -m main`
38
+ `python3 -m examples.simple.main`
44
39
 
45
- <!-- -
40
+ <!-- -
46
41
 
47
42
  TODO
48
43
 
49
44
  - [x] getInquiry - how to find booking IDs?
50
45
 
51
46
 
52
- - [x] getUserSources
47
+ - [x] getUserSources
53
48
 
54
49
  -->
55
50
 
@@ -0,0 +1,42 @@
1
+ from src.mss_python.client import Client
2
+ from src.mss_python.request.types_mss import (
3
+ Credentials,
4
+ Request,
5
+ Search,
6
+ Options,
7
+ HotelDetails,
8
+ )
9
+ from src.mss_python.request.methods import MethodName
10
+
11
+
12
+ if __name__ == "__main__":
13
+ credentials = Credentials(
14
+ "MSS_SERVICE_USERNAME",
15
+ "MSS_SERVICE_PASSWORD",
16
+ "MSS_SERVICE_SOURCE",
17
+ )
18
+ lang = "de"
19
+ client = Client(credentials, lang)
20
+
21
+ req = Request(
22
+ Search("de", id=["YOUR_HOTEL_ID_1", "YOUR_HOTEL_ID_2", "YOUR_HOTEL_ID_3"]),
23
+ Options(HotelDetails.BasicInfo | HotelDetails.Coordinates),
24
+ )
25
+
26
+ try:
27
+
28
+ resp = client.request(
29
+ "MSS_SERVICE_URL",
30
+ MethodName.GetHotelList,
31
+ req,
32
+ )
33
+
34
+ hotel = resp["result"]["hotel"][0]
35
+
36
+ print(type(hotel["name"]), hotel["name"])
37
+ print(type(hotel["stars"]), hotel["stars"])
38
+
39
+ print(type(hotel["geolocation"]["latitude"]), hotel["geolocation"]["latitude"])
40
+
41
+ except Exception as e:
42
+ print(e)
@@ -0,0 +1,26 @@
1
+ [build-system]
2
+ requires = ["setuptools>=64", "setuptools_scm>=8"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "mss-python"
7
+ description = "MSS API wrapper for Python projects"
8
+ readme = "README.md"
9
+ requires-python = ">=3.7, <4"
10
+ license = { file = "LICENSE" }
11
+ authors = [
12
+ { name = "HGV", email = "development@hgv.it" },
13
+ { name = "Rubin Canaj" },
14
+ ]
15
+ dynamic = ["version"]
16
+
17
+ [project.urls]
18
+ Repository = "https://github.com/bookingsuedtirol/mss-python"
19
+
20
+ [tool.setuptools.packages.find]
21
+ where = ["src"]
22
+ include = ["mss_python"]
23
+ namespaces = false
24
+
25
+ [tool.setuptools_scm]
26
+ version_file = "src/mss_python/_version.py"
@@ -0,0 +1 @@
1
+ xmltodict==0.13.0
@@ -0,0 +1,16 @@
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.1.6'
16
+ __version_tuple__ = version_tuple = (0, 1, 6)
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.1
2
+ Name: mss-python
3
+ Version: 0.1.6
4
+ Summary: MSS API wrapper for Python projects
5
+ Author: Rubin Canaj
6
+ Author-email: HGV <development@hgv.it>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2024 Booking Südtirol
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Repository, https://github.com/bookingsuedtirol/mss-python
30
+ Requires-Python: <4,>=3.7
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+
34
+ # mss-python ![PyPI](https://img.shields.io/pypi/v/mss-python)
35
+
36
+ MSS API client for Python projects
37
+
38
+ <!-- ## Dependencies
39
+
40
+ This library requires an IANA Time Zone database to be present on the operating system (because it uses https://pkg.go.dev/time#LoadLocation). This database comes pre-installed with many Linux distros. If it’s unavailable (such as on Windows), https://pkg.go.dev/time/tzdata can be imported in the main program (which uses mss-go) instead. -->
41
+
42
+ ## Available methods
43
+
44
+ - [x] getHotelList
45
+ - [x] getHotelListByFilter
46
+ - [x] getSpecialList
47
+ - [x] getRoomList
48
+ - [x] getWidgetConfig
49
+ - [x] getBooking
50
+ - [x] cancelBooking
51
+ - [x] prepareBooking
52
+ - [x] getAvailability
53
+ - [x] getRoomAvailability
54
+ - [x] getDayAvailability
55
+ - [x] getPriceList
56
+ - [x] createInquiry
57
+ - [x] getLocationList
58
+ - [x] getThemeList
59
+ - [x] getMasterpackagesList
60
+ - [x] notifyMasterpackages
61
+ - [x] getLastMinuteQuotation
62
+ - [x] validateCoupon
63
+ - [x] getHotelPictures
64
+ - [x] getHotelPictureGroups
65
+ - [x] getOptionalServices
66
+
67
+ ## Example Execution
68
+
69
+ `pip3 install -r requirements.txt`
70
+
71
+ `python3 -m examples.simple.main`
72
+
73
+ <!-- -
74
+
75
+ TODO
76
+
77
+ - [x] getInquiry - how to find booking IDs?
78
+
79
+
80
+ - [x] getUserSources
81
+
82
+ -->
83
+
84
+ <!-- Warning: Only the methods with a ✓ next to them have been tested so far.
85
+
86
+ ## Before running examples/tests
87
+
88
+ Set the environment variables with:
89
+
90
+ ```Bash
91
+ export $(make env)
92
+ ```
93
+
94
+ ## Examples
95
+
96
+ Run `make simple` or `make advanced`
97
+
98
+ ## Tests
99
+
100
+ Run `make test` -->
@@ -1,13 +1,19 @@
1
+ .flake8
2
+ .gitignore
1
3
  LICENSE
2
4
  README.md
3
- setup.py
5
+ pyproject.toml
6
+ requirements.txt
7
+ .github/workflows/python-publish.yml
8
+ .vscode/settings.json
9
+ examples/simple/main.py
4
10
  src/mss_python/__init__.py
11
+ src/mss_python/_version.py
5
12
  src/mss_python/client.py
6
13
  src/mss_python.egg-info/PKG-INFO
7
14
  src/mss_python.egg-info/SOURCES.txt
8
15
  src/mss_python.egg-info/dependency_links.txt
9
16
  src/mss_python.egg-info/top_level.txt
10
- src/mss_python/request/__init__.py
11
17
  src/mss_python/request/method_names.py
12
18
  src/mss_python/request/methods.py
13
19
  src/mss_python/request/types_mss.py
mss_python-0.1.3/PKG-INFO DELETED
@@ -1,81 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mss-python
3
- Version: 0.1.3
4
- Summary: MSS API wrapper for Python projects
5
- Home-page: https://github.com/bookingsuedtirol/mss-python
6
- Requires-Python: >=3.7, <4
7
- Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
-
10
- # mss-python
11
-
12
- MSS API client for Python projects
13
-
14
- <!-- ## Dependencies
15
-
16
- This library requires an IANA Time Zone database to be present on the operating system (because it uses https://pkg.go.dev/time#LoadLocation). This database comes pre-installed with many Linux distros. If it’s unavailable (such as on Windows), https://pkg.go.dev/time/tzdata can be imported in the main program (which uses mss-go) instead. -->
17
-
18
- ## Available methods
19
-
20
- - [x] getHotelList
21
- - [x] getHotelListByFilter
22
- - [x] getSpecialList
23
- - [x] getRoomList
24
- - [x] getWidgetConfig
25
- - [x] getBooking
26
- - [x] cancelBooking
27
- - [x] prepareBooking
28
- - [x] getAvailability
29
- - [x] getRoomAvailability
30
- - [x] getDayAvailability
31
- - [x] getPriceList
32
- - [x] createInquiry
33
- - [x] getLocationList
34
- - [x] getThemeList
35
- - [x] getMasterpackagesList
36
- - [x] notifyMasterpackages
37
- - [x] getLastMinuteQuotation
38
- - [x] validateCoupon
39
- - [x] getHotelPictures
40
- - [x] getHotelPictureGroups
41
- - [x] getOptionalServices
42
-
43
-
44
- ## Example Execution
45
-
46
- `cd ./examples/simple`
47
-
48
- `python3 main.py`
49
-
50
- or
51
-
52
- `python3 -m main`
53
-
54
- <!-- -
55
-
56
- TODO
57
-
58
- - [x] getInquiry - how to find booking IDs?
59
-
60
-
61
- - [x] getUserSources
62
-
63
- -->
64
-
65
- <!-- Warning: Only the methods with a ✓ next to them have been tested so far.
66
-
67
- ## Before running examples/tests
68
-
69
- Set the environment variables with:
70
-
71
- ```Bash
72
- export $(make env)
73
- ```
74
-
75
- ## Examples
76
-
77
- Run `make simple` or `make advanced`
78
-
79
- ## Tests
80
-
81
- Run `make test` -->
mss_python-0.1.3/setup.py DELETED
@@ -1,170 +0,0 @@
1
- """A setuptools based setup module.
2
-
3
- See:
4
- https://packaging.python.org/guides/distributing-packages-using-setuptools/
5
- https://github.com/pypa/sampleproject
6
- """
7
-
8
- # Always prefer setuptools over distutils
9
- from setuptools import setup, find_packages
10
- import pathlib
11
-
12
- here = pathlib.Path(__file__).parent.resolve()
13
-
14
- # Get the long description from the README file
15
- long_description = (here / "README.md").read_text(encoding="utf-8")
16
-
17
- # Arguments marked as "Required" below must be included for upload to PyPI.
18
- # Fields marked as "Optional" may be commented out.
19
-
20
- setup(
21
- # This is the name of your project. The first time you publish this
22
- # package, this name will be registered for you. It will determine how
23
- # users can install this project, e.g.:
24
- #
25
- # $ pip install sampleproject
26
- #
27
- # And where it will live on PyPI: https://pypi.org/project/sampleproject/
28
- #
29
- # There are some restrictions on what makes a valid project name
30
- # specification here:
31
- # https://packaging.python.org/specifications/core-metadata/#name
32
- name="mss-python", # Required
33
- # Versions should comply with PEP 440:
34
- # https://www.python.org/dev/peps/pep-0440/
35
- #
36
- # For a discussion on single-sourcing the version across setup.py and the
37
- # project code, see
38
- # https://packaging.python.org/guides/single-sourcing-package-version/
39
- version="0.1.3", # Required
40
- # This is a one-line description or tagline of what your project does. This
41
- # corresponds to the "Summary" metadata field:
42
- # https://packaging.python.org/specifications/core-metadata/#summary
43
- description="MSS API wrapper for Python projects", # Optional
44
- # This is an optional longer description of your project that represents
45
- # the body of text which users will see when they visit PyPI.
46
- #
47
- # Often, this is the same as your README, so you can just read it in from
48
- # that file directly (as we have already done above)
49
- #
50
- # This field corresponds to the "Description" metadata field:
51
- # https://packaging.python.org/specifications/core-metadata/#description-optional
52
- long_description=long_description, # Optional
53
- # Denotes that our long_description is in Markdown; valid values are
54
- # text/plain, text/x-rst, and text/markdown
55
- #
56
- # Optional if long_description is written in reStructuredText (rst) but
57
- # required for plain-text or Markdown; if unspecified, "applications should
58
- # attempt to render [the long_description] as text/x-rst; charset=UTF-8 and
59
- # fall back to text/plain if it is not valid rst" (see link below)
60
- #
61
- # This field corresponds to the "Description-Content-Type" metadata field:
62
- # https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
63
- long_description_content_type="text/markdown", # Optional (see note above)
64
- # This should be a valid link to your project's main homepage.
65
- #
66
- # This field corresponds to the "Home-Page" metadata field:
67
- # https://packaging.python.org/specifications/core-metadata/#home-page-optional
68
- url="https://github.com/bookingsuedtirol/mss-python", # Optional
69
- # This should be your name or the name of the organization which owns the
70
- # project.
71
- # author="Rubin", # Optional
72
- # This should be a valid email address corresponding to the author listed
73
- # above.
74
- # author_email="author@example.com", # Optional
75
- # Classifiers help users find your project by categorizing it.
76
- #
77
- # For a list of valid classifiers, see https://pypi.org/classifiers/
78
- # classifiers=[ # Optional
79
- # # How mature is this project? Common values are
80
- # # 3 - Alpha
81
- # # 4 - Beta
82
- # # 5 - Production/Stable
83
- # "Development Status :: 3 - Alpha",
84
- # # Indicate who your project is intended for
85
- # "Intended Audience :: Developers",
86
- # "Topic :: Software Development :: Build Tools",
87
- # # Pick your license as you wish
88
- # "License :: OSI Approved :: MIT License",
89
- # # Specify the Python versions you support here. In particular, ensure
90
- # # that you indicate you support Python 3. These classifiers are *not*
91
- # # checked by 'pip install'. See instead 'python_requires' below.
92
- # "Programming Language :: Python :: 3",
93
- # "Programming Language :: Python :: 3.7",
94
- # "Programming Language :: Python :: 3.8",
95
- # "Programming Language :: Python :: 3.9",
96
- # "Programming Language :: Python :: 3.10",
97
- # "Programming Language :: Python :: 3 :: Only",
98
- # ],
99
- # This field adds keywords for your project which will appear on the
100
- # project page. What does your project relate to?
101
- #
102
- # Note that this is a list of additional keywords, separated
103
- # by commas, to be used to assist searching for the distribution in a
104
- # larger catalog.
105
- # keywords="sample, setuptools, development", # Optional
106
- # When your source code is in a subdirectory under the project root, e.g.
107
- # `src/`, it is necessary to specify the `package_dir` argument.
108
- package_dir={"": "src"}, # Optional
109
- # You can just specify package directories manually here if your project is
110
- # simple. Or you can use find_packages().
111
- #
112
- # Alternatively, if you just want to distribute a single Python file, use
113
- # the `py_modules` argument instead as follows, which will expect a file
114
- # called `my_module.py` to exist:
115
- #
116
- # py_modules=["my_module"],
117
- #
118
- packages=find_packages(where="src"), # Required
119
- # Specify which Python versions you support. In contrast to the
120
- # 'Programming Language' classifiers above, 'pip install' will check this
121
- # and refuse to install the project if the version does not match. See
122
- # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
123
- python_requires=">=3.7, <4",
124
- # This field lists other packages that your project depends on to run.
125
- # Any package you put here will be installed by pip when your project is
126
- # installed, so they must be valid existing projects.
127
- #
128
- # For an analysis of "install_requires" vs pip's requirements files see:
129
- # https://packaging.python.org/discussions/install-requires-vs-requirements/
130
- # install_requires=["peppercorn"], # Optional
131
- # List additional groups of dependencies here (e.g. development
132
- # dependencies). Users will be able to install these using the "extras"
133
- # syntax, for example:
134
- #
135
- # $ pip install sampleproject[dev]
136
- #
137
- # Similar to `install_requires` above, these must be valid existing
138
- # projects.
139
- # extras_require={ # Optional
140
- # "dev": ["check-manifest"],
141
- # "test": ["coverage"],
142
- # },
143
- # If there are data files included in your packages that need to be
144
- # installed, specify them here.
145
- # package_data={ # Optional
146
- # "sample": ["package_data.dat"],
147
- # },
148
- # Entry points. The following would provide a command called `sample` which
149
- # executes the function `main` from this package when invoked:
150
- # entry_points={ # Optional
151
- # "console_scripts": [
152
- # "sample=sample:main",
153
- # ],
154
- # },
155
- # List additional URLs that are relevant to your project as a dict.
156
- #
157
- # This field corresponds to the "Project-URL" metadata fields:
158
- # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
159
- #
160
- # Examples listed include a pattern for specifying where the package tracks
161
- # issues, where the source is hosted, where to say thanks to the package
162
- # maintainers, and where to support the project financially. The key is
163
- # what's used to render the link text on PyPI.
164
- # project_urls={ # Optional
165
- # "Bug Reports": "https://github.com/pypa/sampleproject/issues",
166
- # "Funding": "https://donate.pypi.org",
167
- # "Say Thanks!": "http://saythanks.io/to/example",
168
- # "Source": "https://github.com/pypa/sampleproject/",
169
- # },
170
- )
File without changes
@@ -1,81 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mss-python
3
- Version: 0.1.3
4
- Summary: MSS API wrapper for Python projects
5
- Home-page: https://github.com/bookingsuedtirol/mss-python
6
- Requires-Python: >=3.7, <4
7
- Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
-
10
- # mss-python
11
-
12
- MSS API client for Python projects
13
-
14
- <!-- ## Dependencies
15
-
16
- This library requires an IANA Time Zone database to be present on the operating system (because it uses https://pkg.go.dev/time#LoadLocation). This database comes pre-installed with many Linux distros. If it’s unavailable (such as on Windows), https://pkg.go.dev/time/tzdata can be imported in the main program (which uses mss-go) instead. -->
17
-
18
- ## Available methods
19
-
20
- - [x] getHotelList
21
- - [x] getHotelListByFilter
22
- - [x] getSpecialList
23
- - [x] getRoomList
24
- - [x] getWidgetConfig
25
- - [x] getBooking
26
- - [x] cancelBooking
27
- - [x] prepareBooking
28
- - [x] getAvailability
29
- - [x] getRoomAvailability
30
- - [x] getDayAvailability
31
- - [x] getPriceList
32
- - [x] createInquiry
33
- - [x] getLocationList
34
- - [x] getThemeList
35
- - [x] getMasterpackagesList
36
- - [x] notifyMasterpackages
37
- - [x] getLastMinuteQuotation
38
- - [x] validateCoupon
39
- - [x] getHotelPictures
40
- - [x] getHotelPictureGroups
41
- - [x] getOptionalServices
42
-
43
-
44
- ## Example Execution
45
-
46
- `cd ./examples/simple`
47
-
48
- `python3 main.py`
49
-
50
- or
51
-
52
- `python3 -m main`
53
-
54
- <!-- -
55
-
56
- TODO
57
-
58
- - [x] getInquiry - how to find booking IDs?
59
-
60
-
61
- - [x] getUserSources
62
-
63
- -->
64
-
65
- <!-- Warning: Only the methods with a ✓ next to them have been tested so far.
66
-
67
- ## Before running examples/tests
68
-
69
- Set the environment variables with:
70
-
71
- ```Bash
72
- export $(make env)
73
- ```
74
-
75
- ## Examples
76
-
77
- Run `make simple` or `make advanced`
78
-
79
- ## Tests
80
-
81
- Run `make test` -->
File without changes
File without changes