moose-lib 0.4.179__py3-none-any.whl → 0.4.181__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.
- moose_lib/data_models.py +5 -0
- {moose_lib-0.4.179.dist-info → moose_lib-0.4.181.dist-info}/METADATA +1 -1
- {moose_lib-0.4.179.dist-info → moose_lib-0.4.181.dist-info}/RECORD +5 -5
- {moose_lib-0.4.179.dist-info → moose_lib-0.4.181.dist-info}/WHEEL +0 -0
- {moose_lib-0.4.179.dist-info → moose_lib-0.4.181.dist-info}/top_level.txt +0 -0
moose_lib/data_models.py
CHANGED
@@ -10,6 +10,7 @@ from typing import Literal, Tuple, Union, Any, get_origin, get_args, TypeAliasTy
|
|
10
10
|
GenericAlias
|
11
11
|
from pydantic import BaseModel, Field, PlainSerializer, GetCoreSchemaHandler, ConfigDict
|
12
12
|
from pydantic_core import CoreSchema, core_schema
|
13
|
+
import ipaddress
|
13
14
|
|
14
15
|
type Key[T: (str, int)] = T
|
15
16
|
type JWT[T] = T
|
@@ -173,6 +174,10 @@ def py_type_to_column_type(t: type, mds: list[Any]) -> Tuple[bool, list[Any], Da
|
|
173
174
|
data_type = "Date16"
|
174
175
|
else:
|
175
176
|
raise ValueError(f"Unsupported date size {size.size}")
|
177
|
+
elif t is ipaddress.IPv4Address:
|
178
|
+
data_type = "IPv4"
|
179
|
+
elif t is ipaddress.IPv6Address:
|
180
|
+
data_type = "IPv6"
|
176
181
|
elif get_origin(t) is list:
|
177
182
|
inner_optional, _, inner_type = py_type_to_column_type(get_args(t)[0], [])
|
178
183
|
data_type = ArrayType(element_type=inner_type, element_nullable=inner_optional)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
moose_lib/__init__.py,sha256=VYCFk9Nlakd24JPEj7h1cMIeqjp0eofnmE-3jCtPwXM,138
|
2
2
|
moose_lib/blocks.py,sha256=_wdvC2NC_Y3MMEnB71WTgWbeQ--zPNHk19xjToJW0C0,3185
|
3
3
|
moose_lib/commons.py,sha256=BV5X78MuOWHiZV9bsWSN69JIvzTNWUi-gnuMiAtaO8A,2489
|
4
|
-
moose_lib/data_models.py,sha256=
|
4
|
+
moose_lib/data_models.py,sha256=8KGSHkGclyySeL8XZnoUxe2KX0Yy6zmZ5IJrn-D8rWo,8444
|
5
5
|
moose_lib/dmv2-serializer.py,sha256=CL_Pvvg8tJOT8Qk6hywDNzY8MYGhMVdTOw8arZi3jng,49
|
6
6
|
moose_lib/dmv2.py,sha256=T2RrdlWuctPCMNv7jiYaSqpLKWqjHWaXq914BXFEIyM,31758
|
7
7
|
moose_lib/internal.py,sha256=gREvC3XxBFN4i7JL5uMj0riCu_JUO2YyiMZvCokg1ME,13101
|
@@ -13,7 +13,7 @@ moose_lib/streaming/streaming_function_runner.py,sha256=K53lyzGLawAgKgrK3jreJrB7
|
|
13
13
|
tests/__init__.py,sha256=0Gh4yzPkkC3TzBGKhenpMIxJcRhyrrCfxLSfpTZnPMQ,53
|
14
14
|
tests/conftest.py,sha256=ZVJNbnr4DwbcqkTmePW6U01zAzE6QD0kNAEZjPG1f4s,169
|
15
15
|
tests/test_moose.py,sha256=mBsx_OYWmL8ppDzL_7Bd7xR6qf_i3-pCIO3wm2iQNaA,2136
|
16
|
-
moose_lib-0.4.
|
17
|
-
moose_lib-0.4.
|
18
|
-
moose_lib-0.4.
|
19
|
-
moose_lib-0.4.
|
16
|
+
moose_lib-0.4.181.dist-info/METADATA,sha256=iuGCCEAcjYUjhN-cDNj3xZlS40X-ZjslbR0lygDG284,575
|
17
|
+
moose_lib-0.4.181.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
18
|
+
moose_lib-0.4.181.dist-info/top_level.txt,sha256=XEns2-4aCmGp2XjJAeEH9TAUcGONLnSLy6ycT9FSJh8,16
|
19
|
+
moose_lib-0.4.181.dist-info/RECORD,,
|
File without changes
|
File without changes
|