indexify 0.2.13__tar.gz → 0.2.14__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.13 → indexify-0.2.14}/PKG-INFO +4 -3
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/graph.py +5 -3
- {indexify-0.2.13 → indexify-0.2.14}/indexify/http_client.py +1 -1
- {indexify-0.2.13 → indexify-0.2.14}/pyproject.toml +3 -3
- {indexify-0.2.13 → indexify-0.2.14}/LICENSE.txt +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/README.md +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/__init__.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/cli.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/data_loaders/__init__.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/data_loaders/local_directory_loader.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/data_loaders/url_loader.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/error.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/agent.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/api_objects.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/downloader.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/executor_tasks.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/function_worker.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/indexify_executor.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/runtime_probes.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/task_reporter.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/executor/task_store.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/data_objects.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/graph_definition.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/graph_validation.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/image.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/indexify_functions.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/local_cache.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/object_serializer.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/functions_sdk/pipeline.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/remote_graph.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/remote_pipeline.py +0 -0
- {indexify-0.2.13 → indexify-0.2.14}/indexify/settings.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: indexify
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.14
|
4
4
|
Summary: Python Client for Indexify
|
5
5
|
Home-page: https://github.com/tensorlakeai/indexify
|
6
6
|
License: Apache 2.0
|
@@ -13,7 +13,8 @@ Classifier: Programming Language :: Python :: 3.9
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
16
|
-
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
17
|
+
Requires-Dist: cloudpickle (>=3.1.0,<4.0.0)
|
17
18
|
Requires-Dist: docker (>=7.1.0,<8.0.0)
|
18
19
|
Requires-Dist: httpx-sse (>=0.4.0,<0.5.0)
|
19
20
|
Requires-Dist: httpx[http2] (>=0,<1)
|
@@ -21,7 +22,7 @@ Requires-Dist: msgpack (>=1.1.0,<2.0.0)
|
|
21
22
|
Requires-Dist: nanoid (>=2.0.0,<3.0.0)
|
22
23
|
Requires-Dist: pydantic (>=2.9.2,<3.0.0)
|
23
24
|
Requires-Dist: pyyaml (>=6,<7)
|
24
|
-
Requires-Dist: rich (>=13,<14)
|
25
|
+
Requires-Dist: rich (>=13.9.2,<14.0.0)
|
25
26
|
Requires-Dist: typer (>=0.12.5,<0.13.0)
|
26
27
|
Project-URL: Repository, https://github.com/tensorlakeai/indexify
|
27
28
|
Description-Content-Type: text/markdown
|
@@ -153,7 +153,7 @@ class Graph:
|
|
153
153
|
start_node = self.nodes[self._start_node]
|
154
154
|
start_node = FunctionMetadata(
|
155
155
|
name=start_node.name,
|
156
|
-
fn_name=start_node.
|
156
|
+
fn_name=start_node.name,
|
157
157
|
description=start_node.description,
|
158
158
|
reducer=start_node.accumulate is not None,
|
159
159
|
image_name=start_node.image._image_name,
|
@@ -209,13 +209,15 @@ class Graph:
|
|
209
209
|
k: IndexifyData(payload=serializer.serialize(v))
|
210
210
|
}
|
211
211
|
self._results[input.id] = outputs
|
212
|
-
|
212
|
+
enable_cache = kwargs.get('enable_cache', True)
|
213
|
+
self._run(input, outputs,enable_cache)
|
213
214
|
return input.id
|
214
215
|
|
215
216
|
def _run(
|
216
217
|
self,
|
217
218
|
initial_input: IndexifyData,
|
218
219
|
outputs: Dict[str, List[bytes]],
|
220
|
+
enable_cache: bool
|
219
221
|
):
|
220
222
|
accumulator_values = self._accumulator_values[initial_input.id]
|
221
223
|
queue = deque([(self._start_node, initial_input)])
|
@@ -227,7 +229,7 @@ class Graph:
|
|
227
229
|
cached_output_bytes: Optional[bytes] = self._cache.get(
|
228
230
|
self.name, node_name, input_bytes
|
229
231
|
)
|
230
|
-
if cached_output_bytes is not None:
|
232
|
+
if cached_output_bytes is not None and enable_cache:
|
231
233
|
print(
|
232
234
|
f"ran {node_name}: num outputs: {len(cached_output_bytes)} (cache hit)"
|
233
235
|
)
|
@@ -79,7 +79,7 @@ class IndexifyClient:
|
|
79
79
|
status_code = str(response.status_code)
|
80
80
|
if status_code.startswith("4"):
|
81
81
|
raise ApiException(
|
82
|
-
"status code: " + status_code + "
|
82
|
+
"status code: " + status_code + " message: " + response.text
|
83
83
|
)
|
84
84
|
if status_code.startswith("5"):
|
85
85
|
raise ApiException(response.text)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "indexify"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.14"
|
4
4
|
description = "Python Client for Indexify"
|
5
5
|
authors = ["Tensorlake Inc. <support@tensorlake.ai>"]
|
6
6
|
license = "Apache 2.0"
|
@@ -16,8 +16,8 @@ python = "^3.9"
|
|
16
16
|
httpx = { version = "^0", extras = ["http2"] }
|
17
17
|
pyyaml = "^6"
|
18
18
|
pydantic = "^2.9.2"
|
19
|
-
cloudpickle = "^3"
|
20
|
-
rich = "^13"
|
19
|
+
cloudpickle = "^3.1.0"
|
20
|
+
rich = "^13.9.2"
|
21
21
|
nanoid = "^2.0.0"
|
22
22
|
docker = "^7.1.0"
|
23
23
|
msgpack= "^1.1.0"
|
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
|