plantstar-shared 2.0.3.0.2.33__py3-none-any.whl → 2.0.3.0.2.34__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.
- plantstar_shared/api_types.py +7 -0
- plantstar_shared/syscon_json.py +3 -3
- {plantstar_shared-2.0.3.0.2.33.dist-info → plantstar_shared-2.0.3.0.2.34.dist-info}/METADATA +2 -2
- {plantstar_shared-2.0.3.0.2.33.dist-info → plantstar_shared-2.0.3.0.2.34.dist-info}/RECORD +6 -6
- {plantstar_shared-2.0.3.0.2.33.dist-info → plantstar_shared-2.0.3.0.2.34.dist-info}/WHEEL +0 -0
- {plantstar_shared-2.0.3.0.2.33.dist-info → plantstar_shared-2.0.3.0.2.34.dist-info}/top_level.txt +0 -0
plantstar_shared/api_types.py
CHANGED
@@ -101,6 +101,11 @@ class ApuApiTypes(SysconType):
|
|
101
101
|
REGISTER_HMI = ("data_collection_module_manager/register_hmi", "data_collection_module_manager/register_hmi", True)
|
102
102
|
REGISTER_DCM = ("data_collection_module_manager/register_dcm", "data_collection_module_manager/register_dcm", True)
|
103
103
|
SEND_TEAMS_MESSAGE = ("base_app/send_teams_message", "base_app/send_teams_message", True)
|
104
|
+
GET_USER_FINGERPRINTS = ("user_manager/get_user_fingerprints", "user_manager/get_user_fingerprints", True)
|
105
|
+
ADD_USER_FINGERPRINT = ("user_manager/add_user_fingerprint", "user_manager/add_user_fingerprint", True)
|
106
|
+
DELETE_USER_FINGERPRINT = ("user_manager/delete_user_fingerprint", "user_manager/delete_user_fingerprint", True)
|
107
|
+
RELABEL_USER_FINGERPRINT = ("user_manager/relabel_user_fingerprint", "user_manager/relabel_user_fingerprint", True)
|
108
|
+
IDENTIFY_USER_FINGERPRINT = ("user_manager/identify_user_fingerprint", "user_manager/identify_user_fingerprint", True)
|
104
109
|
|
105
110
|
|
106
111
|
class CosmosApiTypes(SysconType):
|
@@ -108,6 +113,8 @@ class CosmosApiTypes(SysconType):
|
|
108
113
|
|
109
114
|
|
110
115
|
class HmiApiTypes(SysconType):
|
116
|
+
IDENTIFY_FINGERPRINT = ("identify_fingerprint", "identify_fingerprint", True)
|
117
|
+
ADD_FINGERPRINT = ("add_fingerprint", "add_fingerprint", True)
|
111
118
|
GET_HMI_SYSTEM_INFORMATION = ("get_hmi_system_information", "get_hmi_system_information", True)
|
112
119
|
SET_HMI_SYSTEM_INFORMATION = ("set_hmi_system_information", "set_hmi_system_information", True)
|
113
120
|
REBOOT_HMI = ("reboot_hmi", "reboot_hmi", True)
|
plantstar_shared/syscon_json.py
CHANGED
@@ -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 psycopg2._range import DateTimeTZRange
|
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, DateTimeTZRange):
|
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 DateTimeTZRange(**dictionary)
|
112
112
|
else:
|
113
113
|
dictionary["__type__"] = type_name
|
114
114
|
return dictionary
|
{plantstar_shared-2.0.3.0.2.33.dist-info → plantstar_shared-2.0.3.0.2.34.dist-info}/METADATA
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.34
|
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: psycopg2>=2.9.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 @@ plantstar_shared/RawDataProcessorInterfaceActions.py,sha256=XnXuFW3BFSa89-VmhGAK
|
|
7
7
|
plantstar_shared/SysconType.py,sha256=6Ae9F0fBr0vpXAmP8fYqoWyFUGTEECtS55zAYMkeKlY,1581
|
8
8
|
plantstar_shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
plantstar_shared/add_size_onto_string_and_return.py,sha256=j7XSs5ubKKo5LCMVljzZudK2nw8CZh-zMSLT_t30aGg,385
|
10
|
-
plantstar_shared/api_types.py,sha256=
|
10
|
+
plantstar_shared/api_types.py,sha256=iPrGwMTeytdskE1BIZyOCf5UsucyqL-PMD8ApX4Owyw,6506
|
11
11
|
plantstar_shared/convert_bytes_to_object.py,sha256=YKf410EWUpeyyeBhJ3kl6PYIAcHJKKkhp8JkE-CuSv0,405
|
12
12
|
plantstar_shared/convert_object_to_bytes.py,sha256=vVS3dKkPynOJ2NV2LgLHdEOZflK_0hhdS-NuU_gcfHs,206
|
13
13
|
plantstar_shared/errors.py,sha256=qEUHh2d7pqZHoag6YJjnVfRWzWAzjuyGZH7stT_-Nzk,341
|
@@ -15,9 +15,9 @@ plantstar_shared/global_definitions.py,sha256=Axmhe5kCtXrI-1ckYNR3ata3X5OpEZ2L-m
|
|
15
15
|
plantstar_shared/is_valid_signed_string.py,sha256=5ZiEsPRz30J8yxN4A1dHq-hlz7VI9ru_fRH4A5JjuGQ,276
|
16
16
|
plantstar_shared/obtain_raw_data_processor_function_for_action_name.py,sha256=DYo307PraRRD8zGiSO6Fn03bZ4X9aDOYV9rwaRm8mXM,1134
|
17
17
|
plantstar_shared/syscon_image_field.py,sha256=GlTTudqFT5EsWM5sPRO0p5SDascX7gI1BEOeF1OG7Tw,441
|
18
|
-
plantstar_shared/syscon_json.py,sha256=
|
18
|
+
plantstar_shared/syscon_json.py,sha256=WLfn1sftcNe71Qz2lczr9REx6lAl7mDJCz9GBhEg3Ek,4545
|
19
19
|
plantstar_shared/tcp_socket_utils.py,sha256=Z8KY4Sc_SX4XDunPxeAk2IMfYZi5HenGE8SBU8U-KTk,6364
|
20
|
-
plantstar_shared-2.0.3.0.2.
|
21
|
-
plantstar_shared-2.0.3.0.2.
|
22
|
-
plantstar_shared-2.0.3.0.2.
|
23
|
-
plantstar_shared-2.0.3.0.2.
|
20
|
+
plantstar_shared-2.0.3.0.2.34.dist-info/METADATA,sha256=RJZ2ppbkEr1UoY23uyc4hKfpzOw5CsaV5z_qy68Ggk8,825
|
21
|
+
plantstar_shared-2.0.3.0.2.34.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
22
|
+
plantstar_shared-2.0.3.0.2.34.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
|
23
|
+
plantstar_shared-2.0.3.0.2.34.dist-info/RECORD,,
|
File without changes
|
{plantstar_shared-2.0.3.0.2.33.dist-info → plantstar_shared-2.0.3.0.2.34.dist-info}/top_level.txt
RENAMED
File without changes
|