mms-client 1.9.2__tar.gz → 1.9.3__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.
Files changed (41) hide show
  1. {mms_client-1.9.2 → mms_client-1.9.3}/PKG-INFO +1 -1
  2. {mms_client-1.9.2 → mms_client-1.9.3}/pyproject.toml +1 -1
  3. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/award.py +3 -2
  4. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/offer.py +2 -1
  5. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/report.py +2 -2
  6. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/reserve.py +2 -1
  7. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/resource.py +17 -15
  8. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/transport.py +3 -2
  9. {mms_client-1.9.2 → mms_client-1.9.3}/LICENSE +0 -0
  10. {mms_client-1.9.2 → mms_client-1.9.3}/README.md +0 -0
  11. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/__init__.py +0 -0
  12. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/client.py +0 -0
  13. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/py.typed +0 -0
  14. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/schemas/wsdl/mi-web-service-jbms.wsdl +0 -0
  15. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/schemas/wsdl/omi-web-service.wsdl +0 -0
  16. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/schemas/xsd/mi-market.xsd +0 -0
  17. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/schemas/xsd/mi-outbnd-reports.xsd +0 -0
  18. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/schemas/xsd/mi-report.xsd +0 -0
  19. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/schemas/xsd/mpr.xsd +0 -0
  20. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/schemas/xsd/omi.xsd +0 -0
  21. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/security/__init__.py +0 -0
  22. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/security/certs.py +0 -0
  23. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/security/crypto.py +0 -0
  24. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/services/__init__.py +0 -0
  25. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/services/base.py +0 -0
  26. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/services/market.py +0 -0
  27. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/services/omi.py +0 -0
  28. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/services/registration.py +0 -0
  29. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/services/report.py +0 -0
  30. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/__init__.py +0 -0
  31. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/base.py +0 -0
  32. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/enums.py +0 -0
  33. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/fields.py +0 -0
  34. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/market.py +0 -0
  35. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/types/registration.py +0 -0
  36. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/utils/__init__.py +0 -0
  37. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/utils/errors.py +0 -0
  38. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/utils/multipart_transport.py +0 -0
  39. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/utils/plugin.py +0 -0
  40. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/utils/serialization.py +0 -0
  41. {mms_client-1.9.2 → mms_client-1.9.3}/src/mms_client/utils/web.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mms-client
3
- Version: 1.9.2
3
+ Version: 1.9.3
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mms_client"
3
- version = "v1.9.2"
3
+ version = "v1.9.3"
4
4
  description = "API client for accessing the MMS"
5
5
  authors = ["Ryan Wood <ryan.wood@electroroute.co.jp>"]
6
6
  readme = "README.md"
@@ -2,6 +2,7 @@
2
2
 
3
3
  from decimal import Decimal
4
4
  from enum import Enum
5
+ from typing import Annotated
5
6
  from typing import List
6
7
  from typing import Optional
7
8
 
@@ -323,7 +324,7 @@ class AwardResult(Payload, tag="AwardResults"):
323
324
  direction: Direction = attr(name="Direction")
324
325
 
325
326
  # The bid awards associated with these parameters
326
- data: List[Award] = element(tag="AwardResultsData", min_length=1)
327
+ data: Annotated[List[Award], element(tag="AwardResultsData", min_length=1)]
327
328
 
328
329
  @field_serializer("start", "end")
329
330
  def encode_datetime(self, value: DateTime) -> str:
@@ -340,4 +341,4 @@ class AwardResponse(AwardQuery, tag="AwardResultsQuery"):
340
341
  """Contains the results of a bid award query."""
341
342
 
342
343
  # The bid awards associated with the query
343
- results: Optional[List[AwardResult]] = wrapped(default=None, path="AwardResultsQueryResponse")
344
+ results: Annotated[Optional[List[AwardResult]], wrapped(default=None, path="AwardResultsQueryResponse")]
@@ -1,6 +1,7 @@
1
1
  """Contains objects for MMS offers."""
2
2
 
3
3
  from decimal import Decimal
4
+ from typing import Annotated
4
5
  from typing import List
5
6
  from typing import Optional
6
7
 
@@ -79,7 +80,7 @@ class OfferData(Payload):
79
80
  """Describes the data common to both offer requests and responses."""
80
81
 
81
82
  # The separate offers that make up the offer stack
82
- stack: List[OfferStack] = element(tag="OfferStack", min_length=1, max_length=20)
83
+ stack: Annotated[List[OfferStack], element(tag="OfferStack", min_length=1, max_length=20)]
83
84
 
84
85
  # The identifier for the power resource being traded
85
86
  resource: str = resource_name("ResourceName")
@@ -269,7 +269,7 @@ class NewReportRequest(ReportMetadata, tag="ReportCreateRequest"):
269
269
  bsp_name: Optional[str] = participant("BSPName", True)
270
270
 
271
271
  # Parameters to be use when configuring the report
272
- parameters: List[Parameter] = element(tag="Param", max_length=5)
272
+ parameters: Annotated[List[Parameter], element(tag="Param", max_length=5)]
273
273
 
274
274
 
275
275
  class NewReportResponse(NewReportRequest, tag="ReportCreateRequest"):
@@ -287,7 +287,7 @@ class ListReportResponse(ListReportRequest, tag="ReportListRequest"):
287
287
  """Represents the base fields for a list report response."""
288
288
 
289
289
  # The list of reports that match the query
290
- reports: List[ReportItem] = wrapped(path="ReportListResponse", entity=element(tag="ReportItem"))
290
+ reports: Annotated[List[ReportItem], wrapped(path="ReportListResponse", entity=element(tag="ReportItem"))]
291
291
 
292
292
 
293
293
  class ReportDownloadRequest(ReportData):
@@ -1,5 +1,6 @@
1
1
  """Contains objects for MMS reserve requirements."""
2
2
 
3
+ from typing import Annotated
3
4
  from typing import List
4
5
  from typing import Optional
5
6
 
@@ -71,7 +72,7 @@ class ReserveRequirement(Payload):
71
72
  area: AreaCode = attr(name="Area")
72
73
 
73
74
  # The requirements associated with the area
74
- requirements: List[Requirement] = element(tag="Requirement", min_length=1)
75
+ requirements: Annotated[List[Requirement], element(tag="Requirement", min_length=1)]
75
76
 
76
77
 
77
78
  class ReserveRequirementQuery(Payload):
@@ -328,7 +328,7 @@ class StartupPattern(Payload, tag="StartupPatternInfo"):
328
328
  pattern_name: str = pattern_name("PatternName")
329
329
 
330
330
  # The events associated with this startup pattern
331
- events: List[StartupEvent] = element(tag="StartupPatternEvent", min_length=6, max_length=25)
331
+ events: Annotated[List[StartupEvent], element(tag="StartupPatternEvent", min_length=6, max_length=25)]
332
332
 
333
333
 
334
334
  class ShutdownEvent(Payload):
@@ -366,34 +366,36 @@ class ShutdownPattern(Payload, tag="StopPatternInfo"):
366
366
  pattern_name: str = pattern_name("PatternName")
367
367
 
368
368
  # The events associated with this stop pattern
369
- events: List[ShutdownEvent] = element(tag="StopPatternEvent", min_length=2, max_length=21)
369
+ events: Annotated[List[ShutdownEvent], element(tag="StopPatternEvent", min_length=2, max_length=21)]
370
370
 
371
371
 
372
372
  class ResourceData(Payload, tag="Resource"):
373
373
  """Contains the data common to both resource requests and responses."""
374
374
 
375
375
  # The output bands associated with this resource
376
- output_bands: Optional[List[OutputBand]] = wrapped(default=None, path="OutputBand", min_length=1, max_length=20)
376
+ output_bands: Annotated[
377
+ Optional[List[OutputBand]], wrapped(default=None, path="OutputBand", min_length=1, max_length=20)
378
+ ]
377
379
 
378
380
  # The switching outputs associated with this resource
379
- switch_outputs: Optional[List[SwitchOutput]] = wrapped(
380
- default=None, path="SwitchOutput", min_length=1, max_length=20
381
- )
381
+ switch_outputs: Annotated[
382
+ Optional[List[SwitchOutput]], wrapped(default=None, path="SwitchOutput", min_length=1, max_length=20)
383
+ ]
382
384
 
383
385
  # The minimum EDC/LFC outputs associated with this resource
384
- afc_minimum_outputs: Optional[List[AfcMinimumOutput]] = wrapped(
385
- default=None, path="OutputRangeBelowAfc", min_length=1, max_length=20
386
- )
386
+ afc_minimum_outputs: Annotated[
387
+ Optional[List[AfcMinimumOutput]], wrapped(default=None, path="OutputRangeBelowAfc", min_length=1, max_length=20)
388
+ ]
387
389
 
388
390
  # The startup patterns associated with this resource
389
- startup_patterns: Optional[List[StartupPattern]] = wrapped(
390
- default=None, path="StartupPattern", min_length=1, max_length=20
391
- )
391
+ startup_patterns: Annotated[
392
+ Optional[List[StartupPattern]], wrapped(default=None, path="StartupPattern", min_length=1, max_length=20)
393
+ ]
392
394
 
393
395
  # The stop patterns associated with this resource
394
- shutdown_patterns: Optional[List[ShutdownPattern]] = wrapped(
395
- default=None, path="StopPattern", min_length=1, max_length=20
396
- )
396
+ shutdown_patterns: Annotated[
397
+ Optional[List[ShutdownPattern]], wrapped(default=None, path="StopPattern", min_length=1, max_length=20)
398
+ ]
397
399
 
398
400
  # Any comments attached to the resource
399
401
  comments: Optional[str] = element(
@@ -1,6 +1,7 @@
1
1
  """Contains the base types necessary for communication with the MMS server."""
2
2
 
3
3
  from enum import Enum
4
+ from typing import Annotated
4
5
  from typing import List
5
6
  from typing import Optional
6
7
 
@@ -87,7 +88,7 @@ class MmsRequest(BaseModel):
87
88
 
88
89
  # Any attached files to be sent with the request. Only 20 of these are allowed for OMI requests. For MI requests,
89
90
  # the limit is 40.
90
- attachments: List[Attachment] = Field(default=[], alias="attachmentData")
91
+ attachments: Annotated[List[Attachment], Field(alias="attachmentData")] = []
91
92
 
92
93
  def to_arguments(self) -> dict:
93
94
  """Convert the request to a dictionary of arguments for use in the MMS client."""
@@ -127,4 +128,4 @@ class MmsResponse(BaseModel):
127
128
  payload: bytes = Field(alias="responseData")
128
129
 
129
130
  # Any attached files to be sent with the response
130
- attachments: List[Attachment] = Field(default=[], alias="attachmentData")
131
+ attachments: Annotated[List[Attachment], Field(alias="attachmentData")] = []
File without changes
File without changes