PyAres 0.2.0__tar.gz → 0.2.1__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.
- {pyares-0.2.0 → pyares-0.2.1}/PKG-INFO +1 -1
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/ares_data_type_utils.py +3 -2
- {pyares-0.2.0 → pyares-0.2.1}/PyAres.egg-info/PKG-INFO +1 -1
- {pyares-0.2.0 → pyares-0.2.1}/pyproject.toml +1 -1
- {pyares-0.2.0 → pyares-0.2.1}/LICENSE +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Analyzing/__init__.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Analyzing/analysis_service.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Analyzing/analyzer_models.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/analyzer_test.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/analyzer_test_tools_demo.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/analyzer_wiki.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/device_test.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/hotplate.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/planner_test.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/planner_test_tools_demo.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/planner_wiki.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Demo/rotary_mixer.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Device/__init__.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Device/device_models.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Device/device_service.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Device/device_warnings.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Models/__init__.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Models/ares_data_models.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Planning/__init__.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Planning/planner_models.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Planning/planning_service.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/ares_data_schema_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/ares_device_command_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/ares_outcome_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/ares_struct_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/ares_value_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/param_history_info_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/plan_request_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/plan_response_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/Utils/planning_param_utils.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/__init__.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/test_tools/__init__.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/test_tools/analyzer_tester.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres/test_tools/planner_tester.py +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres.egg-info/SOURCES.txt +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres.egg-info/dependency_links.txt +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres.egg-info/requires.txt +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/PyAres.egg-info/top_level.txt +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/README.md +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/setup.cfg +0 -0
- {pyares-0.2.0 → pyares-0.2.1}/setup.py +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
from typing import Union
|
|
1
|
+
from typing import Union, cast
|
|
2
2
|
from ares_datamodel import ares_data_type_pb2
|
|
3
3
|
from ..Models import AresDataType
|
|
4
4
|
|
|
5
5
|
def python_ares_type_to_proto_ares_type(py_value: AresDataType) -> ares_data_type_pb2.AresDataType:
|
|
6
6
|
""" A method to convert from the python AresDataType class to the protobuf version """
|
|
7
|
-
|
|
7
|
+
val = cast(ares_data_type_pb2.AresDataType, py_value.value)
|
|
8
|
+
return val
|
|
8
9
|
|
|
9
10
|
def proto_ares_type_to_python_ares_type(proto_value: ares_data_type_pb2.AresDataType) -> AresDataType:
|
|
10
11
|
""" A method to convert from the protobuf AresDataType class to the python version """
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|