indexify 0.2.39__tar.gz → 0.2.40__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 (33) hide show
  1. {indexify-0.2.39 → indexify-0.2.40}/PKG-INFO +1 -1
  2. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/graph.py +9 -1
  3. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/graph_definition.py +1 -0
  4. {indexify-0.2.39 → indexify-0.2.40}/pyproject.toml +1 -1
  5. {indexify-0.2.39 → indexify-0.2.40}/LICENSE.txt +0 -0
  6. {indexify-0.2.39 → indexify-0.2.40}/README.md +0 -0
  7. {indexify-0.2.39 → indexify-0.2.40}/indexify/__init__.py +0 -0
  8. {indexify-0.2.39 → indexify-0.2.40}/indexify/cli.py +0 -0
  9. {indexify-0.2.39 → indexify-0.2.40}/indexify/common_util.py +0 -0
  10. {indexify-0.2.39 → indexify-0.2.40}/indexify/data_loaders/__init__.py +0 -0
  11. {indexify-0.2.39 → indexify-0.2.40}/indexify/data_loaders/local_directory_loader.py +0 -0
  12. {indexify-0.2.39 → indexify-0.2.40}/indexify/data_loaders/url_loader.py +0 -0
  13. {indexify-0.2.39 → indexify-0.2.40}/indexify/error.py +0 -0
  14. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/agent.py +0 -0
  15. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/api_objects.py +0 -0
  16. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/downloader.py +0 -0
  17. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/executor_tasks.py +0 -0
  18. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/function_worker.py +0 -0
  19. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/indexify_executor.py +0 -0
  20. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/runtime_probes.py +0 -0
  21. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/task_reporter.py +0 -0
  22. {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/task_store.py +0 -0
  23. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/data_objects.py +0 -0
  24. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/graph_validation.py +0 -0
  25. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/image.py +0 -0
  26. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/indexify_functions.py +0 -0
  27. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/local_cache.py +0 -0
  28. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/object_serializer.py +0 -0
  29. {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/pipeline.py +0 -0
  30. {indexify-0.2.39 → indexify-0.2.40}/indexify/http_client.py +0 -0
  31. {indexify-0.2.39 → indexify-0.2.40}/indexify/remote_graph.py +0 -0
  32. {indexify-0.2.39 → indexify-0.2.40}/indexify/remote_pipeline.py +0 -0
  33. {indexify-0.2.39 → indexify-0.2.40}/indexify/settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: indexify
3
- Version: 0.2.39
3
+ Version: 0.2.40
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -65,7 +65,11 @@ def is_pydantic_model_from_annotation(type_annotation):
65
65
 
66
66
  class Graph:
67
67
  def __init__(
68
- self, name: str, start_node: IndexifyFunction, description: Optional[str] = None
68
+ self,
69
+ name: str,
70
+ start_node: IndexifyFunction,
71
+ description: Optional[str] = None,
72
+ tags: Dict[str, str] = {},
69
73
  ):
70
74
  self.name = name
71
75
  self.description = description
@@ -73,6 +77,7 @@ class Graph:
73
77
  self.routers: Dict[str, List[str]] = defaultdict(list)
74
78
  self.edges: Dict[str, List[str]] = defaultdict(list)
75
79
  self.accumulator_zero_values: Dict[str, Any] = {}
80
+ self.tags = tags
76
81
 
77
82
  self.add_node(start_node)
78
83
  if issubclass(start_node, IndexifyRouter):
@@ -204,12 +209,15 @@ class Graph:
204
209
  )
205
210
  )
206
211
 
212
+ print("TAGS", self.tags)
213
+
207
214
  return ComputeGraphMetadata(
208
215
  name=self.name,
209
216
  description=self.description or "",
210
217
  start_node=NodeMetadata(compute_fn=start_node),
211
218
  nodes=metadata_nodes,
212
219
  edges=metadata_edges,
220
+ tags=self.tags,
213
221
  runtime_information=RuntimeInformation(
214
222
  major_version=sys.version_info.major,
215
223
  minor_version=sys.version_info.minor,
@@ -44,6 +44,7 @@ class ComputeGraphMetadata(BaseModel):
44
44
  name: str
45
45
  description: str
46
46
  start_node: NodeMetadata
47
+ tags: Dict[str, str] = {}
47
48
  nodes: Dict[str, NodeMetadata]
48
49
  edges: Dict[str, List[str]]
49
50
  accumulator_zero_values: Dict[str, bytes] = {}
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "indexify"
3
- version = "0.2.39"
3
+ version = "0.2.40"
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