indexify 0.2.41__tar.gz → 0.2.42__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.
- {indexify-0.2.41 → indexify-0.2.42}/PKG-INFO +1 -1
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/message_validator.py +6 -6
- {indexify-0.2.41 → indexify-0.2.42}/pyproject.toml +1 -1
- {indexify-0.2.41 → indexify-0.2.42}/LICENSE.txt +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/README.md +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/__init__.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/cli.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/common_util.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/data_loaders/__init__.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/data_loaders/local_directory_loader.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/data_loaders/url_loader.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/error.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/agent.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/api_objects.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/downloader.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/executor_tasks.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/function_executor.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/function_executor_factory.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/function_executor_map.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/process_function_executor.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/process_function_executor_factory.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_worker.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/runtime_probes.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/task_fetcher.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/task_reporter.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/executor/task_store.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/function_executor_service.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/handlers/run_function/function_inputs_loader.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/handlers/run_function/handler.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/handlers/run_function/request_validator.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/handlers/run_function/response_helper.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/initialize_request_validator.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/configuration.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor.proto +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor_pb2.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor_pb2.pyi +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor_pb2_grpc.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/server.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/data_objects.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/graph.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/graph_definition.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/graph_validation.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/image.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/indexify_functions.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/local_cache.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/object_serializer.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/functions_sdk/pipeline.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/http_client.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/logging.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/remote_graph.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/remote_pipeline.py +0 -0
- {indexify-0.2.41 → indexify-0.2.42}/indexify/settings.py +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
from typing import Any
|
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) ->
|
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) ->
|
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) ->
|
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
|
35
|
+
raise ValueError("oneof 'data' is required in SerializedObject")
|
36
36
|
if not serializedObject.HasField("content_type"):
|
37
|
-
raise ValueError("Field 'content_type' is
|
37
|
+
raise ValueError("Field 'content_type' is required in SerializedObject")
|
38
38
|
return self
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/function_executor.py
RENAMED
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/function_executor_factory.py
RENAMED
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/function_executor_map.py
RENAMED
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/executor/function_executor/process_function_executor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/handlers/run_function/handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/initialize_request_validator.py
RENAMED
File without changes
|
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor.proto
RENAMED
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor_pb2.py
RENAMED
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor_pb2.pyi
RENAMED
File without changes
|
{indexify-0.2.41 → indexify-0.2.42}/indexify/function_executor/proto/function_executor_pb2_grpc.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|