s2-python 0.0.1__py3-none-any.whl → 0.2.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.0.1.dist-info → s2_python-0.2.0.dist-info}/METADATA +22 -4
- s2_python-0.2.0.dist-info/RECORD +54 -0
- {s2_python-0.0.1.dist-info → s2_python-0.2.0.dist-info}/WHEEL +1 -1
- s2python/__init__.py +1 -1
- s2python/common/__init__.py +1 -1
- s2python/common/duration.py +5 -5
- s2python/common/handshake.py +5 -5
- s2python/common/handshake_response.py +5 -5
- s2python/common/instruction_status_update.py +6 -10
- s2python/common/number_range.py +17 -21
- s2python/common/power_forecast.py +7 -9
- s2python/common/power_forecast_element.py +9 -10
- s2python/common/power_forecast_value.py +4 -6
- s2python/common/power_measurement.py +7 -7
- s2python/common/power_range.py +11 -13
- s2python/common/power_value.py +4 -4
- s2python/common/reception_status.py +5 -7
- s2python/common/resource_manager_details.py +11 -12
- s2python/common/revoke_object.py +6 -6
- s2python/common/role.py +4 -4
- s2python/common/select_control_type.py +5 -5
- s2python/common/session_request.py +5 -5
- s2python/common/support.py +6 -4
- s2python/common/timer.py +6 -6
- s2python/common/transition.py +12 -14
- s2python/frbc/frbc_actuator_description.py +53 -74
- s2python/frbc/frbc_actuator_status.py +10 -12
- s2python/frbc/frbc_fill_level_target_profile.py +10 -14
- s2python/frbc/frbc_fill_level_target_profile_element.py +7 -9
- s2python/frbc/frbc_instruction.py +8 -8
- s2python/frbc/frbc_leakage_behaviour.py +8 -10
- s2python/frbc/frbc_leakage_behaviour_element.py +6 -8
- s2python/frbc/frbc_operation_mode.py +19 -29
- s2python/frbc/frbc_operation_mode_element.py +11 -13
- s2python/frbc/frbc_storage_description.py +6 -8
- s2python/frbc/frbc_storage_status.py +5 -5
- s2python/frbc/frbc_system_description.py +10 -13
- s2python/frbc/frbc_timer_status.py +7 -7
- s2python/frbc/frbc_usage_forecast.py +7 -9
- s2python/frbc/frbc_usage_forecast_element.py +5 -7
- s2python/frbc/rm.py +0 -0
- s2python/generated/gen_s2.py +1150 -1130
- s2python/reception_status_awaiter.py +60 -0
- s2python/s2_connection.py +470 -0
- s2python/s2_control_type.py +56 -0
- s2python/s2_parser.py +113 -0
- s2python/s2_validation_error.py +7 -5
- s2python/utils.py +7 -2
- s2python/validate_values_mixin.py +32 -89
- s2python/version.py +2 -0
- s2_python-0.0.1.dist-info/RECORD +0 -49
- {s2_python-0.0.1.dist-info → s2_python-0.2.0.dist-info}/entry_points.txt +0 -0
- {s2_python-0.0.1.dist-info → s2_python-0.2.0.dist-info}/top_level.txt +0 -0
@@ -4,22 +4,19 @@ 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
|
+
S2Message,
|
8
8
|
)
|
9
|
-
from s2python.frbc import FRBCActuatorDescription
|
9
|
+
from s2python.frbc.frbc_actuator_description import FRBCActuatorDescription
|
10
|
+
from s2python.frbc.frbc_storage_description import FRBCStorageDescription
|
10
11
|
|
11
12
|
|
12
13
|
@catch_and_convert_exceptions
|
13
|
-
class FRBCSystemDescription(
|
14
|
-
GenFRBCSystemDescription
|
15
|
-
|
16
|
-
class Config(GenFRBCSystemDescription.Config):
|
17
|
-
validate_assignment = True
|
14
|
+
class FRBCSystemDescription(GenFRBCSystemDescription, S2Message["FRBCSystemDescription"]):
|
15
|
+
model_config = GenFRBCSystemDescription.model_config
|
16
|
+
model_config["validate_assignment"] = True
|
18
17
|
|
19
|
-
actuators: List[FRBCActuatorDescription] = GenFRBCSystemDescription.
|
18
|
+
actuators: List[FRBCActuatorDescription] = GenFRBCSystemDescription.model_fields[
|
20
19
|
"actuators"
|
21
|
-
]
|
22
|
-
message_id: uuid.UUID = GenFRBCSystemDescription.
|
23
|
-
storage: FRBCStorageDescription = GenFRBCSystemDescription.
|
24
|
-
"storage"
|
25
|
-
].field_info # type: ignore[assignment]
|
20
|
+
] # type: ignore[assignment]
|
21
|
+
message_id: uuid.UUID = GenFRBCSystemDescription.model_fields["message_id"] # type: ignore[assignment]
|
22
|
+
storage: FRBCStorageDescription = GenFRBCSystemDescription.model_fields["storage"] # type: ignore[assignment]
|
@@ -3,15 +3,15 @@ import uuid
|
|
3
3
|
from s2python.generated.gen_s2 import FRBCTimerStatus as GenFRBCTimerStatus
|
4
4
|
from s2python.validate_values_mixin import (
|
5
5
|
catch_and_convert_exceptions,
|
6
|
-
|
6
|
+
S2Message,
|
7
7
|
)
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class FRBCTimerStatus(GenFRBCTimerStatus,
|
12
|
-
|
13
|
-
|
11
|
+
class FRBCTimerStatus(GenFRBCTimerStatus, S2Message["FRBCTimerStatus"]):
|
12
|
+
model_config = GenFRBCTimerStatus.model_config
|
13
|
+
model_config["validate_assignment"] = True
|
14
14
|
|
15
|
-
actuator_id: uuid.UUID = GenFRBCTimerStatus.
|
16
|
-
message_id: uuid.UUID = GenFRBCTimerStatus.
|
17
|
-
timer_id: uuid.UUID = GenFRBCTimerStatus.
|
15
|
+
actuator_id: uuid.UUID = GenFRBCTimerStatus.model_fields["actuator_id"] # type: ignore[assignment]
|
16
|
+
message_id: uuid.UUID = GenFRBCTimerStatus.model_fields["message_id"] # type: ignore[assignment]
|
17
|
+
timer_id: uuid.UUID = GenFRBCTimerStatus.model_fields["timer_id"] # type: ignore[assignment]
|
@@ -4,17 +4,15 @@ import uuid
|
|
4
4
|
from s2python.generated.gen_s2 import FRBCUsageForecast as GenFRBCUsageForecast
|
5
5
|
from s2python.validate_values_mixin import (
|
6
6
|
catch_and_convert_exceptions,
|
7
|
-
|
7
|
+
S2Message,
|
8
8
|
)
|
9
|
-
from s2python.frbc import FRBCUsageForecastElement
|
9
|
+
from s2python.frbc.frbc_usage_forecast_element import FRBCUsageForecastElement
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class FRBCUsageForecast(GenFRBCUsageForecast,
|
14
|
-
|
15
|
-
|
13
|
+
class FRBCUsageForecast(GenFRBCUsageForecast, S2Message["FRBCUsageForecast"]):
|
14
|
+
model_config = GenFRBCUsageForecast.model_config
|
15
|
+
model_config["validate_assignment"] = True
|
16
16
|
|
17
|
-
elements: List[FRBCUsageForecastElement] = GenFRBCUsageForecast.
|
18
|
-
|
19
|
-
].field_info # type: ignore[assignment]
|
20
|
-
message_id: uuid.UUID = GenFRBCUsageForecast.__fields__["message_id"].field_info # type: ignore[assignment]
|
17
|
+
elements: List[FRBCUsageForecastElement] = GenFRBCUsageForecast.model_fields["elements"] # type: ignore[assignment]
|
18
|
+
message_id: uuid.UUID = GenFRBCUsageForecast.model_fields["message_id"] # type: ignore[assignment]
|
@@ -5,15 +5,13 @@ from s2python.generated.gen_s2 import (
|
|
5
5
|
)
|
6
6
|
from s2python.validate_values_mixin import (
|
7
7
|
catch_and_convert_exceptions,
|
8
|
-
|
8
|
+
S2Message,
|
9
9
|
)
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class FRBCUsageForecastElement(
|
14
|
-
GenFRBCUsageForecastElement
|
15
|
-
|
16
|
-
class Config(GenFRBCUsageForecastElement.Config):
|
17
|
-
validate_assignment = True
|
13
|
+
class FRBCUsageForecastElement(GenFRBCUsageForecastElement, S2Message["FRBCUsageForecastElement"]):
|
14
|
+
model_config = GenFRBCUsageForecastElement.model_config
|
15
|
+
model_config["validate_assignment"] = True
|
18
16
|
|
19
|
-
duration: Duration = GenFRBCUsageForecastElement.
|
17
|
+
duration: Duration = GenFRBCUsageForecastElement.model_fields["duration"] # type: ignore[assignment]
|
s2python/frbc/rm.py
ADDED
File without changes
|