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.
- {indexify-0.2.39 → indexify-0.2.40}/PKG-INFO +1 -1
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/graph.py +9 -1
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/graph_definition.py +1 -0
- {indexify-0.2.39 → indexify-0.2.40}/pyproject.toml +1 -1
- {indexify-0.2.39 → indexify-0.2.40}/LICENSE.txt +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/README.md +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/__init__.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/cli.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/common_util.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/data_loaders/__init__.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/data_loaders/local_directory_loader.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/data_loaders/url_loader.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/error.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/agent.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/api_objects.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/downloader.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/executor_tasks.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/function_worker.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/indexify_executor.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/runtime_probes.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/task_reporter.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/executor/task_store.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/data_objects.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/graph_validation.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/image.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/indexify_functions.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/local_cache.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/object_serializer.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/functions_sdk/pipeline.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/http_client.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/remote_graph.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/remote_pipeline.py +0 -0
- {indexify-0.2.39 → indexify-0.2.40}/indexify/settings.py +0 -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,
|
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,
|
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
|
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
|