long-thanh-sdk 0.1.0__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.
- long_thanh_sdk-0.1.0/LICENSE.txt +3 -0
- long_thanh_sdk-0.1.0/PKG-INFO +147 -0
- long_thanh_sdk-0.1.0/README.md +126 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/__init__.py +64 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/api/__init__.py +5 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/api/default_api.py +836 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/api_client.py +842 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/api_response.py +21 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/configuration.py +645 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/exceptions.py +218 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/__init__.py +24 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/business.py +136 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/business_address.py +101 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/business_opening_hours.py +120 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/business_ordering.py +110 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/menu.py +128 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/menu_item.py +106 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/menu_section.py +99 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/models/problem.py +128 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/py.typed +0 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk/rest.py +334 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk.egg-info/PKG-INFO +147 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk.egg-info/SOURCES.txt +28 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk.egg-info/dependency_links.txt +1 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk.egg-info/requires.txt +4 -0
- long_thanh_sdk-0.1.0/long_thanh_sdk.egg-info/top_level.txt +1 -0
- long_thanh_sdk-0.1.0/pyproject.toml +95 -0
- long_thanh_sdk-0.1.0/setup.cfg +7 -0
- long_thanh_sdk-0.1.0/setup.py +46 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: long-thanh-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Long Thanh Imbiss Public Information API
|
|
5
|
+
Home-page: https://longthanh-imbiss.com
|
|
6
|
+
Author: SWL Services
|
|
7
|
+
License-Expression: LicenseRef-Proprietary
|
|
8
|
+
Project-URL: Homepage, https://longthanh-imbiss.com
|
|
9
|
+
Project-URL: Documentation, https://longthanh-imbiss.com/developers/
|
|
10
|
+
Project-URL: Repository, https://github.com/Moinsachsen1234/long-thanh-sdks
|
|
11
|
+
Keywords: OpenAPI,OpenAPI-Generator,Long Thanh Imbiss Public Information API
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE.txt
|
|
15
|
+
Requires-Dist: urllib3<3.0.0,>=2.7.0
|
|
16
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
17
|
+
Requires-Dist: pydantic>=2.11
|
|
18
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
|
|
22
|
+
# Long Thanh Imbiss python SDK
|
|
23
|
+
|
|
24
|
+
Publisher: SWL Services. Product homepage: https://longthanh-imbiss.com
|
|
25
|
+
|
|
26
|
+
Generated from https://longthanh-imbiss.com/openapi.json. This SDK is read-only; it cannot place orders, take payments or confirm live availability. Cache facts for five minutes and honor RateLimit / Retry-After.
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2026 SWL Services. All rights reserved. See LICENSE.txt.
|
|
29
|
+
|
|
30
|
+
# long-thanh-sdk
|
|
31
|
+
Anonymous read-only published menu and business information. /api/v1/ is the stable major-version namespace. Breaking changes require a new namespace. No orders, reservations or payments. Deprecated versions receive at least 90 days notice in /api/, a Deprecation header and a Sunset header before removal. No version is currently deprecated.
|
|
32
|
+
|
|
33
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
34
|
+
|
|
35
|
+
- API version: 1.1.1
|
|
36
|
+
- Package version: 0.1.0
|
|
37
|
+
- Generator version: 7.26.0
|
|
38
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
39
|
+
|
|
40
|
+
## Requirements.
|
|
41
|
+
|
|
42
|
+
Python 3.10+
|
|
43
|
+
|
|
44
|
+
Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
|
|
45
|
+
Install the package with `python -m pip install .`; install development dependencies
|
|
46
|
+
with Poetry 2.2 or newer using `poetry install`, or pip 25.1 or newer using
|
|
47
|
+
`python -m pip install --group dev`. The latter installs the group, not the package.
|
|
48
|
+
|
|
49
|
+
## Installation & Usage
|
|
50
|
+
### pip install
|
|
51
|
+
|
|
52
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
pip install git+https://github.com/Moinsachsen1234/long-thanh-sdks.git
|
|
56
|
+
```
|
|
57
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/Moinsachsen1234/long-thanh-sdks.git`)
|
|
58
|
+
|
|
59
|
+
Then import the package:
|
|
60
|
+
```python
|
|
61
|
+
import long_thanh_sdk
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Setuptools
|
|
65
|
+
|
|
66
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
python setup.py install --user
|
|
70
|
+
```
|
|
71
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
72
|
+
|
|
73
|
+
Then import the package:
|
|
74
|
+
```python
|
|
75
|
+
import long_thanh_sdk
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Tests
|
|
79
|
+
|
|
80
|
+
Execute `pytest` to run the tests.
|
|
81
|
+
|
|
82
|
+
## Getting Started
|
|
83
|
+
|
|
84
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
|
|
88
|
+
import long_thanh_sdk
|
|
89
|
+
from long_thanh_sdk.rest import ApiException
|
|
90
|
+
from pprint import pprint
|
|
91
|
+
|
|
92
|
+
# Defining the host is optional and defaults to https://longthanh-imbiss.com
|
|
93
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
94
|
+
configuration = long_thanh_sdk.Configuration(
|
|
95
|
+
host = "https://longthanh-imbiss.com"
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
# Enter a context with an instance of the API client
|
|
101
|
+
with long_thanh_sdk.ApiClient(configuration) as api_client:
|
|
102
|
+
# Create an instance of the API class
|
|
103
|
+
api_instance = long_thanh_sdk.DefaultApi(api_client)
|
|
104
|
+
|
|
105
|
+
try:
|
|
106
|
+
# Read the existing German plain-text menu
|
|
107
|
+
api_response = api_instance.get_menu()
|
|
108
|
+
print("The response of DefaultApi->get_menu:\n")
|
|
109
|
+
pprint(api_response)
|
|
110
|
+
except ApiException as e:
|
|
111
|
+
print("Exception when calling DefaultApi->get_menu: %s\n" % e)
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Documentation for API Endpoints
|
|
116
|
+
|
|
117
|
+
All URIs are relative to *https://longthanh-imbiss.com*
|
|
118
|
+
|
|
119
|
+
Class | Method | HTTP request | Description
|
|
120
|
+
------------ | ------------- | ------------- | -------------
|
|
121
|
+
*DefaultApi* | [**get_menu**](docs/DefaultApi.md#get_menu) | **GET** /speisekarte.txt | Read the existing German plain-text menu
|
|
122
|
+
*DefaultApi* | [**get_public_business_v1**](docs/DefaultApi.md#get_public_business_v1) | **GET** /api/v1/business | Read business contact, hours and ordering policy as JSON
|
|
123
|
+
*DefaultApi* | [**get_public_menu_v1**](docs/DefaultApi.md#get_public_menu_v1) | **GET** /api/v1/menu | Read the published menu and prices as JSON
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## Documentation For Models
|
|
127
|
+
|
|
128
|
+
- [Business](docs/Business.md)
|
|
129
|
+
- [BusinessAddress](docs/BusinessAddress.md)
|
|
130
|
+
- [BusinessOpeningHours](docs/BusinessOpeningHours.md)
|
|
131
|
+
- [BusinessOrdering](docs/BusinessOrdering.md)
|
|
132
|
+
- [Menu](docs/Menu.md)
|
|
133
|
+
- [MenuItem](docs/MenuItem.md)
|
|
134
|
+
- [MenuSection](docs/MenuSection.md)
|
|
135
|
+
- [Problem](docs/Problem.md)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
<a id="documentation-for-authorization"></a>
|
|
139
|
+
## Documentation For Authorization
|
|
140
|
+
|
|
141
|
+
Endpoints do not require authorization.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## Author
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Long Thanh Imbiss python SDK
|
|
2
|
+
|
|
3
|
+
Publisher: SWL Services. Product homepage: https://longthanh-imbiss.com
|
|
4
|
+
|
|
5
|
+
Generated from https://longthanh-imbiss.com/openapi.json. This SDK is read-only; it cannot place orders, take payments or confirm live availability. Cache facts for five minutes and honor RateLimit / Retry-After.
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2026 SWL Services. All rights reserved. See LICENSE.txt.
|
|
8
|
+
|
|
9
|
+
# long-thanh-sdk
|
|
10
|
+
Anonymous read-only published menu and business information. /api/v1/ is the stable major-version namespace. Breaking changes require a new namespace. No orders, reservations or payments. Deprecated versions receive at least 90 days notice in /api/, a Deprecation header and a Sunset header before removal. No version is currently deprecated.
|
|
11
|
+
|
|
12
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
13
|
+
|
|
14
|
+
- API version: 1.1.1
|
|
15
|
+
- Package version: 0.1.0
|
|
16
|
+
- Generator version: 7.26.0
|
|
17
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
18
|
+
|
|
19
|
+
## Requirements.
|
|
20
|
+
|
|
21
|
+
Python 3.10+
|
|
22
|
+
|
|
23
|
+
Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
|
|
24
|
+
Install the package with `python -m pip install .`; install development dependencies
|
|
25
|
+
with Poetry 2.2 or newer using `poetry install`, or pip 25.1 or newer using
|
|
26
|
+
`python -m pip install --group dev`. The latter installs the group, not the package.
|
|
27
|
+
|
|
28
|
+
## Installation & Usage
|
|
29
|
+
### pip install
|
|
30
|
+
|
|
31
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
pip install git+https://github.com/Moinsachsen1234/long-thanh-sdks.git
|
|
35
|
+
```
|
|
36
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/Moinsachsen1234/long-thanh-sdks.git`)
|
|
37
|
+
|
|
38
|
+
Then import the package:
|
|
39
|
+
```python
|
|
40
|
+
import long_thanh_sdk
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Setuptools
|
|
44
|
+
|
|
45
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
python setup.py install --user
|
|
49
|
+
```
|
|
50
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
51
|
+
|
|
52
|
+
Then import the package:
|
|
53
|
+
```python
|
|
54
|
+
import long_thanh_sdk
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Tests
|
|
58
|
+
|
|
59
|
+
Execute `pytest` to run the tests.
|
|
60
|
+
|
|
61
|
+
## Getting Started
|
|
62
|
+
|
|
63
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
|
|
67
|
+
import long_thanh_sdk
|
|
68
|
+
from long_thanh_sdk.rest import ApiException
|
|
69
|
+
from pprint import pprint
|
|
70
|
+
|
|
71
|
+
# Defining the host is optional and defaults to https://longthanh-imbiss.com
|
|
72
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
73
|
+
configuration = long_thanh_sdk.Configuration(
|
|
74
|
+
host = "https://longthanh-imbiss.com"
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# Enter a context with an instance of the API client
|
|
80
|
+
with long_thanh_sdk.ApiClient(configuration) as api_client:
|
|
81
|
+
# Create an instance of the API class
|
|
82
|
+
api_instance = long_thanh_sdk.DefaultApi(api_client)
|
|
83
|
+
|
|
84
|
+
try:
|
|
85
|
+
# Read the existing German plain-text menu
|
|
86
|
+
api_response = api_instance.get_menu()
|
|
87
|
+
print("The response of DefaultApi->get_menu:\n")
|
|
88
|
+
pprint(api_response)
|
|
89
|
+
except ApiException as e:
|
|
90
|
+
print("Exception when calling DefaultApi->get_menu: %s\n" % e)
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Documentation for API Endpoints
|
|
95
|
+
|
|
96
|
+
All URIs are relative to *https://longthanh-imbiss.com*
|
|
97
|
+
|
|
98
|
+
Class | Method | HTTP request | Description
|
|
99
|
+
------------ | ------------- | ------------- | -------------
|
|
100
|
+
*DefaultApi* | [**get_menu**](docs/DefaultApi.md#get_menu) | **GET** /speisekarte.txt | Read the existing German plain-text menu
|
|
101
|
+
*DefaultApi* | [**get_public_business_v1**](docs/DefaultApi.md#get_public_business_v1) | **GET** /api/v1/business | Read business contact, hours and ordering policy as JSON
|
|
102
|
+
*DefaultApi* | [**get_public_menu_v1**](docs/DefaultApi.md#get_public_menu_v1) | **GET** /api/v1/menu | Read the published menu and prices as JSON
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## Documentation For Models
|
|
106
|
+
|
|
107
|
+
- [Business](docs/Business.md)
|
|
108
|
+
- [BusinessAddress](docs/BusinessAddress.md)
|
|
109
|
+
- [BusinessOpeningHours](docs/BusinessOpeningHours.md)
|
|
110
|
+
- [BusinessOrdering](docs/BusinessOrdering.md)
|
|
111
|
+
- [Menu](docs/Menu.md)
|
|
112
|
+
- [MenuItem](docs/MenuItem.md)
|
|
113
|
+
- [MenuSection](docs/MenuSection.md)
|
|
114
|
+
- [Problem](docs/Problem.md)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
<a id="documentation-for-authorization"></a>
|
|
118
|
+
## Documentation For Authorization
|
|
119
|
+
|
|
120
|
+
Endpoints do not require authorization.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## Author
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Long Thanh Imbiss Public Information API
|
|
7
|
+
|
|
8
|
+
Anonymous read-only published menu and business information. /api/v1/ is the stable major-version namespace. Breaking changes require a new namespace. No orders, reservations or payments. Deprecated versions receive at least 90 days notice in /api/, a Deprecation header and a Sunset header before removal. No version is currently deprecated.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.1.1
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "0.1.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"DefaultApi",
|
|
22
|
+
"ApiResponse",
|
|
23
|
+
"ApiClient",
|
|
24
|
+
"Configuration",
|
|
25
|
+
"OpenApiException",
|
|
26
|
+
"ApiTypeError",
|
|
27
|
+
"ApiValueError",
|
|
28
|
+
"ApiKeyError",
|
|
29
|
+
"ApiAttributeError",
|
|
30
|
+
"ApiException",
|
|
31
|
+
"Business",
|
|
32
|
+
"BusinessAddress",
|
|
33
|
+
"BusinessOpeningHours",
|
|
34
|
+
"BusinessOrdering",
|
|
35
|
+
"Menu",
|
|
36
|
+
"MenuItem",
|
|
37
|
+
"MenuSection",
|
|
38
|
+
"Problem",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
# import apis into sdk package
|
|
42
|
+
from long_thanh_sdk.api.default_api import DefaultApi as DefaultApi
|
|
43
|
+
|
|
44
|
+
# import ApiClient
|
|
45
|
+
from long_thanh_sdk.api_response import ApiResponse as ApiResponse
|
|
46
|
+
from long_thanh_sdk.api_client import ApiClient as ApiClient
|
|
47
|
+
from long_thanh_sdk.configuration import Configuration as Configuration
|
|
48
|
+
from long_thanh_sdk.exceptions import OpenApiException as OpenApiException
|
|
49
|
+
from long_thanh_sdk.exceptions import ApiTypeError as ApiTypeError
|
|
50
|
+
from long_thanh_sdk.exceptions import ApiValueError as ApiValueError
|
|
51
|
+
from long_thanh_sdk.exceptions import ApiKeyError as ApiKeyError
|
|
52
|
+
from long_thanh_sdk.exceptions import ApiAttributeError as ApiAttributeError
|
|
53
|
+
from long_thanh_sdk.exceptions import ApiException as ApiException
|
|
54
|
+
|
|
55
|
+
# import models into sdk package
|
|
56
|
+
from long_thanh_sdk.models.business import Business as Business
|
|
57
|
+
from long_thanh_sdk.models.business_address import BusinessAddress as BusinessAddress
|
|
58
|
+
from long_thanh_sdk.models.business_opening_hours import BusinessOpeningHours as BusinessOpeningHours
|
|
59
|
+
from long_thanh_sdk.models.business_ordering import BusinessOrdering as BusinessOrdering
|
|
60
|
+
from long_thanh_sdk.models.menu import Menu as Menu
|
|
61
|
+
from long_thanh_sdk.models.menu_item import MenuItem as MenuItem
|
|
62
|
+
from long_thanh_sdk.models.menu_section import MenuSection as MenuSection
|
|
63
|
+
from long_thanh_sdk.models.problem import Problem as Problem
|
|
64
|
+
|