indexify 0.2.5__py3-none-any.whl → 0.2.6__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/cli.py CHANGED
@@ -122,6 +122,11 @@ def server_dev_mode():
122
122
  def build_image(workflow_file_path: str, func_names: List[str]):
123
123
  globals_dict = {}
124
124
 
125
+ # Add the folder in the workflow file path to the current Python path
126
+ folder_path = os.path.dirname(workflow_file_path)
127
+ if folder_path not in sys.path:
128
+ sys.path.append(folder_path)
129
+
125
130
  try:
126
131
  exec(open(workflow_file_path).read(), globals_dict)
127
132
  except FileNotFoundError as e:
@@ -240,8 +245,10 @@ WORKDIR /app
240
245
  console.print(f"{docker_file}", style="magenta")
241
246
 
242
247
  client = docker.from_env()
248
+ image_name =f"{image._image_name}:{image._tag}"
243
249
  client.images.build(
244
250
  fileobj=io.BytesIO(docker_file.encode()),
245
- tag=f"{image._image_name}:{image._tag}",
251
+ tag=image_name,
246
252
  rm=True,
247
253
  )
254
+ print(f"built image: {image_name}")
@@ -143,6 +143,7 @@ class Graph:
143
143
  # Register each module with cloudpickle
144
144
  for module_name in modules:
145
145
  module = sys.modules[module_name]
146
+ print(f"registering module {module_name} with cloudpickle")
146
147
  cloudpickle.register_pickle_by_value(module)
147
148
 
148
149
 
@@ -6,7 +6,7 @@ class Image:
6
6
 
7
7
  self._base_image = "python:3.10.15-slim-bookworm"
8
8
 
9
- self._run_strs = []
9
+ self._run_strs = ["pip install indexify"]
10
10
 
11
11
  def name(self, image_name):
12
12
  self._image_name = image_name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: indexify
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -1,5 +1,5 @@
1
1
  indexify/__init__.py,sha256=qgMBKVrM_tI-tFeWpE8ktlC5rcExk05nbWyFqxxqeEU,496
2
- indexify/cli.py,sha256=mikNNHY58i2YL1oB_Me7I90JrSS6IPKGFENIklxJyYM,7311
2
+ indexify/cli.py,sha256=IK83AN8IZ0Dxgwv_azCjC7gqLYeKaGVu7b4EYs4vw5Q,7580
3
3
  indexify/data_loaders/__init__.py,sha256=Y5NEuseTcYAICRiweYw5wBQ2m2YplbsY21I7df-rdi4,1339
4
4
  indexify/data_loaders/local_directory_loader.py,sha256=fCrgj5drnW71ZUdDDvcB1-VJjIs1w6Q8sEW0HSGSAiA,1247
5
5
  indexify/data_loaders/url_loader.py,sha256=32SERljcq1Xsi4RdLz2dgyk2TER5pQPTtXl3gUzwHbY,1533
@@ -14,18 +14,18 @@ indexify/executor/runtime_probes.py,sha256=tvi8KCaQTVJqcyBJ4-jzEUAnQ01ZbMmjCxV2K
14
14
  indexify/executor/task_reporter.py,sha256=gnnse0v6rjjni8lNzeb-ZYq6iF2DgafKoT7dcGUZhQ4,3716
15
15
  indexify/executor/task_store.py,sha256=q8s2gImsFffWeXQR0mk1Xlo1Aj_2GfclNPjQ2EA_YBo,3984
16
16
  indexify/functions_sdk/data_objects.py,sha256=2LqAWJ_S2Xkp4OQTmhd3InVIrBs7juV41udnSQFMMfM,840
17
- indexify/functions_sdk/graph.py,sha256=a6lfhnGgnSXDigxRyh5O6o0FETQngM-EhPswKR4V_Q0,15239
17
+ indexify/functions_sdk/graph.py,sha256=ag_Hi0HuJwFn15RJG6anJaCzux2Gc8grTbEPQHReVYk,15311
18
18
  indexify/functions_sdk/graph_definition.py,sha256=EJfC0MdKEbFF1CBaU0htrveSlcAQJCH96DLSNfZ02V4,1178
19
19
  indexify/functions_sdk/graph_validation.py,sha256=XLHiC9PAtZungJLysU3hIUOPNDkO5TXUDZ_jiZ0H4hg,2508
20
- indexify/functions_sdk/image.py,sha256=X6nFgw6IKRfnxwjxKmZGkuzX6G4jG9YpPmz5FbsT39g,705
20
+ indexify/functions_sdk/image.py,sha256=l9DghfPTV1p0nlc1Fm1ZuJe21InJeBHUTULswmLmmx8,727
21
21
  indexify/functions_sdk/indexify_functions.py,sha256=xxgvnw0MQ_csIksunIdero8be0PR4mfwgoHp3UlkMZU,5851
22
22
  indexify/functions_sdk/local_cache.py,sha256=cNWF67zbhbTJe3g86hyLBy3Rqzs6dNvp2SjLazGZWvw,1348
23
23
  indexify/functions_sdk/object_serializer.py,sha256=Zz4GobW3ZamBBtFDF76QxU3TP6oJNdWnhsfKd0OUFoc,1660
24
24
  indexify/http_client.py,sha256=QwbLQAWVUZ95SZ-4XcnvtQRXyHtH2APqUj7nKh0C3DQ,12161
25
25
  indexify/remote_graph.py,sha256=zmcjuv1r6vTNueNtVnknR1aDdbDw5LPdM8y-EczXqmk,2948
26
26
  indexify/settings.py,sha256=LSaWZ0ADIVmUv6o6dHWRC3-Ry5uLbCw2sBSg1e_U7UM,99
27
- indexify-0.2.5.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
28
- indexify-0.2.5.dist-info/METADATA,sha256=xgOpgi_vOlEg8LcGLbW6sDrojG5U78M0zQLsGxk-7Hs,6129
29
- indexify-0.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- indexify-0.2.5.dist-info/entry_points.txt,sha256=Pih7WV-XMpAzI5dEvROcpLr-ybVhd9Y-AtuzBKUdcDs,49
31
- indexify-0.2.5.dist-info/RECORD,,
27
+ indexify-0.2.6.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
28
+ indexify-0.2.6.dist-info/METADATA,sha256=9tBE6KGjLKIGQ5O7KyuBc9dFEd-JXTj4cBwjMxGGRb8,6129
29
+ indexify-0.2.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ indexify-0.2.6.dist-info/entry_points.txt,sha256=Pih7WV-XMpAzI5dEvROcpLr-ybVhd9Y-AtuzBKUdcDs,49
31
+ indexify-0.2.6.dist-info/RECORD,,