plantstar-shared 2.0.3.0.2.31__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.
- plantstar_shared/syscon_json.py +3 -3
- {plantstar_shared-2.0.3.0.2.31.dist-info → plantstar_shared-2.0.3.0.2.32.dist-info}/METADATA +2 -2
- {plantstar_shared-2.0.3.0.2.31.dist-info → plantstar_shared-2.0.3.0.2.32.dist-info}/RECORD +5 -5
- {plantstar_shared-2.0.3.0.2.31.dist-info → plantstar_shared-2.0.3.0.2.32.dist-info}/WHEEL +1 -1
- {plantstar_shared-2.0.3.0.2.31.dist-info → plantstar_shared-2.0.3.0.2.32.dist-info}/top_level.txt +0 -0
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 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.31.dist-info → plantstar_shared-2.0.3.0.2.32.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.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
|
@@ -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=n3M4wV6IuGEPtHc7Hs0qbeB2W6GQwSBl8IF4R0Gz6xc,4552
|
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.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,,
|
{plantstar_shared-2.0.3.0.2.31.dist-info → plantstar_shared-2.0.3.0.2.32.dist-info}/top_level.txt
RENAMED
File without changes
|