indexify 0.2.41__py3-none-any.whl → 0.2.42__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.
@@ -1,4 +1,4 @@
1
- from typing import Any, Self
1
+ from typing import Any
2
2
 
3
3
  from .function_executor_pb2 import SerializedObject
4
4
 
@@ -7,21 +7,21 @@ class MessageValidator:
7
7
  def __init__(self, message: Any):
8
8
  self._message = message
9
9
 
10
- def required_field(self, field_name: str) -> Self:
10
+ def required_field(self, field_name: str) -> "MessageValidator":
11
11
  if not self._message.HasField(field_name):
12
12
  raise ValueError(
13
13
  f"Field '{field_name}' is required in {type(self._message).__name__}"
14
14
  )
15
15
  return self
16
16
 
17
- def required_serialized_object(self, field_name: str) -> Self:
17
+ def required_serialized_object(self, field_name: str) -> "MessageValidator":
18
18
  """Validates the SerializedObject.
19
19
 
20
20
  Raises: ValueError: If the SerializedObject is invalid or not present."""
21
21
  self.required_field(field_name)
22
22
  return self.optional_serialized_object(field_name)
23
23
 
24
- def optional_serialized_object(self, field_name: str) -> Self:
24
+ def optional_serialized_object(self, field_name: str) -> "MessageValidator":
25
25
  """Validates the SerializedObject.
26
26
 
27
27
  Raises: ValueError: If the SerializedObject is invalid."""
@@ -32,7 +32,7 @@ class MessageValidator:
32
32
  if not serializedObject.HasField("string") and not serializedObject.HasField(
33
33
  "bytes"
34
34
  ):
35
- raise ValueError("oneof 'data' is requred in SerializedObject")
35
+ raise ValueError("oneof 'data' is required in SerializedObject")
36
36
  if not serializedObject.HasField("content_type"):
37
- raise ValueError("Field 'content_type' is requred in SerializedObject")
37
+ raise ValueError("Field 'content_type' is required in SerializedObject")
38
38
  return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: indexify
3
- Version: 0.2.41
3
+ Version: 0.2.42
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -30,7 +30,7 @@ indexify/function_executor/proto/function_executor.proto,sha256=PiftSSIDjHkxUbD7
30
30
  indexify/function_executor/proto/function_executor_pb2.py,sha256=tEDJJUywM6-j4dBwvBEHXnGCv9spGWVuhtHuiTDxw7I,4582
31
31
  indexify/function_executor/proto/function_executor_pb2.pyi,sha256=E-UnFIFbej-QPhaX1X4oYGeUW6_HuEi13qhCYkN1tzI,4182
32
32
  indexify/function_executor/proto/function_executor_pb2_grpc.py,sha256=OIErF2wYWaRI2TyF8EbWGjj5K9aD7OIJwAp1BRMQ0ic,6265
33
- indexify/function_executor/proto/message_validator.py,sha256=IkIHryanhFMRM6IU9F0nsGIlcEktXgcbomLFTWtPWYU,1418
33
+ indexify/function_executor/proto/message_validator.py,sha256=OKXPYgy5L9c-spnV9Zjv7PA_yxwzvykfhbYylYx8cwQ,1456
34
34
  indexify/function_executor/server.py,sha256=YEeKHR6qjNJyLFb8KNjcCYClBgVzdJNmKwdwmyJ-ybE,1136
35
35
  indexify/functions_sdk/data_objects.py,sha256=ZJ7B9b5OI7aieCWJFx18pV6tqScssIFtmth84i7nKTg,623
36
36
  indexify/functions_sdk/graph.py,sha256=WNaS5yGNKNLa55gH3LPIlp4fH9VpAsb7VAVkELozrZ0,13413
@@ -46,8 +46,8 @@ indexify/logging.py,sha256=_TLnWT0RzABvExwTixjdpuxoSNUev4zeNV0K1VlEUmA,1099
46
46
  indexify/remote_graph.py,sha256=OzBucU4buR5UdTViNJvh1RfnOTmYA34Uel5qXnRsQsA,5006
47
47
  indexify/remote_pipeline.py,sha256=oqx57rSPszNS3DToXO_nf-CKqkCZWptm1u_p3orV_gQ,790
48
48
  indexify/settings.py,sha256=Ny59mzYI4gbXoK8hjx66a_men6ndbd1J1zCTcKOoyzg,50
49
- indexify-0.2.41.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
- indexify-0.2.41.dist-info/METADATA,sha256=j9wkgdgqWKprrfh0sXEhs4yVTWnEs54M9bWWnVEFBmo,6271
51
- indexify-0.2.41.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
52
- indexify-0.2.41.dist-info/entry_points.txt,sha256=Pih7WV-XMpAzI5dEvROcpLr-ybVhd9Y-AtuzBKUdcDs,49
53
- indexify-0.2.41.dist-info/RECORD,,
49
+ indexify-0.2.42.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
+ indexify-0.2.42.dist-info/METADATA,sha256=FuvJ1XvFCLmUCXltSb_9kPGGi-99T_T_T7x3br78GDA,6271
51
+ indexify-0.2.42.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
52
+ indexify-0.2.42.dist-info/entry_points.txt,sha256=Pih7WV-XMpAzI5dEvROcpLr-ybVhd9Y-AtuzBKUdcDs,49
53
+ indexify-0.2.42.dist-info/RECORD,,