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.
Files changed (51) hide show
  1. s2_python-0.1.0.dist-info/METADATA +99 -0
  2. s2_python-0.1.0.dist-info/RECORD +50 -0
  3. {s2_python-0.0.0.dist-info → s2_python-0.1.0.dist-info}/WHEEL +1 -1
  4. s2python/__init__.py +1 -1
  5. s2python/common/__init__.py +12 -2
  6. s2python/common/duration.py +7 -4
  7. s2python/common/handshake.py +6 -3
  8. s2python/common/handshake_response.py +6 -3
  9. s2python/common/instruction_status_update.py +14 -5
  10. s2python/common/number_range.py +22 -10
  11. s2python/common/power_forecast.py +10 -5
  12. s2python/common/power_forecast_element.py +11 -5
  13. s2python/common/power_forecast_value.py +5 -2
  14. s2python/common/power_measurement.py +8 -5
  15. s2python/common/power_range.py +12 -4
  16. s2python/common/power_value.py +5 -2
  17. s2python/common/reception_status.py +8 -3
  18. s2python/common/resource_manager_details.py +18 -8
  19. s2python/common/revoke_object.py +7 -4
  20. s2python/common/role.py +5 -2
  21. s2python/common/select_control_type.py +6 -3
  22. s2python/common/session_request.py +6 -3
  23. s2python/common/support.py +19 -11
  24. s2python/common/timer.py +7 -4
  25. s2python/common/transition.py +16 -9
  26. s2python/frbc/__init__.py +3 -1
  27. s2python/frbc/frbc_actuator_description.py +99 -37
  28. s2python/frbc/frbc_actuator_status.py +13 -6
  29. s2python/frbc/frbc_fill_level_target_profile.py +21 -6
  30. s2python/frbc/frbc_fill_level_target_profile_element.py +17 -5
  31. s2python/frbc/frbc_instruction.py +9 -6
  32. s2python/frbc/frbc_leakage_behaviour.py +10 -5
  33. s2python/frbc/frbc_leakage_behaviour_element.py +13 -4
  34. s2python/frbc/frbc_operation_mode.py +32 -13
  35. s2python/frbc/frbc_operation_mode_element.py +20 -7
  36. s2python/frbc/frbc_storage_description.py +13 -4
  37. s2python/frbc/frbc_storage_status.py +6 -3
  38. s2python/frbc/frbc_system_description.py +16 -6
  39. s2python/frbc/frbc_timer_status.py +8 -5
  40. s2python/frbc/frbc_usage_forecast.py +10 -5
  41. s2python/frbc/frbc_usage_forecast_element.py +11 -4
  42. s2python/generated/gen_s2.py +476 -476
  43. s2python/s2_parser.py +113 -0
  44. s2python/s2_validation_error.py +4 -1
  45. s2python/utils.py +8 -3
  46. s2python/validate_values_mixin.py +90 -37
  47. s2python/version.py +1 -1
  48. s2_python-0.0.0.dist-info/METADATA +0 -50
  49. s2_python-0.0.0.dist-info/RECORD +0 -49
  50. {s2_python-0.0.0.dist-info → s2_python-0.1.0.dist-info}/entry_points.txt +0 -0
  51. {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 catch_and_convert_exceptions, ValidateValuesMixin
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, ValidateValuesMixin['FRBCTimerStatus']):
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__['actuator_id'].field_info # type: ignore[assignment]
13
- message_id: uuid.UUID = GenFRBCTimerStatus.__fields__['message_id'].field_info # type: ignore[assignment]
14
- timer_id: uuid.UUID = GenFRBCTimerStatus.__fields__['timer_id'].field_info # type: ignore[assignment]
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 catch_and_convert_exceptions, ValidateValuesMixin
6
- from s2python.frbc import FRBCUsageForecastElement
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, ValidateValuesMixin['FRBCUsageForecast']):
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__['elements'].field_info # type: ignore[assignment]
15
- message_id: uuid.UUID = GenFRBCUsageForecast.__fields__['message_id'].field_info # type: ignore[assignment]
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 FRBCUsageForecastElement as GenFRBCUsageForecastElement
4
- from s2python.validate_values_mixin import catch_and_convert_exceptions, ValidateValuesMixin
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(GenFRBCUsageForecastElement, ValidateValuesMixin['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__['duration'].field_info # type: ignore[assignment]
19
+ duration: Duration = GenFRBCUsageForecastElement.__fields__["duration"].field_info # type: ignore[assignment]