indexify 0.2.30__py3-none-any.whl → 0.2.31__py3-none-any.whl
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/executor/downloader.py +1 -1
- indexify/functions_sdk/graph.py +6 -6
- indexify/functions_sdk/indexify_functions.py +13 -9
- {indexify-0.2.30.dist-info → indexify-0.2.31.dist-info}/METADATA +1 -1
- {indexify-0.2.30.dist-info → indexify-0.2.31.dist-info}/RECORD +8 -8
- {indexify-0.2.30.dist-info → indexify-0.2.31.dist-info}/LICENSE.txt +0 -0
- {indexify-0.2.30.dist-info → indexify-0.2.31.dist-info}/WHEEL +0 -0
- {indexify-0.2.30.dist-info → indexify-0.2.31.dist-info}/entry_points.txt +0 -0
indexify/executor/downloader.py
CHANGED
@@ -120,7 +120,7 @@ class Downloader:
|
|
120
120
|
deserialized_content = serializer.deserialize(response.content)
|
121
121
|
|
122
122
|
if reducer_url:
|
123
|
-
init_value =
|
123
|
+
init_value = self._client.get(reducer_url)
|
124
124
|
try:
|
125
125
|
init_value.raise_for_status()
|
126
126
|
except httpx.HTTPStatusError as e:
|
indexify/functions_sdk/graph.py
CHANGED
@@ -101,9 +101,9 @@ class Graph:
|
|
101
101
|
return self
|
102
102
|
|
103
103
|
if issubclass(indexify_fn, IndexifyFunction) and indexify_fn.accumulate:
|
104
|
-
self.accumulator_zero_values[
|
105
|
-
indexify_fn.
|
106
|
-
|
104
|
+
self.accumulator_zero_values[indexify_fn.name] = (
|
105
|
+
indexify_fn.accumulate().model_dump()
|
106
|
+
)
|
107
107
|
|
108
108
|
self.nodes[indexify_fn.name] = indexify_fn
|
109
109
|
return self
|
@@ -244,9 +244,9 @@ class Graph:
|
|
244
244
|
queue = deque([(self._start_node, initial_input)])
|
245
245
|
while queue:
|
246
246
|
node_name, input = queue.popleft()
|
247
|
-
function_outputs: Union[
|
248
|
-
|
249
|
-
|
247
|
+
function_outputs: Union[FunctionCallResult, RouterCallResult] = (
|
248
|
+
self._invoke_fn(node_name, input)
|
249
|
+
)
|
250
250
|
self._log_local_exec_tracebacks(function_outputs)
|
251
251
|
if isinstance(function_outputs, RouterCallResult):
|
252
252
|
for edge in function_outputs.edges:
|
@@ -137,9 +137,11 @@ def indexify_router(
|
|
137
137
|
|
138
138
|
attrs = {
|
139
139
|
"name": name if name else fn.__name__,
|
140
|
-
"description":
|
141
|
-
|
142
|
-
|
140
|
+
"description": (
|
141
|
+
description
|
142
|
+
if description
|
143
|
+
else (fn.__doc__ or "").strip().replace("\n", "")
|
144
|
+
),
|
143
145
|
"image": image,
|
144
146
|
"placement_constraints": placement_constraints,
|
145
147
|
"encoder": encoder,
|
@@ -174,9 +176,11 @@ def indexify_function(
|
|
174
176
|
|
175
177
|
attrs = {
|
176
178
|
"name": name if name else fn.__name__,
|
177
|
-
"description":
|
178
|
-
|
179
|
-
|
179
|
+
"description": (
|
180
|
+
description
|
181
|
+
if description
|
182
|
+
else (fn.__doc__ or "").strip().replace("\n", "")
|
183
|
+
),
|
180
184
|
"image": image,
|
181
185
|
"placement_constraints": placement_constraints,
|
182
186
|
"accumulate": accumulate,
|
@@ -205,9 +209,9 @@ class IndexifyFunctionWrapper:
|
|
205
209
|
indexify_function: Union[IndexifyFunction, IndexifyRouter],
|
206
210
|
context: GraphInvocationContext,
|
207
211
|
):
|
208
|
-
self.indexify_function: Union[
|
209
|
-
|
210
|
-
|
212
|
+
self.indexify_function: Union[IndexifyFunction, IndexifyRouter] = (
|
213
|
+
indexify_function()
|
214
|
+
)
|
211
215
|
self.indexify_function._ctx = context
|
212
216
|
|
213
217
|
def get_output_model(self) -> Any:
|
@@ -7,7 +7,7 @@ indexify/data_loaders/url_loader.py,sha256=32SERljcq1Xsi4RdLz2dgyk2TER5pQPTtXl3g
|
|
7
7
|
indexify/error.py,sha256=qAWr8R6AxPkjsxHSzXTc8zqYnNO_AjOqqYEPsQvF1Zs,238
|
8
8
|
indexify/executor/agent.py,sha256=Zt-KU2yrOuFuHu8CiOg-QmAzkNU1idcv5UZ3YN2YSDU,18649
|
9
9
|
indexify/executor/api_objects.py,sha256=mvmwGbK4paJNQGFvbtNHMPpiH_LpVhrlRnCcrqS6HOQ,859
|
10
|
-
indexify/executor/downloader.py,sha256=
|
10
|
+
indexify/executor/downloader.py,sha256=wwkTdKRrDBHwKQOb_3uUb8pVl1tvg4QzOcYFnGQwNtA,4951
|
11
11
|
indexify/executor/executor_tasks.py,sha256=A0UIEZ5VaB6zSkFQG81UmTW0E57MTYhGlaXuAbRV8lQ,1884
|
12
12
|
indexify/executor/function_worker.py,sha256=wRW2-X9dNI80KhwTD1vD-pcyetsVKVs6vVdg7L7JjcQ,6462
|
13
13
|
indexify/executor/image_dependency_installer.py,sha256=ct8GmzgkaPi6NAblk68IJJWo5MecIUubELotmSrgoRQ,1759
|
@@ -16,11 +16,11 @@ indexify/executor/runtime_probes.py,sha256=mjw2_mGQ622wRT_39WPGGgPEZQTgtrf3-ICcU
|
|
16
16
|
indexify/executor/task_reporter.py,sha256=4unHxLUHedKwIoqO3e5YdDJpUe_pJng-vHReoqcPNNU,5141
|
17
17
|
indexify/executor/task_store.py,sha256=JlRlWwAm4YjFRkTNRx-6GsUcmOzcyvzb5Csa5XDpRTI,3982
|
18
18
|
indexify/functions_sdk/data_objects.py,sha256=wXbUa9hjU6rsXmmk19vQ5Kixf3FsI59VBWPNmHasAX0,854
|
19
|
-
indexify/functions_sdk/graph.py,sha256=
|
19
|
+
indexify/functions_sdk/graph.py,sha256=_XsHfkQaxTnBNVcDlq4KsnyZ0HQ_DZOAuwygDzpsCNo,11805
|
20
20
|
indexify/functions_sdk/graph_definition.py,sha256=UeC0PMchgZgo2T0Goog0SW1lIRdFf6ug4iHOS9ItRvI,1622
|
21
21
|
indexify/functions_sdk/graph_validation.py,sha256=mN2Fcp91GIwFZEQP6z_qGqt4LkLM70SnI7AWBi4CmKQ,2509
|
22
22
|
indexify/functions_sdk/image.py,sha256=QK0H6KxLWriB_z4M0kunKzzHdHxYLWL670RPYgYuf_8,1762
|
23
|
-
indexify/functions_sdk/indexify_functions.py,sha256=
|
23
|
+
indexify/functions_sdk/indexify_functions.py,sha256=cPUN7Zlgkwl6YUOuhgKogPdoBakQuf-VspQvU3IDmfU,10422
|
24
24
|
indexify/functions_sdk/local_cache.py,sha256=cNWF67zbhbTJe3g86hyLBy3Rqzs6dNvp2SjLazGZWvw,1348
|
25
25
|
indexify/functions_sdk/object_serializer.py,sha256=pOgUOWbRNRix9uZT0aQn0LTCnJCeMNGO1nAE0jAybmg,1546
|
26
26
|
indexify/functions_sdk/pipeline.py,sha256=KmxZE8eBFAQ4bbEcYURXXR26HSyoAT3O6iu9H38-OXE,974
|
@@ -28,8 +28,8 @@ indexify/http_client.py,sha256=5d70A6j2vJBn3OfUVjrQvnPml07p7fxOXWBUAUfAkiU,15915
|
|
28
28
|
indexify/remote_graph.py,sha256=CWfFxB0jlx8Zgp_xUjvjgrIwv-yNAfEbQwlXt3jfRNM,4976
|
29
29
|
indexify/remote_pipeline.py,sha256=oqx57rSPszNS3DToXO_nf-CKqkCZWptm1u_p3orV_gQ,790
|
30
30
|
indexify/settings.py,sha256=Ny59mzYI4gbXoK8hjx66a_men6ndbd1J1zCTcKOoyzg,50
|
31
|
-
indexify-0.2.
|
32
|
-
indexify-0.2.
|
33
|
-
indexify-0.2.
|
34
|
-
indexify-0.2.
|
35
|
-
indexify-0.2.
|
31
|
+
indexify-0.2.31.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
32
|
+
indexify-0.2.31.dist-info/METADATA,sha256=Jrl1EVAJoI1uYMYKaA1pofIao2iV8FhfytvxEHXZvCE,6202
|
33
|
+
indexify-0.2.31.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
34
|
+
indexify-0.2.31.dist-info/entry_points.txt,sha256=Pih7WV-XMpAzI5dEvROcpLr-ybVhd9Y-AtuzBKUdcDs,49
|
35
|
+
indexify-0.2.31.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|