plantstar-shared 2.0.3.0.2.30__py3-none-any.whl → 2.0.3.0.2.32__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.
@@ -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"
@@ -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)
@@ -3,7 +3,7 @@ import datetime
3
3
  import uuid
4
4
  import pytz
5
5
  from dateutil.tz import tzutc
6
- from psycopg2._range import DateTimeTZRange
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, DateTimeTZRange):
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 DateTimeTZRange(**dictionary)
111
+ return TimestamptzRange(**dictionary)
112
112
  else:
113
113
  dictionary["__type__"] = type_name
114
114
  return dictionary
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plantstar-shared
3
- Version: 2.0.3.0.2.30
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: psycopg2>=2.9.9
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
@@ -1,3 +1,4 @@
1
+ plantstar_shared/DataCollectionModuleConstants.py,sha256=V_P3shcGJIIGRuvcvP0-rpzYCDkPLaUe8vGtlMX9d-k,446
1
2
  plantstar_shared/DataCollectionModuleProcessNames.py,sha256=L21K4eznLCIYAbb4g7qKhyHKS1aK4w9dSu5r6LGewGs,441
2
3
  plantstar_shared/HmiConstants.py,sha256=CpuxQlgI2qZjI7-Mzvki0rnCvRb-MQtCxZ88S-Mu2Gs,588
3
4
  plantstar_shared/HuskyInterfacePacketTypes.py,sha256=tUWcWKpaBgYs2S8zll9E5-YTMqGfOIU4kj5mroQe344,1372
@@ -6,7 +7,7 @@ plantstar_shared/RawDataProcessorInterfaceActions.py,sha256=XnXuFW3BFSa89-VmhGAK
6
7
  plantstar_shared/SysconType.py,sha256=6Ae9F0fBr0vpXAmP8fYqoWyFUGTEECtS55zAYMkeKlY,1581
7
8
  plantstar_shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
9
  plantstar_shared/add_size_onto_string_and_return.py,sha256=j7XSs5ubKKo5LCMVljzZudK2nw8CZh-zMSLT_t30aGg,385
9
- plantstar_shared/api_types.py,sha256=Lkqm-r9yLcGVG8cixp1G8FFEghkzNTE8V1wybmAV1iQ,5621
10
+ plantstar_shared/api_types.py,sha256=WBCB6zcL8ip6TaU_KoiJKYfq7yz_BDQ2vdt_jfj5wL8,5778
10
11
  plantstar_shared/convert_bytes_to_object.py,sha256=YKf410EWUpeyyeBhJ3kl6PYIAcHJKKkhp8JkE-CuSv0,405
11
12
  plantstar_shared/convert_object_to_bytes.py,sha256=vVS3dKkPynOJ2NV2LgLHdEOZflK_0hhdS-NuU_gcfHs,206
12
13
  plantstar_shared/errors.py,sha256=qEUHh2d7pqZHoag6YJjnVfRWzWAzjuyGZH7stT_-Nzk,341
@@ -14,9 +15,9 @@ plantstar_shared/global_definitions.py,sha256=Axmhe5kCtXrI-1ckYNR3ata3X5OpEZ2L-m
14
15
  plantstar_shared/is_valid_signed_string.py,sha256=5ZiEsPRz30J8yxN4A1dHq-hlz7VI9ru_fRH4A5JjuGQ,276
15
16
  plantstar_shared/obtain_raw_data_processor_function_for_action_name.py,sha256=DYo307PraRRD8zGiSO6Fn03bZ4X9aDOYV9rwaRm8mXM,1134
16
17
  plantstar_shared/syscon_image_field.py,sha256=GlTTudqFT5EsWM5sPRO0p5SDascX7gI1BEOeF1OG7Tw,441
17
- plantstar_shared/syscon_json.py,sha256=WLfn1sftcNe71Qz2lczr9REx6lAl7mDJCz9GBhEg3Ek,4545
18
+ plantstar_shared/syscon_json.py,sha256=n3M4wV6IuGEPtHc7Hs0qbeB2W6GQwSBl8IF4R0Gz6xc,4552
18
19
  plantstar_shared/tcp_socket_utils.py,sha256=Z8KY4Sc_SX4XDunPxeAk2IMfYZi5HenGE8SBU8U-KTk,6364
19
- plantstar_shared-2.0.3.0.2.30.dist-info/METADATA,sha256=OERcJo2VMIl17XuXr3tWTfsDHJyEx6Y0I1jTo0kkOy4,825
20
- plantstar_shared-2.0.3.0.2.30.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
21
- plantstar_shared-2.0.3.0.2.30.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
22
- plantstar_shared-2.0.3.0.2.30.dist-info/RECORD,,
20
+ plantstar_shared-2.0.3.0.2.32.dist-info/METADATA,sha256=J50QlbmuFCnBY6bj0iBHddbWvHo3YUKm_Ozg2xBnJOc,824
21
+ plantstar_shared-2.0.3.0.2.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
+ plantstar_shared-2.0.3.0.2.32.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
23
+ plantstar_shared-2.0.3.0.2.32.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5