plantstar-shared 2.0.3.0.2.30__tar.gz → 2.0.3.0.2.32__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.
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/PKG-INFO +2 -2
- plantstar_shared-2.0.3.0.2.32/plantstar_shared/DataCollectionModuleConstants.py +20 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/api_types.py +1 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/syscon_json.py +3 -3
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared.egg-info/PKG-INFO +2 -2
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared.egg-info/SOURCES.txt +1 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared.egg-info/requires.txt +1 -1
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/setup.py +2 -2
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/README.md +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/DataCollectionModuleProcessNames.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/HmiConstants.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/HuskyInterfacePacketTypes.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/MockRawDataProcessor.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/RawDataProcessorInterfaceActions.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/SysconType.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/__init__.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/add_size_onto_string_and_return.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/convert_bytes_to_object.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/convert_object_to_bytes.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/errors.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/global_definitions.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/is_valid_signed_string.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/obtain_raw_data_processor_function_for_action_name.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/syscon_image_field.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/tcp_socket_utils.py +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared.egg-info/dependency_links.txt +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared.egg-info/top_level.txt +0 -0
- {plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: plantstar-shared
|
3
|
-
Version: 2.0.3.0.2.
|
3
|
+
Version: 2.0.3.0.2.32
|
4
4
|
Summary: Shared code used in plantstar_apu and plantstar_dcm
|
5
5
|
Home-page: https://github.com/SYSCON-International/plantstar_shared
|
6
6
|
Author: SYSCON International
|
@@ -11,7 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Description-Content-Type: text/markdown
|
12
12
|
Requires-Dist: Django>=4.2.0
|
13
13
|
Requires-Dist: msgpack>=1.0.4
|
14
|
-
Requires-Dist:
|
14
|
+
Requires-Dist: psycopg>=3.2.9
|
15
15
|
Requires-Dist: python-dateutil>=2.8.2
|
16
16
|
Requires-Dist: pytz>=2023.4
|
17
17
|
Requires-Dist: requests>=2.31.0
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class DataCollectionModuleKeyConstants:
|
2
|
+
NAME = "name"
|
3
|
+
HOSTNAME = "hostname"
|
4
|
+
IP = "ip"
|
5
|
+
NETMASK = "netmask"
|
6
|
+
BROADCAST = "broadcast"
|
7
|
+
GATEWAY = "gateway"
|
8
|
+
DNS = "dns"
|
9
|
+
APU_IP = "apu_ip"
|
10
|
+
HOMEPAGE = "homepage"
|
11
|
+
RIO_TYPE = "rio_type"
|
12
|
+
TOUCH_TYPE = "touch_type"
|
13
|
+
|
14
|
+
class RioTypes:
|
15
|
+
RIO3 = "rtl_rio3"
|
16
|
+
RIO4 = "rtl_rio4"
|
17
|
+
|
18
|
+
class DataCollectionModuleMachineTypes:
|
19
|
+
MANO_DCM = "manodcm"
|
20
|
+
RPI4_DCM = "rpi4dcm"
|
{plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/api_types.py
RENAMED
@@ -87,6 +87,7 @@ def validate_request(*, api_type, signer_key, data):
|
|
87
87
|
class DataCollectionModuleApiTypes(SysconType):
|
88
88
|
GET_DATA_COLLECTION_MODULE_SYSTEM_DISK_USAGE = ("get_data_collection_module_system_disk_usage", "get_data_collection_module_system_disk_usage", True)
|
89
89
|
GET_DATA_COLLECTION_MODULE_SYSTEM_INFORMATION = ("get_data_collection_module_system_information", "get_data_collection_module_system_information", True)
|
90
|
+
SET_DATA_COLLECTION_MODULE_SYSTEM_INFORMATION = ("set_data_collection_module_system_information", "set_data_collection_module_system_information", True)
|
90
91
|
GET_SYSTEM_ERROR_DICTIONARY_LIST = ("get_system_error_dictionary_list", "get_system_error_dictionary_list", True)
|
91
92
|
|
92
93
|
GET_DATA_COLLECTION_MODULE_PROCESS_STATUSES = ("get_data_collection_module_process_statuses", "get_data_collection_module_process_statuses", True)
|
{plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/syscon_json.py
RENAMED
@@ -3,7 +3,7 @@ import datetime
|
|
3
3
|
import uuid
|
4
4
|
import pytz
|
5
5
|
from dateutil.tz import tzutc
|
6
|
-
from
|
6
|
+
from psycopg.types.range import TimestamptzRange
|
7
7
|
|
8
8
|
from plantstar_shared.syscon_image_field import SysconImageFieldFile
|
9
9
|
|
@@ -57,7 +57,7 @@ class SysconEncoder(json.JSONEncoder):
|
|
57
57
|
}
|
58
58
|
elif isinstance(obj, uuid.UUID):
|
59
59
|
return str(obj)
|
60
|
-
elif isinstance(obj,
|
60
|
+
elif isinstance(obj, TimestamptzRange):
|
61
61
|
return {
|
62
62
|
"__type__": "datetime_range",
|
63
63
|
"lower": obj.lower,
|
@@ -108,7 +108,7 @@ class SysconDecoder(json.JSONDecoder):
|
|
108
108
|
elif type_name == "uuid":
|
109
109
|
return uuid.UUID(**dictionary)
|
110
110
|
elif type_name == "datetime_range":
|
111
|
-
return
|
111
|
+
return TimestamptzRange(**dictionary)
|
112
112
|
else:
|
113
113
|
dictionary["__type__"] = type_name
|
114
114
|
return dictionary
|
{plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: plantstar-shared
|
3
|
-
Version: 2.0.3.0.2.
|
3
|
+
Version: 2.0.3.0.2.32
|
4
4
|
Summary: Shared code used in plantstar_apu and plantstar_dcm
|
5
5
|
Home-page: https://github.com/SYSCON-International/plantstar_shared
|
6
6
|
Author: SYSCON International
|
@@ -11,7 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Description-Content-Type: text/markdown
|
12
12
|
Requires-Dist: Django>=4.2.0
|
13
13
|
Requires-Dist: msgpack>=1.0.4
|
14
|
-
Requires-Dist:
|
14
|
+
Requires-Dist: psycopg>=3.2.9
|
15
15
|
Requires-Dist: python-dateutil>=2.8.2
|
16
16
|
Requires-Dist: pytz>=2023.4
|
17
17
|
Requires-Dist: requests>=2.31.0
|
@@ -7,7 +7,7 @@ setuptools.setup(
|
|
7
7
|
name="plantstar-shared",
|
8
8
|
# MAJOR_MILESTONE_VERSION.MINOR_MILESTONE_VERSION.MAJOR_VERSION.MINOR_VERSION.HOTFIX_VERSION.SUBVERSION
|
9
9
|
# The main version should stay as v2.0.3.0.x until we have passed that in the plantstar_apu/plantstar_dcm projects
|
10
|
-
version="2.0.3.0.2.
|
10
|
+
version="2.0.3.0.2.32",
|
11
11
|
author="SYSCON International",
|
12
12
|
author_email="dev@syscon-intl.com",
|
13
13
|
description="Shared code used in plantstar_apu and plantstar_dcm",
|
@@ -24,7 +24,7 @@ setuptools.setup(
|
|
24
24
|
# Make sure to update the requirements.txt to match any changes made to this section
|
25
25
|
"Django>=4.2.0",
|
26
26
|
"msgpack>=1.0.4",
|
27
|
-
"
|
27
|
+
"psycopg>=3.2.9",
|
28
28
|
"python-dateutil>=2.8.2",
|
29
29
|
"pytz>=2023.4",
|
30
30
|
"requests>=2.31.0",
|
File without changes
|
File without changes
|
{plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/HmiConstants.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/SysconType.py
RENAMED
File without changes
|
{plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/__init__.py
RENAMED
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
|
{plantstar_shared-2.0.3.0.2.30 → plantstar_shared-2.0.3.0.2.32}/plantstar_shared/tcp_socket_utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|