moose-lib 0.4.179__tar.gz → 0.4.181__tar.gz

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.
Files changed (24) hide show
  1. {moose_lib-0.4.179 → moose_lib-0.4.181}/PKG-INFO +1 -1
  2. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/data_models.py +5 -0
  3. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib.egg-info/PKG-INFO +1 -1
  4. {moose_lib-0.4.179 → moose_lib-0.4.181}/README.md +0 -0
  5. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/__init__.py +0 -0
  6. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/blocks.py +0 -0
  7. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/commons.py +0 -0
  8. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/dmv2-serializer.py +0 -0
  9. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/dmv2.py +0 -0
  10. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/internal.py +0 -0
  11. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/main.py +0 -0
  12. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/query_param.py +0 -0
  13. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/streaming/__init__.py +0 -0
  14. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/streaming/streaming_function_runner.py +0 -0
  15. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib/tasks.py +0 -0
  16. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib.egg-info/SOURCES.txt +0 -0
  17. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib.egg-info/dependency_links.txt +0 -0
  18. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib.egg-info/requires.txt +0 -0
  19. {moose_lib-0.4.179 → moose_lib-0.4.181}/moose_lib.egg-info/top_level.txt +0 -0
  20. {moose_lib-0.4.179 → moose_lib-0.4.181}/setup.cfg +0 -0
  21. {moose_lib-0.4.179 → moose_lib-0.4.181}/setup.py +0 -0
  22. {moose_lib-0.4.179 → moose_lib-0.4.181}/tests/__init__.py +0 -0
  23. {moose_lib-0.4.179 → moose_lib-0.4.181}/tests/conftest.py +0 -0
  24. {moose_lib-0.4.179 → moose_lib-0.4.181}/tests/test_moose.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moose_lib
3
- Version: 0.4.179
3
+ Version: 0.4.181
4
4
  Home-page: https://www.fiveonefour.com/moose
5
5
  Author: Fiveonefour Labs Inc.
6
6
  Author-email: support@fiveonefour.com
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moose_lib
3
- Version: 0.4.179
3
+ Version: 0.4.181
4
4
  Home-page: https://www.fiveonefour.com/moose
5
5
  Author: Fiveonefour Labs Inc.
6
6
  Author-email: support@fiveonefour.com
File without changes
File without changes
File without changes