mms-client 1.9.3__tar.gz → 1.11.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.
- {mms_client-1.9.3 → mms_client-1.11.0}/PKG-INFO +10 -3
- {mms_client-1.9.3 → mms_client-1.11.0}/README.md +7 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/pyproject.toml +4 -4
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/schemas/wsdl/mi-web-service-jbms.wsdl +276 -276
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/schemas/wsdl/omi-web-service.wsdl +262 -262
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/schemas/xsd/mi-market.xsd +2405 -2395
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/schemas/xsd/mi-outbnd-reports.xsd +1554 -1488
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/schemas/xsd/mi-report.xsd +379 -379
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/schemas/xsd/mpr.xsd +1858 -1816
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/schemas/xsd/omi.xsd +913 -793
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/services/base.py +48 -21
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/services/market.py +123 -1
- mms_client-1.11.0/src/mms_client/services/omi.py +117 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/award.py +6 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/base.py +10 -6
- mms_client-1.11.0/src/mms_client/types/bup.py +207 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/fields.py +1 -1
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/market.py +15 -2
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/offer.py +6 -0
- mms_client-1.11.0/src/mms_client/types/omi.py +26 -0
- mms_client-1.11.0/src/mms_client/types/settlement.py +81 -0
- mms_client-1.11.0/src/mms_client/types/surplus_capcity.py +187 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/utils/errors.py +51 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/utils/serialization.py +34 -18
- mms_client-1.9.3/src/mms_client/services/omi.py +0 -18
- {mms_client-1.9.3 → mms_client-1.11.0}/LICENSE +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/__init__.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/client.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/py.typed +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/security/__init__.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/security/certs.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/security/crypto.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/services/__init__.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/services/registration.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/services/report.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/__init__.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/enums.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/registration.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/report.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/reserve.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/resource.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/types/transport.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/utils/__init__.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/utils/multipart_transport.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/utils/plugin.py +0 -0
- {mms_client-1.9.3 → mms_client-1.11.0}/src/mms_client/utils/web.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mms-client
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.11.0
|
|
4
4
|
Summary: API client for accessing the MMS
|
|
5
5
|
Home-page: https://github.com/ElectroRoute-Japan/mms-client
|
|
6
6
|
Author: Ryan Wood
|
|
7
7
|
Author-email: ryan.wood@electroroute.co.jp
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.12,<4.0
|
|
9
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
10
|
Classifier: Framework :: Pydantic :: 2
|
|
11
11
|
Classifier: Framework :: Pytest
|
|
@@ -14,8 +14,8 @@ Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
|
|
|
14
14
|
Classifier: Natural Language :: English
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
20
|
Classifier: Typing :: Typed
|
|
21
21
|
Requires-Dist: backoff (>=2.2.1,<3.0.0)
|
|
@@ -80,6 +80,8 @@ This object represents the top-level XML element contained within the `MmsRespon
|
|
|
80
80
|
### Response & MultiResponse
|
|
81
81
|
These objects contain the actual payload data and inherit from `BaseResponse`. These are what will actually be returned from the deserialization process. They also contain validation data for the top-level paylaod item(s). The difference between `Response` and `MultiResponse` is that the former contains a single item and the latter contains a list.
|
|
82
82
|
|
|
83
|
+
Note that the `MultiResponse` object covers a special case where queries made to the MMS may return no items, in which case the response will be the request object itself. This is handled internally by the client, and the user will receive an empty list in such cases.
|
|
84
|
+
|
|
83
85
|
## Envelopes
|
|
84
86
|
Not to be confused with the SOAP envelope, this envelope contains the method parameters used to send requests to the MMS server. For example, if you wanted to send a market-related request, this would take on the form of a `MarketQuery`, `MarketSubmit` or `MarketCancel` object. This is combined with the payload during the serialization process to produce the final XML payload before injecting it into the `MmsRequest`. During the deserialization process, this is extracted from the XML paylod on the `MmsResponse` object. Each of these should inherit from `mms_client.types.base.Envelope`.
|
|
85
87
|
|
|
@@ -219,12 +221,17 @@ This client is not complete. Currently, it supports the following endpoints:
|
|
|
219
221
|
- MarketQuery_OfferQuery
|
|
220
222
|
- MarketCancel_OfferCancel
|
|
221
223
|
- MarketQuery_AwardResultsQuery
|
|
224
|
+
- MarketQuery_SettlementResultsFileListQuery
|
|
225
|
+
- MarketSubmit_BupSubmit
|
|
226
|
+
- MarketQuery_BupQuery
|
|
222
227
|
- RegistrationSubmit_Resource
|
|
223
228
|
- RegistrationQuery_Resource
|
|
224
229
|
- ReportCreateRequest
|
|
225
230
|
- ReportListRequest
|
|
226
231
|
- ReportDownloadRequestTrnID
|
|
227
232
|
- BSP_ResourceList
|
|
233
|
+
- MarketSubmit_RemainingReserveData
|
|
234
|
+
- MarketQuery_RemainingReserveDataQuery
|
|
228
235
|
|
|
229
236
|
We can add support for additional endpoints as time goes on, and independent contribution is, of course, welcome. However, support for attachments is currently limited because none of the endpoints we support currently require them. We have implemented attachment support up to the client level, but we haven't developed an architecture for submitting them through an endpoint yet.
|
|
230
237
|
|
|
@@ -46,6 +46,8 @@ This object represents the top-level XML element contained within the `MmsRespon
|
|
|
46
46
|
### Response & MultiResponse
|
|
47
47
|
These objects contain the actual payload data and inherit from `BaseResponse`. These are what will actually be returned from the deserialization process. They also contain validation data for the top-level paylaod item(s). The difference between `Response` and `MultiResponse` is that the former contains a single item and the latter contains a list.
|
|
48
48
|
|
|
49
|
+
Note that the `MultiResponse` object covers a special case where queries made to the MMS may return no items, in which case the response will be the request object itself. This is handled internally by the client, and the user will receive an empty list in such cases.
|
|
50
|
+
|
|
49
51
|
## Envelopes
|
|
50
52
|
Not to be confused with the SOAP envelope, this envelope contains the method parameters used to send requests to the MMS server. For example, if you wanted to send a market-related request, this would take on the form of a `MarketQuery`, `MarketSubmit` or `MarketCancel` object. This is combined with the payload during the serialization process to produce the final XML payload before injecting it into the `MmsRequest`. During the deserialization process, this is extracted from the XML paylod on the `MmsResponse` object. Each of these should inherit from `mms_client.types.base.Envelope`.
|
|
51
53
|
|
|
@@ -185,12 +187,17 @@ This client is not complete. Currently, it supports the following endpoints:
|
|
|
185
187
|
- MarketQuery_OfferQuery
|
|
186
188
|
- MarketCancel_OfferCancel
|
|
187
189
|
- MarketQuery_AwardResultsQuery
|
|
190
|
+
- MarketQuery_SettlementResultsFileListQuery
|
|
191
|
+
- MarketSubmit_BupSubmit
|
|
192
|
+
- MarketQuery_BupQuery
|
|
188
193
|
- RegistrationSubmit_Resource
|
|
189
194
|
- RegistrationQuery_Resource
|
|
190
195
|
- ReportCreateRequest
|
|
191
196
|
- ReportListRequest
|
|
192
197
|
- ReportDownloadRequestTrnID
|
|
193
198
|
- BSP_ResourceList
|
|
199
|
+
- MarketSubmit_RemainingReserveData
|
|
200
|
+
- MarketQuery_RemainingReserveDataQuery
|
|
194
201
|
|
|
195
202
|
We can add support for additional endpoints as time goes on, and independent contribution is, of course, welcome. However, support for attachments is currently limited because none of the endpoints we support currently require them. We have implemented attachment support up to the client level, but we haven't developed an architecture for submitting them through an endpoint yet.
|
|
196
203
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "mms_client"
|
|
3
|
-
version = "v1.
|
|
3
|
+
version = "v1.11.0"
|
|
4
4
|
description = "API client for accessing the MMS"
|
|
5
5
|
authors = ["Ryan Wood <ryan.wood@electroroute.co.jp>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -15,13 +15,13 @@ classifiers = [
|
|
|
15
15
|
"Natural Language :: English",
|
|
16
16
|
"Operating System :: OS Independent",
|
|
17
17
|
"Programming Language :: Python :: 3 :: Only",
|
|
18
|
-
"Programming Language :: Python :: 3.
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
19
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
20
20
|
"Typing :: Typed",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
[tool.poetry.dependencies]
|
|
24
|
-
python = "^3.
|
|
24
|
+
python = "^3.12"
|
|
25
25
|
requests = "^2.31.0"
|
|
26
26
|
zeep = "^4.2.1"
|
|
27
27
|
requests-pkcs12 = "^1.24"
|
|
@@ -39,7 +39,7 @@ pydantic-extra-types = "^2.7.0"
|
|
|
39
39
|
black = "^24.2.0"
|
|
40
40
|
isort = "^5.13.2"
|
|
41
41
|
mypy = "^1.8.0"
|
|
42
|
-
pylint = "
|
|
42
|
+
pylint = "~3.2.0"
|
|
43
43
|
xenon = "^0.9.1"
|
|
44
44
|
pydocstyle = "^6.3.0"
|
|
45
45
|
pre-commit = "^3.6.2"
|