cocoindex 0.2.15__cp311-abi3-manylinux_2_28_aarch64.whl → 0.2.16__cp311-abi3-manylinux_2_28_aarch64.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.
cocoindex/_engine.abi3.so CHANGED
Binary file
cocoindex/flow.py CHANGED
@@ -17,7 +17,6 @@ from typing import (
17
17
  Callable,
18
18
  Generic,
19
19
  Iterable,
20
- NamedTuple,
21
20
  Sequence,
22
21
  TypeVar,
23
22
  cast,
@@ -575,7 +574,8 @@ class FlowLiveUpdaterOptions:
575
574
  print_stats: bool = False
576
575
 
577
576
 
578
- class FlowUpdaterStatusUpdates(NamedTuple):
577
+ @dataclass
578
+ class FlowUpdaterStatusUpdates:
579
579
  """
580
580
  Status updates for a flow updater.
581
581
  """
@@ -1060,12 +1060,14 @@ def _get_data_slice_annotation_type(
1060
1060
  _transform_flow_name_builder = _NameBuilder()
1061
1061
 
1062
1062
 
1063
- class TransformFlowInfo(NamedTuple):
1063
+ @dataclass
1064
+ class TransformFlowInfo(Generic[T]):
1064
1065
  engine_flow: _engine.TransientFlow
1065
1066
  result_decoder: Callable[[Any], T]
1066
1067
 
1067
1068
 
1068
- class FlowArgInfo(NamedTuple):
1069
+ @dataclass
1070
+ class FlowArgInfo:
1069
1071
  name: str
1070
1072
  type_hint: Any
1071
1073
  encoder: Callable[[Any], Any]
@@ -1081,7 +1083,7 @@ class TransformFlow(Generic[T]):
1081
1083
  _args_info: list[FlowArgInfo]
1082
1084
 
1083
1085
  _lazy_lock: asyncio.Lock
1084
- _lazy_flow_info: TransformFlowInfo | None = None
1086
+ _lazy_flow_info: TransformFlowInfo[T] | None = None
1085
1087
 
1086
1088
  def __init__(
1087
1089
  self,
@@ -1123,12 +1125,12 @@ class TransformFlow(Generic[T]):
1123
1125
  return self._flow_fn(*args, **kwargs)
1124
1126
 
1125
1127
  @property
1126
- def _flow_info(self) -> TransformFlowInfo:
1128
+ def _flow_info(self) -> TransformFlowInfo[T]:
1127
1129
  if self._lazy_flow_info is not None:
1128
1130
  return self._lazy_flow_info
1129
1131
  return execution_context.run(self._flow_info_async())
1130
1132
 
1131
- async def _flow_info_async(self) -> TransformFlowInfo:
1133
+ async def _flow_info_async(self) -> TransformFlowInfo[T]:
1132
1134
  if self._lazy_flow_info is not None:
1133
1135
  return self._lazy_flow_info
1134
1136
  async with self._lazy_lock:
@@ -1136,7 +1138,7 @@ class TransformFlow(Generic[T]):
1136
1138
  self._lazy_flow_info = await self._build_flow_info_async()
1137
1139
  return self._lazy_flow_info
1138
1140
 
1139
- async def _build_flow_info_async(self) -> TransformFlowInfo:
1141
+ async def _build_flow_info_async(self) -> TransformFlowInfo[T]:
1140
1142
  flow_builder_state = _FlowBuilderState(self._flow_name)
1141
1143
  kwargs: dict[str, DataSlice[T]] = {}
1142
1144
  for arg_info in self._args_info:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cocoindex
3
- Version: 0.2.15
3
+ Version: 0.2.16
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: License :: OSI Approved :: Apache Software License
6
6
  Classifier: Operating System :: OS Independent
@@ -1,13 +1,13 @@
1
- cocoindex-0.2.15.dist-info/METADATA,sha256=3u9PxzHp4NgjbknLyCtuASJeXskfIpODzlIpSyaBcSI,13316
2
- cocoindex-0.2.15.dist-info/WHEEL,sha256=pQhpX1zEYym7lHVMSudaqVXS44siTf8XBrjmsFdZ39M,108
3
- cocoindex-0.2.15.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
4
- cocoindex-0.2.15.dist-info/licenses/THIRD_PARTY_NOTICES.html,sha256=LV2CtczxHQ5mN6Rj9TgnBa06dAxNPXZLXc0hMbco8tU,717769
1
+ cocoindex-0.2.16.dist-info/METADATA,sha256=PlewUqWQWLCwQG8HT1lJed7JG9nyvPH61KjhNB_3U7Q,13316
2
+ cocoindex-0.2.16.dist-info/WHEEL,sha256=pQhpX1zEYym7lHVMSudaqVXS44siTf8XBrjmsFdZ39M,108
3
+ cocoindex-0.2.16.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
4
+ cocoindex-0.2.16.dist-info/licenses/THIRD_PARTY_NOTICES.html,sha256=fxZXw4-pEtDeJix0DJuH2VrSsp0CTjsExMxjxU4p0ds,717769
5
5
  cocoindex/__init__.py,sha256=6qZWVkK4WZ01BIAg3CPh_bRRdA6Clk4d4Q6OnZ2jFa4,2630
6
- cocoindex/_engine.abi3.so,sha256=uvucoFVJowwyVhQQQAHMYlLou9ACo2uY1-c7L_qNO6c,71021384
6
+ cocoindex/_engine.abi3.so,sha256=CAvvH8VgfqSeXojst_XBcsQ6P8MbInPJyqV8eE2vJKk,71025848
7
7
  cocoindex/auth_registry.py,sha256=_DOIY42C79joLCY_XczHwP5uebkmSavweoAHc0L3hQY,1334
8
8
  cocoindex/cli.py,sha256=69X30bFTFdM7c0_6lgIHR19CeQ7UEkobEQYihy8IdOQ,21599
9
9
  cocoindex/convert.py,sha256=itkUBCriOk8fdauahHRqJ-L8mnHehNZsBe_FouN0K1Q,28695
10
- cocoindex/flow.py,sha256=Vk72dX_svfpinvsolQ11aw6YDqbzaafrAi7xrQHo1i0,39844
10
+ cocoindex/flow.py,sha256=oAFerPoarOS9XWVumYIzT4EHJyV3Pixv2mfqpCLHNOw,39849
11
11
  cocoindex/functions.py,sha256=V4ljBnCprvA25XlCVvNLwK5ergXiEcKU76jkOGC-X3A,12882
12
12
  cocoindex/index.py,sha256=tz5ilvmOp0BtroGehCQDqWK_pIX9m6ghkhcxsDVU8WE,982
13
13
  cocoindex/lib.py,sha256=0XheDF7fiFdqExpdqzU-VKun_Zll6DwZ5JfTm7u42aY,2284
@@ -34,4 +34,4 @@ cocoindex/typing.py,sha256=jZO3meRVL_RsFdhj8Sx6gWF-Z207VhoPtb1ZmqzAnH0,19974
34
34
  cocoindex/user_app_loader.py,sha256=bc3Af-gYRxJ9GpObtpjegZY855oQBCv5FGkrkWV2yGY,1873
35
35
  cocoindex/utils.py,sha256=hUhX-XV6XGCtJSEIpBOuDv6VvqImwPlgBxztBTw7u0U,598
36
36
  cocoindex/validation.py,sha256=PZnJoby4sLbsmPv9fOjOQXuefjfZ7gmtsiTGU8SH-tc,3090
37
- cocoindex-0.2.15.dist-info/RECORD,,
37
+ cocoindex-0.2.16.dist-info/RECORD,,
@@ -2428,7 +2428,7 @@ Software.
2428
2428
  <h3 id="Apache-2.0">Apache License 2.0</h3>
2429
2429
  <h4>Used by:</h4>
2430
2430
  <ul class="license-used-by">
2431
- <li><a href=" https://crates.io/crates/cocoindex ">cocoindex 0.2.15</a></li>
2431
+ <li><a href=" https://crates.io/crates/cocoindex ">cocoindex 0.2.16</a></li>
2432
2432
  <li><a href=" https://github.com/awesomized/crc-fast-rust ">crc-fast 1.3.0</a></li>
2433
2433
  <li><a href=" https://github.com/qdrant/rust-client ">qdrant-client 1.15.0</a></li>
2434
2434
  </ul>