s2-python 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl
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.
- {s2_python-0.3.0.dist-info → s2_python-0.4.0.dist-info}/METADATA +21 -21
- s2_python-0.4.0.dist-info/RECORD +66 -0
- {s2_python-0.3.0.dist-info → s2_python-0.4.0.dist-info}/WHEEL +1 -1
- s2python/common/duration.py +2 -2
- s2python/common/handshake.py +2 -2
- s2python/common/handshake_response.py +2 -2
- s2python/common/instruction_status_update.py +2 -2
- s2python/common/number_range.py +2 -2
- s2python/common/power_forecast.py +2 -2
- s2python/common/power_forecast_element.py +2 -2
- s2python/common/power_forecast_value.py +2 -2
- s2python/common/power_measurement.py +2 -2
- s2python/common/power_range.py +2 -2
- s2python/common/power_value.py +2 -2
- s2python/common/reception_status.py +2 -2
- s2python/common/resource_manager_details.py +2 -2
- s2python/common/revoke_object.py +2 -2
- s2python/common/role.py +2 -2
- s2python/common/select_control_type.py +2 -2
- s2python/common/session_request.py +2 -2
- s2python/common/timer.py +2 -2
- s2python/common/transition.py +2 -2
- s2python/frbc/frbc_actuator_description.py +2 -2
- s2python/frbc/frbc_actuator_status.py +2 -2
- s2python/frbc/frbc_fill_level_target_profile.py +2 -2
- s2python/frbc/frbc_fill_level_target_profile_element.py +2 -2
- s2python/frbc/frbc_instruction.py +2 -2
- s2python/frbc/frbc_leakage_behaviour.py +2 -2
- s2python/frbc/frbc_leakage_behaviour_element.py +2 -2
- s2python/frbc/frbc_operation_mode.py +2 -2
- s2python/frbc/frbc_operation_mode_element.py +2 -2
- s2python/frbc/frbc_storage_description.py +2 -2
- s2python/frbc/frbc_storage_status.py +2 -2
- s2python/frbc/frbc_system_description.py +2 -2
- s2python/frbc/frbc_timer_status.py +2 -2
- s2python/frbc/frbc_usage_forecast.py +2 -2
- s2python/frbc/frbc_usage_forecast_element.py +2 -2
- s2python/message.py +50 -0
- s2python/ppbc/__init__.py +12 -0
- s2python/ppbc/ppbc_end_interruption_instruction.py +32 -0
- s2python/ppbc/ppbc_power_profile_definition.py +27 -0
- s2python/ppbc/ppbc_power_profile_status.py +26 -0
- s2python/ppbc/ppbc_power_sequence.py +30 -0
- s2python/ppbc/ppbc_power_sequence_container.py +27 -0
- s2python/ppbc/ppbc_power_sequence_container_status.py +32 -0
- s2python/ppbc/ppbc_power_sequence_element.py +25 -0
- s2python/ppbc/ppbc_schedule_instruction.py +33 -0
- s2python/ppbc/ppbc_start_interruption_instruction.py +32 -0
- s2python/s2_connection.py +7 -7
- s2python/s2_control_type.py +27 -3
- s2python/s2_parser.py +12 -4
- s2python/validate_values_mixin.py +2 -2
- s2_python-0.3.0.dist-info/RECORD +0 -55
- {s2_python-0.3.0.dist-info → s2_python-0.4.0.dist-info}/entry_points.txt +0 -0
- {s2_python-0.3.0.dist-info → s2_python-0.4.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: s2-python
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.0
|
4
4
|
Summary: S2 Protocol Python Wrapper
|
5
5
|
Home-page: https://github.com/flexiblepower/s2-ws-json-python
|
6
6
|
Author: Flexiblepower
|
@@ -14,29 +14,29 @@ Classifier: Programming Language :: Python :: 3.10
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
16
16
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
17
|
-
Requires-Dist: pydantic
|
17
|
+
Requires-Dist: pydantic~=2.8.2
|
18
18
|
Requires-Dist: pytz
|
19
19
|
Requires-Dist: click
|
20
|
-
Requires-Dist: websockets
|
20
|
+
Requires-Dist: websockets~=13.1
|
21
|
+
Provides-Extra: testing
|
22
|
+
Requires-Dist: pytest; extra == "testing"
|
23
|
+
Requires-Dist: pytest-coverage; extra == "testing"
|
24
|
+
Requires-Dist: pytest-timer; extra == "testing"
|
25
|
+
Requires-Dist: mypy; extra == "testing"
|
26
|
+
Requires-Dist: types-pytz; extra == "testing"
|
27
|
+
Requires-Dist: pylint; extra == "testing"
|
21
28
|
Provides-Extra: development
|
22
|
-
Requires-Dist: pip-tools
|
23
|
-
Requires-Dist: datamodel-code-generator
|
24
|
-
Requires-Dist: pre-commit
|
25
|
-
Requires-Dist: tox
|
29
|
+
Requires-Dist: pip-tools; extra == "development"
|
30
|
+
Requires-Dist: datamodel-code-generator; extra == "development"
|
31
|
+
Requires-Dist: pre-commit; extra == "development"
|
32
|
+
Requires-Dist: tox; extra == "development"
|
26
33
|
Provides-Extra: docs
|
27
|
-
Requires-Dist: sphinx
|
28
|
-
Requires-Dist: sphinx-rtd-theme
|
29
|
-
Requires-Dist: sphinx-tabs
|
30
|
-
Requires-Dist:
|
31
|
-
Requires-Dist:
|
32
|
-
Requires-Dist: sphinxcontrib.httpdomain
|
33
|
-
Provides-Extra: testing
|
34
|
-
Requires-Dist: pytest ; extra == 'testing'
|
35
|
-
Requires-Dist: pytest-coverage ; extra == 'testing'
|
36
|
-
Requires-Dist: pytest-timer ; extra == 'testing'
|
37
|
-
Requires-Dist: mypy ; extra == 'testing'
|
38
|
-
Requires-Dist: types-pytz ; extra == 'testing'
|
39
|
-
Requires-Dist: pylint ; extra == 'testing'
|
34
|
+
Requires-Dist: sphinx; extra == "docs"
|
35
|
+
Requires-Dist: sphinx-rtd-theme>=1.2; extra == "docs"
|
36
|
+
Requires-Dist: sphinx-tabs; extra == "docs"
|
37
|
+
Requires-Dist: sphinx_copybutton; extra == "docs"
|
38
|
+
Requires-Dist: sphinx_fontawesome; extra == "docs"
|
39
|
+
Requires-Dist: sphinxcontrib.httpdomain; extra == "docs"
|
40
40
|
|
41
41
|
Python Wrapper for S2 Flexibility Protocol
|
42
42
|
===========================================
|
@@ -0,0 +1,66 @@
|
|
1
|
+
s2python/__init__.py,sha256=e5lwvqsPl-z7IfEd0hRQhLBRKBYcuw2eqrecXnMfLdg,384
|
2
|
+
s2python/message.py,sha256=Id-CleYk6ClVh3o5meVtRECLNwQHlyddNSOq0-d2bZk,1027
|
3
|
+
s2python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
s2python/reception_status_awaiter.py,sha256=jKMliFk1XxwsEGtx3vFESbJhUtClB7cTu-td90-qBN8,2137
|
5
|
+
s2python/s2_connection.py,sha256=CTTTGzJ6IG9PcQpC5XtnThaYQRpp66gQrauPK8KygOE,20166
|
6
|
+
s2python/s2_control_type.py,sha256=4L6o_QG9ilYA8c3QWpSjc77xwxEHHsAGZO8WQDgxDr0,2860
|
7
|
+
s2python/s2_parser.py,sha256=x2JSCSEvXMCt-0kPDH4zER--CsyFYyRAaezr76V_8Qc,4354
|
8
|
+
s2python/s2_validation_error.py,sha256=BkOLoNsrcQ3MzdCYaPDgs1Wu6lPdlQDpZsTpykKGQmE,384
|
9
|
+
s2python/utils.py,sha256=QX9b-mi-H_YUGTmGmJsrAbaWWM3dgaoaRLRXHHlaZDE,212
|
10
|
+
s2python/validate_values_mixin.py,sha256=3WbauPprzWpGdyDUYPoELICi2NbHrCFzlQ7AtrpDSis,2568
|
11
|
+
s2python/version.py,sha256=IBzoytgbYYYekQnSTfSmWeYAZ4c_yUFU2oLIAG4UYjs,45
|
12
|
+
s2python/common/__init__.py,sha256=yEAXCS59XpNOEXbEXoN04SwultP-3evgVzFuEUSgB5I,1345
|
13
|
+
s2python/common/duration.py,sha256=5_zi0wv98dr8lHXh2RdHATzW4Un8ZNUx4-zaI1t77Ak,667
|
14
|
+
s2python/common/handshake.py,sha256=bsx64flKxVUUMT18O47pV1pnnpXcAGXMJbRi9q4GjwU,467
|
15
|
+
s2python/common/handshake_response.py,sha256=5cAbtLTZ8fkhUw-XdMlGBro3XKWqXXLw3YUavvwLYNg,523
|
16
|
+
s2python/common/instruction_status_update.py,sha256=lo5HxoEGFp8bU0-AQ7bNxuDj1StZ73GE_2sGDA7o5vI,692
|
17
|
+
s2python/common/number_range.py,sha256=N0OUoGtkdYg4GDUwvVHKLjdXxcy9mijgwqmmA079P6k,741
|
18
|
+
s2python/common/power_forecast.py,sha256=C0D6XOphdcEVjfb0py-l2zLnNC-udWmlDD7g2Hre2uo,704
|
19
|
+
s2python/common/power_forecast_element.py,sha256=M3weDKlBASjS_VHt4XKdms2fpxEZy17kWuLTUXsFibU,805
|
20
|
+
s2python/common/power_forecast_value.py,sha256=im5kLyTfDjLuODFWoIuVgVxKjX2FpyPXYoxonjuOpu0,411
|
21
|
+
s2python/common/power_measurement.py,sha256=mMVpe3T86Xu6ctA2Rpc50aB4WS7xuLXgGVSbB4lykHQ,693
|
22
|
+
s2python/common/power_range.py,sha256=FKhJRkT3dzUCeK8P3mrcRVtJHPf2WH-eQDottvEMpBs,686
|
23
|
+
s2python/common/power_value.py,sha256=ujo0yxHnAd-LCIQQuIpNU01jv611UCbcXKl8ilQIILY,363
|
24
|
+
s2python/common/reception_status.py,sha256=HXdaTu5B2iuHb1pg8d5TMprfi80rUmCgCxrrDFLJB0w,525
|
25
|
+
s2python/common/resource_manager_details.py,sha256=QTW6VTn-Y_fvVKX6qGgDMuvry5twmDqHjRvOZXgkuLI,1044
|
26
|
+
s2python/common/revoke_object.py,sha256=7OVNuwu5aMfZ3GJ_b_SRNoTxiX80FY9obp7JHIySzaY,585
|
27
|
+
s2python/common/role.py,sha256=eHKwnie_7eK8k1CNA7S0TbwmkQR84Pzkwdk8aUaUldw,327
|
28
|
+
s2python/common/select_control_type.py,sha256=Rbvem30LrrPYTSjwspc-PJyxoNScv9XRVXJ58-WRotk,523
|
29
|
+
s2python/common/session_request.py,sha256=ztbvGjMwiEmdJ_ToFuPV9Lj_IHJ78fP7IsCt8rMvMu8,502
|
30
|
+
s2python/common/support.py,sha256=Kbrf_KGB45Wfr8j2pqDe1lLde6CIr3nl_LYkWnilmV0,1015
|
31
|
+
s2python/common/timer.py,sha256=PWJjHXfL6yr2VQ8O2HwtYB0o3Jw4TdP2iMX2Wdp7Ic4,556
|
32
|
+
s2python/common/transition.py,sha256=2v0fkxudPhVqmnd-WajJhBsYRnJLAqJU9z1eqQJy8zw,1064
|
33
|
+
s2python/frbc/__init__.py,sha256=ROV3qZoldPkdgVFfMQr5Mf3GDfBzXaMfhNNCuXY6T0s,1104
|
34
|
+
s2python/frbc/frbc_actuator_description.py,sha256=fsgYdKvxZnUCuUuyoN0Ibu5FoA0vUBSrKy6WQJGBfGk,6166
|
35
|
+
s2python/frbc/frbc_actuator_status.py,sha256=cPyAz0B0rThfueKr3CWx61E3eJ8Lp29a-nJPyTPpbls,973
|
36
|
+
s2python/frbc/frbc_fill_level_target_profile.py,sha256=suRBgT8b9HQjfafW-sjqzjFpgJ2vOf73nmL5-Q6WhOo,880
|
37
|
+
s2python/frbc/frbc_fill_level_target_profile_element.py,sha256=V7O7oDDfifLcJsSXYWEd00X3C2TPoU8TcrRu2yLWVVU,1280
|
38
|
+
s2python/frbc/frbc_instruction.py,sha256=Q8w9KB4x6mGsLR-3ADzsyWWf0-uTWGZ31rnKGC9TkIc,809
|
39
|
+
s2python/frbc/frbc_leakage_behaviour.py,sha256=E23McMu4zbjDIUR_MNBlyUuh1chGM-EKTMuiHqjV_wg,794
|
40
|
+
s2python/frbc/frbc_leakage_behaviour_element.py,sha256=B3Tzlu3iMVV3NA1WJds_LDl3T_lBGL3HjGiEin02_pQ,1103
|
41
|
+
s2python/frbc/frbc_operation_mode.py,sha256=w0--55ZByWQukbotR6VpoL9GvNbeNyHcs3NqHAzjq6w,1899
|
42
|
+
s2python/frbc/frbc_operation_mode_element.py,sha256=64_FJzfCRoUgRCdfA1HpLO9lTE1WBxL3Pbn0vaNeX8c,1073
|
43
|
+
s2python/frbc/frbc_storage_description.py,sha256=Jc0zpAwf3E7Grl6v0fkSa4yA8-2-klO1aY-50l-u56E,622
|
44
|
+
s2python/frbc/frbc_storage_status.py,sha256=h6cHTb7Msw5TckPzKsiI3KTSa7Hr5BcXIelF8gmFIdw,523
|
45
|
+
s2python/frbc/frbc_system_description.py,sha256=_scCAVe4sHEhQMHkDvD2pKGnGLzdnm4uARbdcw0inKk,980
|
46
|
+
s2python/frbc/frbc_timer_status.py,sha256=sRsvXxsT_TDlPiacLkZlCZM3y36NZRGqj6RKJeil-yc,711
|
47
|
+
s2python/frbc/frbc_usage_forecast.py,sha256=MWY4Nr2T9NGjQhf7rxTtkqnuSdApTjro81-o_buLABk,747
|
48
|
+
s2python/frbc/frbc_usage_forecast_element.py,sha256=wQJCBoYFt2HXNaKNL3vK_FpTx5wXvRH03NOw_JWOal8,601
|
49
|
+
s2python/frbc/rm.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
50
|
+
s2python/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
51
|
+
s2python/generated/gen_s2.py,sha256=eg9J0pcWxCy0oXO8eq9AtoB-GONHZLNd8JANpMhKQCQ,63573
|
52
|
+
s2python/ppbc/__init__.py,sha256=Rnfl_1n0gkc9mASSzBBMFEKYzJqugV5POtttjLWx_pI,665
|
53
|
+
s2python/ppbc/ppbc_end_interruption_instruction.py,sha256=0ZXQATN8L35xm9-QWCU8ftnU1_Na9Oq3HzSYna_SMcU,1197
|
54
|
+
s2python/ppbc/ppbc_power_profile_definition.py,sha256=3y5lw7eeDVVa6JecoGlZrqr6bcQRaDoLO9EISPle3ks,991
|
55
|
+
s2python/ppbc/ppbc_power_profile_status.py,sha256=E-mNhdaPiuB6qFsG_F1ftIlwaxF75972nvIHKSpau5w,767
|
56
|
+
s2python/ppbc/ppbc_power_sequence.py,sha256=DCeNstEAUvwCiN1bKDd85gE6pgiataJbwGui6pEk5_M,1158
|
57
|
+
s2python/ppbc/ppbc_power_sequence_container.py,sha256=L0kD7zkJj9OBafzzA6zcUgFnn5wCx6VzlGoLX3GDf9U,829
|
58
|
+
s2python/ppbc/ppbc_power_sequence_container_status.py,sha256=3Wq3NasIh_mLDEZvnNsgB8AY8CSd4qQKpPJxXwS7ZiA,1160
|
59
|
+
s2python/ppbc/ppbc_power_sequence_element.py,sha256=sQMJlIRhMhj_crpaRFDWhbP4eCCw4haFq5sD-ptQsS0,797
|
60
|
+
s2python/ppbc/ppbc_schedule_instruction.py,sha256=yHDO5omwKYV_P_v70D4gZ26K5MEIFFboX1sp3J6_atA,1098
|
61
|
+
s2python/ppbc/ppbc_start_interruption_instruction.py,sha256=6Atu6E-Hfs8S2KIdHdGJd9F5gRFqZLNb-dpnphj8hNU,1219
|
62
|
+
s2_python-0.4.0.dist-info/METADATA,sha256=AKIbk23aA-F1SsWtktHK8wYONTepwPBOEhFZmw1YEEA,3595
|
63
|
+
s2_python-0.4.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
64
|
+
s2_python-0.4.0.dist-info/entry_points.txt,sha256=feX-xmgJZgSe5-jxMgFKPKCJz4Ys3eQcGrsXsirNZyM,61
|
65
|
+
s2_python-0.4.0.dist-info/top_level.txt,sha256=OLFq0oDhr77Mp-EYLEcWk5P3jvooOt4IHkTI5KYJMc8,9
|
66
|
+
s2_python-0.4.0.dist-info/RECORD,,
|
s2python/common/duration.py
CHANGED
@@ -4,12 +4,12 @@ import math
|
|
4
4
|
from s2python.generated.gen_s2 import Duration as GenDuration
|
5
5
|
from s2python.validate_values_mixin import (
|
6
6
|
catch_and_convert_exceptions,
|
7
|
-
|
7
|
+
S2MessageComponent,
|
8
8
|
)
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
|
-
class Duration(GenDuration,
|
12
|
+
class Duration(GenDuration, S2MessageComponent["Duration"]):
|
13
13
|
def to_timedelta(self) -> timedelta:
|
14
14
|
return timedelta(milliseconds=self.root)
|
15
15
|
|
s2python/common/handshake.py
CHANGED
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import Handshake as GenHandshake
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class Handshake(GenHandshake,
|
11
|
+
class Handshake(GenHandshake, S2MessageComponent["Handshake"]):
|
12
12
|
model_config = GenHandshake.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import HandshakeResponse as GenHandshakeResponse
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class HandshakeResponse(GenHandshakeResponse,
|
11
|
+
class HandshakeResponse(GenHandshakeResponse, S2MessageComponent["HandshakeResponse"]):
|
12
12
|
model_config = GenHandshakeResponse.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
@@ -5,12 +5,12 @@ from s2python.generated.gen_s2 import (
|
|
5
5
|
)
|
6
6
|
from s2python.validate_values_mixin import (
|
7
7
|
catch_and_convert_exceptions,
|
8
|
-
|
8
|
+
S2MessageComponent,
|
9
9
|
)
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class InstructionStatusUpdate(GenInstructionStatusUpdate,
|
13
|
+
class InstructionStatusUpdate(GenInstructionStatusUpdate, S2MessageComponent["InstructionStatusUpdate"]):
|
14
14
|
model_config = GenInstructionStatusUpdate.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
s2python/common/number_range.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
from typing import Any
|
2
2
|
|
3
|
-
from s2python.validate_values_mixin import
|
3
|
+
from s2python.validate_values_mixin import S2MessageComponent, catch_and_convert_exceptions
|
4
4
|
from s2python.generated.gen_s2 import NumberRange as GenNumberRange
|
5
5
|
|
6
6
|
|
7
7
|
@catch_and_convert_exceptions
|
8
|
-
class NumberRange(GenNumberRange,
|
8
|
+
class NumberRange(GenNumberRange, S2MessageComponent["NumberRange"]):
|
9
9
|
model_config = GenNumberRange.model_config
|
10
10
|
model_config["validate_assignment"] = True
|
11
11
|
|
@@ -5,12 +5,12 @@ from s2python.common.power_forecast_element import PowerForecastElement
|
|
5
5
|
from s2python.generated.gen_s2 import PowerForecast as GenPowerForecast
|
6
6
|
from s2python.validate_values_mixin import (
|
7
7
|
catch_and_convert_exceptions,
|
8
|
-
|
8
|
+
S2MessageComponent,
|
9
9
|
)
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class PowerForecast(GenPowerForecast,
|
13
|
+
class PowerForecast(GenPowerForecast, S2MessageComponent["PowerForecast"]):
|
14
14
|
model_config = GenPowerForecast.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
@@ -3,14 +3,14 @@ from typing import List
|
|
3
3
|
from s2python.generated.gen_s2 import PowerForecastElement as GenPowerForecastElement
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
from s2python.common.duration import Duration
|
9
9
|
from s2python.common.power_forecast_value import PowerForecastValue
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class PowerForecastElement(GenPowerForecastElement,
|
13
|
+
class PowerForecastElement(GenPowerForecastElement, S2MessageComponent["PowerForecastElement"]):
|
14
14
|
model_config = GenPowerForecastElement.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
from s2python.generated.gen_s2 import PowerForecastValue as GenPowerForecastValue
|
2
2
|
from s2python.validate_values_mixin import (
|
3
3
|
catch_and_convert_exceptions,
|
4
|
-
|
4
|
+
S2MessageComponent,
|
5
5
|
)
|
6
6
|
|
7
7
|
|
8
8
|
@catch_and_convert_exceptions
|
9
|
-
class PowerForecastValue(GenPowerForecastValue,
|
9
|
+
class PowerForecastValue(GenPowerForecastValue, S2MessageComponent["PowerForecastValue"]):
|
10
10
|
model_config = GenPowerForecastValue.model_config
|
11
11
|
model_config["validate_assignment"] = True
|
@@ -5,12 +5,12 @@ from s2python.common.power_value import PowerValue
|
|
5
5
|
from s2python.generated.gen_s2 import PowerMeasurement as GenPowerMeasurement
|
6
6
|
from s2python.validate_values_mixin import (
|
7
7
|
catch_and_convert_exceptions,
|
8
|
-
|
8
|
+
S2MessageComponent,
|
9
9
|
)
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class PowerMeasurement(GenPowerMeasurement,
|
13
|
+
class PowerMeasurement(GenPowerMeasurement, S2MessageComponent["PowerMeasurement"]):
|
14
14
|
model_config = GenPowerMeasurement.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
s2python/common/power_range.py
CHANGED
@@ -4,13 +4,13 @@ from pydantic import model_validator
|
|
4
4
|
|
5
5
|
from s2python.generated.gen_s2 import PowerRange as GenPowerRange
|
6
6
|
from s2python.validate_values_mixin import (
|
7
|
-
|
7
|
+
S2MessageComponent,
|
8
8
|
catch_and_convert_exceptions,
|
9
9
|
)
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class PowerRange(GenPowerRange,
|
13
|
+
class PowerRange(GenPowerRange, S2MessageComponent["PowerRange"]):
|
14
14
|
model_config = GenPowerRange.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
s2python/common/power_value.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
from s2python.generated.gen_s2 import PowerValue as GenPowerValue
|
2
2
|
from s2python.validate_values_mixin import (
|
3
3
|
catch_and_convert_exceptions,
|
4
|
-
|
4
|
+
S2MessageComponent,
|
5
5
|
)
|
6
6
|
|
7
7
|
|
8
8
|
@catch_and_convert_exceptions
|
9
|
-
class PowerValue(GenPowerValue,
|
9
|
+
class PowerValue(GenPowerValue, S2MessageComponent["PowerValue"]):
|
10
10
|
model_config = GenPowerValue.model_config
|
11
11
|
model_config["validate_assignment"] = True
|
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import ReceptionStatus as GenReceptionStatus
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class ReceptionStatus(GenReceptionStatus,
|
11
|
+
class ReceptionStatus(GenReceptionStatus, S2MessageComponent["ReceptionStatus"]):
|
12
12
|
model_config = GenReceptionStatus.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
@@ -8,12 +8,12 @@ from s2python.generated.gen_s2 import (
|
|
8
8
|
)
|
9
9
|
from s2python.validate_values_mixin import (
|
10
10
|
catch_and_convert_exceptions,
|
11
|
-
|
11
|
+
S2MessageComponent,
|
12
12
|
)
|
13
13
|
|
14
14
|
|
15
15
|
@catch_and_convert_exceptions
|
16
|
-
class ResourceManagerDetails(GenResourceManagerDetails,
|
16
|
+
class ResourceManagerDetails(GenResourceManagerDetails, S2MessageComponent["ResourceManagerDetails"]):
|
17
17
|
model_config = GenResourceManagerDetails.model_config
|
18
18
|
model_config["validate_assignment"] = True
|
19
19
|
|
s2python/common/revoke_object.py
CHANGED
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import RevokeObject as GenRevokeObject
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class RevokeObject(GenRevokeObject,
|
11
|
+
class RevokeObject(GenRevokeObject, S2MessageComponent["RevokeObject"]):
|
12
12
|
model_config = GenRevokeObject.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
s2python/common/role.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
from s2python.generated.gen_s2 import Role as GenRole
|
2
2
|
from s2python.validate_values_mixin import (
|
3
|
-
|
3
|
+
S2MessageComponent,
|
4
4
|
catch_and_convert_exceptions,
|
5
5
|
)
|
6
6
|
|
7
7
|
|
8
8
|
@catch_and_convert_exceptions
|
9
|
-
class Role(GenRole,
|
9
|
+
class Role(GenRole, S2MessageComponent["Role"]):
|
10
10
|
model_config = GenRole.model_config
|
11
11
|
model_config["validate_assignment"] = True
|
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import SelectControlType as GenSelectControlType
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class SelectControlType(GenSelectControlType,
|
11
|
+
class SelectControlType(GenSelectControlType, S2MessageComponent["SelectControlType"]):
|
12
12
|
model_config = GenSelectControlType.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import SessionRequest as GenSessionRequest
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class SessionRequest(GenSessionRequest,
|
11
|
+
class SessionRequest(GenSessionRequest, S2MessageComponent["SessionRequest"]):
|
12
12
|
model_config = GenSessionRequest.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
s2python/common/timer.py
CHANGED
@@ -3,13 +3,13 @@ import uuid
|
|
3
3
|
from s2python.common.duration import Duration
|
4
4
|
from s2python.generated.gen_s2 import Timer as GenTimer
|
5
5
|
from s2python.validate_values_mixin import (
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
catch_and_convert_exceptions,
|
8
8
|
)
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
|
-
class Timer(GenTimer,
|
12
|
+
class Timer(GenTimer, S2MessageComponent["Timer"]):
|
13
13
|
model_config = GenTimer.model_config
|
14
14
|
model_config["validate_assignment"] = True
|
15
15
|
|
s2python/common/transition.py
CHANGED
@@ -4,13 +4,13 @@ from typing import Optional, List
|
|
4
4
|
from s2python.common.duration import Duration
|
5
5
|
from s2python.generated.gen_s2 import Transition as GenTransition
|
6
6
|
from s2python.validate_values_mixin import (
|
7
|
-
|
7
|
+
S2MessageComponent,
|
8
8
|
catch_and_convert_exceptions,
|
9
9
|
)
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class Transition(GenTransition,
|
13
|
+
class Transition(GenTransition, S2MessageComponent["Transition"]):
|
14
14
|
model_config = GenTransition.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
@@ -12,13 +12,13 @@ from s2python.generated.gen_s2 import (
|
|
12
12
|
FRBCActuatorDescription as GenFRBCActuatorDescription,
|
13
13
|
)
|
14
14
|
from s2python.validate_values_mixin import (
|
15
|
-
|
15
|
+
S2MessageComponent,
|
16
16
|
catch_and_convert_exceptions,
|
17
17
|
)
|
18
18
|
|
19
19
|
|
20
20
|
@catch_and_convert_exceptions
|
21
|
-
class FRBCActuatorDescription(GenFRBCActuatorDescription,
|
21
|
+
class FRBCActuatorDescription(GenFRBCActuatorDescription, S2MessageComponent["FRBCActuatorDescription"]):
|
22
22
|
model_config = GenFRBCActuatorDescription.model_config
|
23
23
|
model_config["validate_assignment"] = True
|
24
24
|
|
@@ -4,12 +4,12 @@ import uuid
|
|
4
4
|
from s2python.generated.gen_s2 import FRBCActuatorStatus as GenFRBCActuatorStatus
|
5
5
|
from s2python.validate_values_mixin import (
|
6
6
|
catch_and_convert_exceptions,
|
7
|
-
|
7
|
+
S2MessageComponent,
|
8
8
|
)
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
|
-
class FRBCActuatorStatus(GenFRBCActuatorStatus,
|
12
|
+
class FRBCActuatorStatus(GenFRBCActuatorStatus, S2MessageComponent["FRBCActuatorStatus"]):
|
13
13
|
model_config = GenFRBCActuatorStatus.model_config
|
14
14
|
model_config["validate_assignment"] = True
|
15
15
|
|
@@ -9,12 +9,12 @@ from s2python.generated.gen_s2 import (
|
|
9
9
|
)
|
10
10
|
from s2python.validate_values_mixin import (
|
11
11
|
catch_and_convert_exceptions,
|
12
|
-
|
12
|
+
S2MessageComponent,
|
13
13
|
)
|
14
14
|
|
15
15
|
|
16
16
|
@catch_and_convert_exceptions
|
17
|
-
class FRBCFillLevelTargetProfile(GenFRBCFillLevelTargetProfile,
|
17
|
+
class FRBCFillLevelTargetProfile(GenFRBCFillLevelTargetProfile, S2MessageComponent["FRBCFillLevelTargetProfile"]):
|
18
18
|
model_config = GenFRBCFillLevelTargetProfile.model_config
|
19
19
|
model_config["validate_assignment"] = True
|
20
20
|
|
@@ -8,12 +8,12 @@ from s2python.common import Duration, NumberRange
|
|
8
8
|
from s2python.generated.gen_s2 import (
|
9
9
|
FRBCFillLevelTargetProfileElement as GenFRBCFillLevelTargetProfileElement,
|
10
10
|
)
|
11
|
-
from s2python.validate_values_mixin import catch_and_convert_exceptions,
|
11
|
+
from s2python.validate_values_mixin import catch_and_convert_exceptions, S2MessageComponent
|
12
12
|
|
13
13
|
|
14
14
|
@catch_and_convert_exceptions
|
15
15
|
class FRBCFillLevelTargetProfileElement(
|
16
|
-
GenFRBCFillLevelTargetProfileElement,
|
16
|
+
GenFRBCFillLevelTargetProfileElement, S2MessageComponent["FRBCFillLevelTargetProfileElement"]
|
17
17
|
):
|
18
18
|
model_config = GenFRBCFillLevelTargetProfileElement.model_config
|
19
19
|
model_config["validate_assignment"] = True
|
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import FRBCInstruction as GenFRBCInstruction
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class FRBCInstruction(GenFRBCInstruction,
|
11
|
+
class FRBCInstruction(GenFRBCInstruction, S2MessageComponent["FRBCInstruction"]):
|
12
12
|
model_config = GenFRBCInstruction.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
@@ -5,12 +5,12 @@ from s2python.frbc.frbc_leakage_behaviour_element import FRBCLeakageBehaviourEle
|
|
5
5
|
from s2python.generated.gen_s2 import FRBCLeakageBehaviour as GenFRBCLeakageBehaviour
|
6
6
|
from s2python.validate_values_mixin import (
|
7
7
|
catch_and_convert_exceptions,
|
8
|
-
|
8
|
+
S2MessageComponent,
|
9
9
|
)
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class FRBCLeakageBehaviour(GenFRBCLeakageBehaviour,
|
13
|
+
class FRBCLeakageBehaviour(GenFRBCLeakageBehaviour, S2MessageComponent["FRBCLeakageBehaviour"]):
|
14
14
|
model_config = GenFRBCLeakageBehaviour.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
@@ -5,12 +5,12 @@ from typing_extensions import Self
|
|
5
5
|
|
6
6
|
from s2python.common import NumberRange
|
7
7
|
from s2python.generated.gen_s2 import FRBCLeakageBehaviourElement as GenFRBCLeakageBehaviourElement
|
8
|
-
from s2python.validate_values_mixin import catch_and_convert_exceptions,
|
8
|
+
from s2python.validate_values_mixin import catch_and_convert_exceptions, S2MessageComponent
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
12
|
class FRBCLeakageBehaviourElement(
|
13
|
-
GenFRBCLeakageBehaviourElement,
|
13
|
+
GenFRBCLeakageBehaviourElement, S2MessageComponent["FRBCLeakageBehaviourElement"]
|
14
14
|
):
|
15
15
|
model_config = GenFRBCLeakageBehaviourElement.model_config
|
16
16
|
model_config["validate_assignment"] = True
|
@@ -9,14 +9,14 @@ from s2python.common import NumberRange
|
|
9
9
|
from s2python.frbc.frbc_operation_mode_element import FRBCOperationModeElement
|
10
10
|
from s2python.generated.gen_s2 import FRBCOperationMode as GenFRBCOperationMode
|
11
11
|
from s2python.validate_values_mixin import (
|
12
|
-
|
12
|
+
S2MessageComponent,
|
13
13
|
catch_and_convert_exceptions,
|
14
14
|
)
|
15
15
|
from s2python.utils import pairwise
|
16
16
|
|
17
17
|
|
18
18
|
@catch_and_convert_exceptions
|
19
|
-
class FRBCOperationMode(GenFRBCOperationMode,
|
19
|
+
class FRBCOperationMode(GenFRBCOperationMode, S2MessageComponent["FRBCOperationMode"]):
|
20
20
|
model_config = GenFRBCOperationMode.model_config
|
21
21
|
model_config["validate_assignment"] = True
|
22
22
|
|
@@ -5,13 +5,13 @@ from s2python.generated.gen_s2 import (
|
|
5
5
|
FRBCOperationModeElement as GenFRBCOperationModeElement,
|
6
6
|
)
|
7
7
|
from s2python.validate_values_mixin import (
|
8
|
-
|
8
|
+
S2MessageComponent,
|
9
9
|
catch_and_convert_exceptions,
|
10
10
|
)
|
11
11
|
|
12
12
|
|
13
13
|
@catch_and_convert_exceptions
|
14
|
-
class FRBCOperationModeElement(GenFRBCOperationModeElement,
|
14
|
+
class FRBCOperationModeElement(GenFRBCOperationModeElement, S2MessageComponent["FRBCOperationModeElement"]):
|
15
15
|
model_config = GenFRBCOperationModeElement.model_config
|
16
16
|
model_config["validate_assignment"] = True
|
17
17
|
|
@@ -4,12 +4,12 @@ from s2python.generated.gen_s2 import (
|
|
4
4
|
)
|
5
5
|
from s2python.validate_values_mixin import (
|
6
6
|
catch_and_convert_exceptions,
|
7
|
-
|
7
|
+
S2MessageComponent,
|
8
8
|
)
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
|
-
class FRBCStorageDescription(GenFRBCStorageDescription,
|
12
|
+
class FRBCStorageDescription(GenFRBCStorageDescription, S2MessageComponent["FRBCStorageDescription"]):
|
13
13
|
model_config = GenFRBCStorageDescription.model_config
|
14
14
|
model_config["validate_assignment"] = True
|
15
15
|
|
@@ -3,12 +3,12 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import FRBCStorageStatus as GenFRBCStorageStatus
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2MessageComponent,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class FRBCStorageStatus(GenFRBCStorageStatus,
|
11
|
+
class FRBCStorageStatus(GenFRBCStorageStatus, S2MessageComponent["FRBCStorageStatus"]):
|
12
12
|
model_config = GenFRBCStorageStatus.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
@@ -4,14 +4,14 @@ import uuid
|
|
4
4
|
from s2python.generated.gen_s2 import FRBCSystemDescription as GenFRBCSystemDescription
|
5
5
|
from s2python.validate_values_mixin import (
|
6
6
|
catch_and_convert_exceptions,
|
7
|
-
|
7
|
+
S2MessageComponent,
|
8
8
|
)
|
9
9
|
from s2python.frbc.frbc_actuator_description import FRBCActuatorDescription
|
10
10
|
from s2python.frbc.frbc_storage_description import FRBCStorageDescription
|
11
11
|
|
12
12
|
|
13
13
|
@catch_and_convert_exceptions
|
14
|
-
class FRBCSystemDescription(GenFRBCSystemDescription,
|
14
|
+
class FRBCSystemDescription(GenFRBCSystemDescription, S2MessageComponent["FRBCSystemDescription"]):
|
15
15
|
model_config = GenFRBCSystemDescription.model_config
|
16
16
|
model_config["validate_assignment"] = True
|
17
17
|
|