s2-python 0.0.0__py3-none-any.whl → 0.1.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.1.0.dist-info/METADATA +99 -0
- s2_python-0.1.0.dist-info/RECORD +50 -0
- {s2_python-0.0.0.dist-info → s2_python-0.1.0.dist-info}/WHEEL +1 -1
- s2python/__init__.py +1 -1
- s2python/common/__init__.py +12 -2
- s2python/common/duration.py +7 -4
- s2python/common/handshake.py +6 -3
- s2python/common/handshake_response.py +6 -3
- s2python/common/instruction_status_update.py +14 -5
- s2python/common/number_range.py +22 -10
- s2python/common/power_forecast.py +10 -5
- s2python/common/power_forecast_element.py +11 -5
- s2python/common/power_forecast_value.py +5 -2
- s2python/common/power_measurement.py +8 -5
- s2python/common/power_range.py +12 -4
- s2python/common/power_value.py +5 -2
- s2python/common/reception_status.py +8 -3
- s2python/common/resource_manager_details.py +18 -8
- s2python/common/revoke_object.py +7 -4
- s2python/common/role.py +5 -2
- s2python/common/select_control_type.py +6 -3
- s2python/common/session_request.py +6 -3
- s2python/common/support.py +19 -11
- s2python/common/timer.py +7 -4
- s2python/common/transition.py +16 -9
- s2python/frbc/__init__.py +3 -1
- s2python/frbc/frbc_actuator_description.py +99 -37
- s2python/frbc/frbc_actuator_status.py +13 -6
- s2python/frbc/frbc_fill_level_target_profile.py +21 -6
- s2python/frbc/frbc_fill_level_target_profile_element.py +17 -5
- s2python/frbc/frbc_instruction.py +9 -6
- s2python/frbc/frbc_leakage_behaviour.py +10 -5
- s2python/frbc/frbc_leakage_behaviour_element.py +13 -4
- s2python/frbc/frbc_operation_mode.py +32 -13
- s2python/frbc/frbc_operation_mode_element.py +20 -7
- s2python/frbc/frbc_storage_description.py +13 -4
- s2python/frbc/frbc_storage_status.py +6 -3
- s2python/frbc/frbc_system_description.py +16 -6
- s2python/frbc/frbc_timer_status.py +8 -5
- s2python/frbc/frbc_usage_forecast.py +10 -5
- s2python/frbc/frbc_usage_forecast_element.py +11 -4
- s2python/generated/gen_s2.py +476 -476
- s2python/s2_parser.py +113 -0
- s2python/s2_validation_error.py +4 -1
- s2python/utils.py +8 -3
- s2python/validate_values_mixin.py +90 -37
- s2python/version.py +1 -1
- s2_python-0.0.0.dist-info/METADATA +0 -50
- s2_python-0.0.0.dist-info/RECORD +0 -49
- {s2_python-0.0.0.dist-info → s2_python-0.1.0.dist-info}/entry_points.txt +0 -0
- {s2_python-0.0.0.dist-info → s2_python-0.1.0.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,17 @@
|
|
1
1
|
import uuid
|
2
2
|
|
3
3
|
from s2python.generated.gen_s2 import FRBCTimerStatus as GenFRBCTimerStatus
|
4
|
-
from s2python.validate_values_mixin import
|
4
|
+
from s2python.validate_values_mixin import (
|
5
|
+
catch_and_convert_exceptions,
|
6
|
+
S2Message,
|
7
|
+
)
|
5
8
|
|
6
9
|
|
7
10
|
@catch_and_convert_exceptions
|
8
|
-
class FRBCTimerStatus(GenFRBCTimerStatus,
|
11
|
+
class FRBCTimerStatus(GenFRBCTimerStatus, S2Message["FRBCTimerStatus"]):
|
9
12
|
class Config(GenFRBCTimerStatus.Config):
|
10
13
|
validate_assignment = True
|
11
14
|
|
12
|
-
actuator_id: uuid.UUID = GenFRBCTimerStatus.__fields__[
|
13
|
-
message_id: uuid.UUID = GenFRBCTimerStatus.__fields__[
|
14
|
-
timer_id: uuid.UUID = GenFRBCTimerStatus.__fields__[
|
15
|
+
actuator_id: uuid.UUID = GenFRBCTimerStatus.__fields__["actuator_id"].field_info # type: ignore[assignment]
|
16
|
+
message_id: uuid.UUID = GenFRBCTimerStatus.__fields__["message_id"].field_info # type: ignore[assignment]
|
17
|
+
timer_id: uuid.UUID = GenFRBCTimerStatus.__fields__["timer_id"].field_info # type: ignore[assignment]
|
@@ -2,14 +2,19 @@ from typing import List
|
|
2
2
|
import uuid
|
3
3
|
|
4
4
|
from s2python.generated.gen_s2 import FRBCUsageForecast as GenFRBCUsageForecast
|
5
|
-
from s2python.validate_values_mixin import
|
6
|
-
|
5
|
+
from s2python.validate_values_mixin import (
|
6
|
+
catch_and_convert_exceptions,
|
7
|
+
S2Message,
|
8
|
+
)
|
9
|
+
from s2python.frbc.frbc_usage_forecast_element import FRBCUsageForecastElement
|
7
10
|
|
8
11
|
|
9
12
|
@catch_and_convert_exceptions
|
10
|
-
class FRBCUsageForecast(GenFRBCUsageForecast,
|
13
|
+
class FRBCUsageForecast(GenFRBCUsageForecast, S2Message["FRBCUsageForecast"]):
|
11
14
|
class Config(GenFRBCUsageForecast.Config):
|
12
15
|
validate_assignment = True
|
13
16
|
|
14
|
-
elements: List[FRBCUsageForecastElement] = GenFRBCUsageForecast.__fields__[
|
15
|
-
|
17
|
+
elements: List[FRBCUsageForecastElement] = GenFRBCUsageForecast.__fields__[
|
18
|
+
"elements"
|
19
|
+
].field_info # type: ignore[assignment]
|
20
|
+
message_id: uuid.UUID = GenFRBCUsageForecast.__fields__["message_id"].field_info # type: ignore[assignment]
|
@@ -1,12 +1,19 @@
|
|
1
1
|
from s2python.common import Duration
|
2
2
|
|
3
|
-
from s2python.generated.gen_s2 import
|
4
|
-
|
3
|
+
from s2python.generated.gen_s2 import (
|
4
|
+
FRBCUsageForecastElement as GenFRBCUsageForecastElement,
|
5
|
+
)
|
6
|
+
from s2python.validate_values_mixin import (
|
7
|
+
catch_and_convert_exceptions,
|
8
|
+
S2Message,
|
9
|
+
)
|
5
10
|
|
6
11
|
|
7
12
|
@catch_and_convert_exceptions
|
8
|
-
class FRBCUsageForecastElement(
|
13
|
+
class FRBCUsageForecastElement(
|
14
|
+
GenFRBCUsageForecastElement, S2Message["FRBCUsageForecastElement"]
|
15
|
+
):
|
9
16
|
class Config(GenFRBCUsageForecastElement.Config):
|
10
17
|
validate_assignment = True
|
11
18
|
|
12
|
-
duration: Duration = GenFRBCUsageForecastElement.__fields__[
|
19
|
+
duration: Duration = GenFRBCUsageForecastElement.__fields__["duration"].field_info # type: ignore[assignment]
|