indexify 0.2.18__tar.gz → 0.2.19__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 (32) hide show
  1. {indexify-0.2.18 → indexify-0.2.19}/PKG-INFO +1 -1
  2. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/agent.py +5 -2
  3. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/api_objects.py +1 -0
  4. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/task_reporter.py +3 -3
  5. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/graph.py +3 -3
  6. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/indexify_functions.py +3 -3
  7. {indexify-0.2.18 → indexify-0.2.19}/pyproject.toml +1 -1
  8. {indexify-0.2.18 → indexify-0.2.19}/LICENSE.txt +0 -0
  9. {indexify-0.2.18 → indexify-0.2.19}/README.md +0 -0
  10. {indexify-0.2.18 → indexify-0.2.19}/indexify/__init__.py +0 -0
  11. {indexify-0.2.18 → indexify-0.2.19}/indexify/cli.py +0 -0
  12. {indexify-0.2.18 → indexify-0.2.19}/indexify/data_loaders/__init__.py +0 -0
  13. {indexify-0.2.18 → indexify-0.2.19}/indexify/data_loaders/local_directory_loader.py +0 -0
  14. {indexify-0.2.18 → indexify-0.2.19}/indexify/data_loaders/url_loader.py +0 -0
  15. {indexify-0.2.18 → indexify-0.2.19}/indexify/error.py +0 -0
  16. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/downloader.py +0 -0
  17. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/executor_tasks.py +0 -0
  18. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/function_worker.py +0 -0
  19. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/indexify_executor.py +0 -0
  20. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/runtime_probes.py +0 -0
  21. {indexify-0.2.18 → indexify-0.2.19}/indexify/executor/task_store.py +0 -0
  22. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/data_objects.py +0 -0
  23. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/graph_definition.py +0 -0
  24. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/graph_validation.py +0 -0
  25. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/image.py +0 -0
  26. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/local_cache.py +0 -0
  27. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/object_serializer.py +0 -0
  28. {indexify-0.2.18 → indexify-0.2.19}/indexify/functions_sdk/pipeline.py +0 -0
  29. {indexify-0.2.18 → indexify-0.2.19}/indexify/http_client.py +0 -0
  30. {indexify-0.2.18 → indexify-0.2.19}/indexify/remote_graph.py +0 -0
  31. {indexify-0.2.18 → indexify-0.2.19}/indexify/remote_pipeline.py +0 -0
  32. {indexify-0.2.18 → indexify-0.2.19}/indexify/settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: indexify
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -2,6 +2,7 @@ import asyncio
2
2
  import json
3
3
  import ssl
4
4
  from concurrent.futures.process import BrokenProcessPool
5
+ from importlib.metadata import version
5
6
  from typing import Dict, List, Optional
6
7
 
7
8
  import httpx
@@ -115,9 +116,9 @@ class ExtractorAgent:
115
116
  )
116
117
  console.print(
117
118
  Panel(
118
- f"Reporting outcome of task {task_outcome.task.id}\n"
119
+ f"Reporting outcome of task: {task_outcome.task.id}, function: {task_outcome.task.compute_fn}\n"
119
120
  f"Outcome: {style_outcome}\n"
120
- f"Outputs: {len(task_outcome.outputs or [])} Router Output: {task_outcome.router_output}",
121
+ f"Num Fn Outputs: {len(task_outcome.outputs or [])} Router Output: {task_outcome.router_output}",
121
122
  title="Task Completion",
122
123
  border_style="info",
123
124
  )
@@ -314,8 +315,10 @@ class ExtractorAgent:
314
315
  # rewrite the image name
315
316
  pass
316
317
 
318
+ executor_version = version("indexify")
317
319
  data = ExecutorMetadata(
318
320
  id=self._executor_id,
321
+ executor_version=executor_version,
319
322
  addr="",
320
323
  image_name=runtime_probe.image_name,
321
324
  labels=runtime_probe.labels,
@@ -18,6 +18,7 @@ class Task(BaseModel):
18
18
 
19
19
  class ExecutorMetadata(BaseModel):
20
20
  id: str
21
+ executor_version: str
21
22
  addr: str
22
23
  image_name: str
23
24
  labels: Dict[str, Any]
@@ -28,11 +28,11 @@ class TaskReporter:
28
28
 
29
29
  def report_task_outcome(self, completed_task: CompletedTask):
30
30
  fn_outputs = []
31
- print(
32
- f"[bold]task-reporter[/bold] uploading output of size: {len(completed_task.outputs or [])}"
33
- )
34
31
  for output in completed_task.outputs or []:
35
32
  output_bytes = MsgPackSerializer.serialize(output)
33
+ print(
34
+ f"[bold]task-reporter[/bold] uploading output of size: {len(output_bytes)} bytes"
35
+ )
36
36
  fn_outputs.append(
37
37
  ("node_outputs", (nanoid.generate(), io.BytesIO(output_bytes)))
38
38
  )
@@ -96,9 +96,9 @@ class Graph:
96
96
  return self
97
97
 
98
98
  if issubclass(indexify_fn, IndexifyFunction) and indexify_fn.accumulate:
99
- self.accumulator_zero_values[
100
- indexify_fn.name
101
- ] = indexify_fn.accumulate().model_dump()
99
+ self.accumulator_zero_values[indexify_fn.name] = (
100
+ indexify_fn.accumulate().model_dump()
101
+ )
102
102
 
103
103
  self.nodes[indexify_fn.name] = indexify_fn
104
104
  return self
@@ -206,9 +206,9 @@ class RouterCallResult(BaseModel):
206
206
 
207
207
  class IndexifyFunctionWrapper:
208
208
  def __init__(self, indexify_function: Union[IndexifyFunction, IndexifyRouter]):
209
- self.indexify_function: Union[
210
- IndexifyFunction, IndexifyRouter
211
- ] = indexify_function()
209
+ self.indexify_function: Union[IndexifyFunction, IndexifyRouter] = (
210
+ indexify_function()
211
+ )
212
212
 
213
213
  def get_output_model(self) -> Any:
214
214
  if not isinstance(self.indexify_function, IndexifyFunction):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "indexify"
3
- version = "0.2.18"
3
+ version = "0.2.19"
4
4
  description = "Python Client for Indexify"
5
5
  authors = ["Tensorlake Inc. <support@tensorlake.ai>"]
6
6
  license = "Apache 2.0"
File without changes
File without changes
File without changes
File without changes