soia-client 1.1.7__py3-none-any.whl → 1.1.9__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.
Potentially problematic release.
This version of soia-client might be problematic. Click here for more details.
- soia/_impl/arrays.py +1 -1
- soia/_impl/enums.py +1 -1
- soia/_impl/optionals.py +1 -1
- soia/_impl/primitives.py +3 -1
- soia/_impl/timestamp.py +1 -1
- soia/_impl/type_adapter.py +0 -1
- {soia_client-1.1.7.dist-info → soia_client-1.1.9.dist-info}/METADATA +1 -1
- {soia_client-1.1.7.dist-info → soia_client-1.1.9.dist-info}/RECORD +11 -11
- {soia_client-1.1.7.dist-info → soia_client-1.1.9.dist-info}/WHEEL +0 -0
- {soia_client-1.1.7.dist-info → soia_client-1.1.9.dist-info}/licenses/LICENSE +0 -0
- {soia_client-1.1.7.dist-info → soia_client-1.1.9.dist-info}/top_level.txt +0 -0
soia/_impl/arrays.py
CHANGED
|
@@ -8,7 +8,7 @@ from soia import _spec, reflection
|
|
|
8
8
|
from soia._impl.binary import decode_int64, encode_length_prefix
|
|
9
9
|
from soia._impl.function_maker import Any, Expr, ExprLike, Line, make_function
|
|
10
10
|
from soia._impl.keyed_items import Item, Key, KeyedItems
|
|
11
|
-
from soia._impl.type_adapter import
|
|
11
|
+
from soia._impl.type_adapter import ByteStream, T, TypeAdapter
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def get_array_adapter(
|
soia/_impl/enums.py
CHANGED
|
@@ -7,7 +7,7 @@ from soia import _spec, reflection
|
|
|
7
7
|
from soia._impl.binary import decode_int64, decode_unused, encode_int64
|
|
8
8
|
from soia._impl.function_maker import BodyBuilder, Expr, ExprLike, Line, make_function
|
|
9
9
|
from soia._impl.repr import repr_impl
|
|
10
|
-
from soia._impl.type_adapter import
|
|
10
|
+
from soia._impl.type_adapter import ByteStream, T, TypeAdapter
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class EnumAdapter(Generic[T], TypeAdapter[T]):
|
soia/_impl/optionals.py
CHANGED
|
@@ -6,7 +6,7 @@ from weakref import WeakValueDictionary
|
|
|
6
6
|
|
|
7
7
|
from soia import _spec, reflection
|
|
8
8
|
from soia._impl.function_maker import Expr, ExprLike
|
|
9
|
-
from soia._impl.type_adapter import
|
|
9
|
+
from soia._impl.type_adapter import ByteStream, T, TypeAdapter
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def get_optional_adapter(other_adapter: TypeAdapter[T]) -> TypeAdapter[T | None]:
|
soia/_impl/primitives.py
CHANGED
|
@@ -20,7 +20,7 @@ from soia._impl.binary import (
|
|
|
20
20
|
)
|
|
21
21
|
from soia._impl.function_maker import Expr, ExprLike
|
|
22
22
|
from soia._impl.timestamp import Timestamp
|
|
23
|
-
from soia._impl.type_adapter import ByteStream,
|
|
23
|
+
from soia._impl.type_adapter import ByteStream, T, TypeAdapter
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class AbstractPrimitiveAdapter(TypeAdapter[T]):
|
|
@@ -339,6 +339,8 @@ class _TimestampAdapter(AbstractPrimitiveAdapter[Timestamp]):
|
|
|
339
339
|
def _timestamp_from_json(json: Any) -> Timestamp:
|
|
340
340
|
if json.__class__ is int or isinstance(json, int):
|
|
341
341
|
return Timestamp(unix_millis=json)
|
|
342
|
+
elif isinstance(json, float):
|
|
343
|
+
return Timestamp(unix_millis=int(json))
|
|
342
344
|
else:
|
|
343
345
|
return Timestamp(unix_millis=json["unix_millis"])
|
|
344
346
|
|
soia/_impl/timestamp.py
CHANGED
|
@@ -146,7 +146,7 @@ class Timestamp:
|
|
|
146
146
|
dt = self.to_datetime_or_raise()
|
|
147
147
|
except Exception:
|
|
148
148
|
return ""
|
|
149
|
-
ret = dt.isoformat()
|
|
149
|
+
ret = dt.isoformat(timespec="milliseconds")
|
|
150
150
|
bad_suffix = "+00:00"
|
|
151
151
|
if ret.endswith(bad_suffix):
|
|
152
152
|
ret = ret[0 : -len(bad_suffix)] + "Z"
|
soia/_impl/type_adapter.py
CHANGED
|
@@ -3,26 +3,26 @@ soia/_module_initializer.py,sha256=JHZMcLqpYuWoC3cN4wBFFCHlHR60-LNvrjo_EMCFkAE,4
|
|
|
3
3
|
soia/_spec.py,sha256=Y5EHHQa6qNeJc29aaqGrFPnPFXxlL7TED9_AXUGBjf0,3663
|
|
4
4
|
soia/reflection.py,sha256=SEFHNlzmWZEOQwoVUTIxzjjnbkiKSwo2rbpSU-qXhC4,9375
|
|
5
5
|
soia/_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
soia/_impl/arrays.py,sha256=
|
|
6
|
+
soia/_impl/arrays.py,sha256=xX9xBvdk_-DcI9PiylRzszkf25uXk0SJOi8rRLcxYCw,7252
|
|
7
7
|
soia/_impl/binary.py,sha256=JK8W_xjVBHUmJoGrmMZX1EKWXXFpfnTbCmQGid4t5z8,8986
|
|
8
|
-
soia/_impl/enums.py,sha256=
|
|
8
|
+
soia/_impl/enums.py,sha256=qZCFQTOWuzNidkxCEXY71lJ1rT5-HHgzYxZIPD6_6LY,24968
|
|
9
9
|
soia/_impl/function_maker.py,sha256=MvCDv1WwzKGJzZbNCnJ_8-MP3m1xTIabumXA-9Ydd9M,5639
|
|
10
10
|
soia/_impl/keep.py,sha256=GDeMKKUcvUFXWJVzBPB9CuLkcQb93sWKvo0PcyKUBzg,370
|
|
11
11
|
soia/_impl/keyed_items.py,sha256=EoPrdeLJ8i7zCH-oW-7qOcyadyrzykB6lkrf3xRVmyk,337
|
|
12
12
|
soia/_impl/method.py,sha256=C6ygh-Li4zADxFR_gfeBTuPUzLjZ1XHCp0ZI4-uiRYs,455
|
|
13
13
|
soia/_impl/never.py,sha256=T7PHtIipuXlici4wa0yuJKrn9JgcT-ODC3QVCwsPprY,46
|
|
14
|
-
soia/_impl/optionals.py,sha256=
|
|
15
|
-
soia/_impl/primitives.py,sha256=
|
|
14
|
+
soia/_impl/optionals.py,sha256=nYEQcR_kGzVGSaIhatQmZyusdDfmgmB7a7cgL2OVeJA,3661
|
|
15
|
+
soia/_impl/primitives.py,sha256=K4dEWTs8NyXTsq_mPFPv4Uc82v4_f1MnTAj7N5GAWTw,13518
|
|
16
16
|
soia/_impl/repr.py,sha256=Z4sZKFrujdTD49aqB7q3bjXAb1f31I7uuChDBy5XvFg,1418
|
|
17
17
|
soia/_impl/serializer.py,sha256=UrOb5_VaPnRb0t-Nop7mu7j_yaK4fiRQzwMdKOUkmTQ,4627
|
|
18
18
|
soia/_impl/serializers.py,sha256=IL9jHHMo11pgrL1-crarOEElvTyV5YM6FTcgumjW6IU,2564
|
|
19
19
|
soia/_impl/service.py,sha256=4FZ7yY4EJTw4xFmfg3Ya9IfbI0s8qN97aIuqa8TifjM,15535
|
|
20
20
|
soia/_impl/service_client.py,sha256=FWfbFswbhMBw1snR9JLEpSJagY2ntZbFaVxTUGEDA5s,5303
|
|
21
21
|
soia/_impl/structs.py,sha256=7hHula-mJnKbYyl6crYvv1U5uxj5lcvLeyD1fCbJIrc,35945
|
|
22
|
-
soia/_impl/timestamp.py,sha256=
|
|
23
|
-
soia/_impl/type_adapter.py,sha256=
|
|
24
|
-
soia_client-1.1.
|
|
25
|
-
soia_client-1.1.
|
|
26
|
-
soia_client-1.1.
|
|
27
|
-
soia_client-1.1.
|
|
28
|
-
soia_client-1.1.
|
|
22
|
+
soia/_impl/timestamp.py,sha256=uiDQOVDC1ygA-15Yl_b7-pT_tsbHe1YrtB0kA5FFebY,5637
|
|
23
|
+
soia/_impl/type_adapter.py,sha256=OSZdXbeXANSEkKBb_rAgljB_2qG3HJUk6jK3nPjzRRY,2909
|
|
24
|
+
soia_client-1.1.9.dist-info/licenses/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
|
|
25
|
+
soia_client-1.1.9.dist-info/METADATA,sha256=3if242uqeFdB5lv9PzTqw3QXRHHramux32WGTSyhn8Q,2121
|
|
26
|
+
soia_client-1.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
soia_client-1.1.9.dist-info/top_level.txt,sha256=lsYG9JrvauFe1oIV5zvnwsS9hsx3ztwfK_937op9mxc,5
|
|
28
|
+
soia_client-1.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|