indexify 0.2.11__tar.gz → 0.2.12__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 (30) hide show
  1. {indexify-0.2.11 → indexify-0.2.12}/PKG-INFO +1 -1
  2. {indexify-0.2.11 → indexify-0.2.12}/indexify/cli.py +6 -17
  3. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/image.py +10 -2
  4. {indexify-0.2.11 → indexify-0.2.12}/pyproject.toml +1 -1
  5. {indexify-0.2.11 → indexify-0.2.12}/LICENSE.txt +0 -0
  6. {indexify-0.2.11 → indexify-0.2.12}/README.md +0 -0
  7. {indexify-0.2.11 → indexify-0.2.12}/indexify/__init__.py +0 -0
  8. {indexify-0.2.11 → indexify-0.2.12}/indexify/data_loaders/__init__.py +0 -0
  9. {indexify-0.2.11 → indexify-0.2.12}/indexify/data_loaders/local_directory_loader.py +0 -0
  10. {indexify-0.2.11 → indexify-0.2.12}/indexify/data_loaders/url_loader.py +0 -0
  11. {indexify-0.2.11 → indexify-0.2.12}/indexify/error.py +0 -0
  12. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/agent.py +0 -0
  13. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/api_objects.py +0 -0
  14. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/downloader.py +0 -0
  15. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/executor_tasks.py +0 -0
  16. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/function_worker.py +0 -0
  17. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/indexify_executor.py +0 -0
  18. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/runtime_probes.py +0 -0
  19. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/task_reporter.py +0 -0
  20. {indexify-0.2.11 → indexify-0.2.12}/indexify/executor/task_store.py +0 -0
  21. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/data_objects.py +0 -0
  22. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/graph.py +0 -0
  23. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/graph_definition.py +0 -0
  24. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/graph_validation.py +0 -0
  25. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/indexify_functions.py +0 -0
  26. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/local_cache.py +0 -0
  27. {indexify-0.2.11 → indexify-0.2.12}/indexify/functions_sdk/object_serializer.py +0 -0
  28. {indexify-0.2.11 → indexify-0.2.12}/indexify/http_client.py +0 -0
  29. {indexify-0.2.11 → indexify-0.2.12}/indexify/remote_graph.py +0 -0
  30. {indexify-0.2.11 → indexify-0.2.12}/indexify/settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: indexify
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: Python Client for Indexify
5
5
  Home-page: https://github.com/tensorlakeai/indexify
6
6
  License: Apache 2.0
@@ -120,7 +120,7 @@ def server_dev_mode():
120
120
  @app.command(help="Build image for function names")
121
121
  def build_image(
122
122
  workflow_file_path: str,
123
- func_names: List[str],
123
+ image_names: List[str],
124
124
  python_sdk_path: Optional[str] = None,
125
125
  ):
126
126
  globals_dict = {}
@@ -136,20 +136,9 @@ def build_image(
136
136
  raise Exception(
137
137
  f"Could not find workflow file to execute at: " f"`{workflow_file_path}`"
138
138
  )
139
-
140
- found_funcs = []
141
139
  for name, obj in globals_dict.items():
142
- for func_name in func_names:
143
- if name == func_name:
144
- found_funcs.append(name)
145
- _create_image_for_func(
146
- func_name=func_name, func_obj=obj, python_sdk_path=python_sdk_path
147
- )
148
-
149
- console.print(
150
- Text(f"Processed functions: ", style="cyan"),
151
- Text(f"{found_funcs}", style="green"),
152
- )
140
+ if type(obj) and isinstance(obj, Image) and obj._image_name in image_names:
141
+ _create_image(obj, python_sdk_path)
153
142
 
154
143
 
155
144
  @app.command(help="Build default image for indexify")
@@ -210,12 +199,12 @@ def executor(
210
199
  console.print(Text(f"Exiting gracefully: {ex}", style="bold yellow"))
211
200
 
212
201
 
213
- def _create_image_for_func(func_name, func_obj, python_sdk_path):
202
+ def _create_image(image: Image, python_sdk_path):
214
203
  console.print(
215
204
  Text("Creating container for ", style="cyan"),
216
- Text(f"`{func_name}`", style="cyan bold"),
205
+ Text(f"`{image._image_name}`", style="cyan bold"),
217
206
  )
218
- _build_image(image=func_obj.image, python_sdk_path=python_sdk_path)
207
+ _build_image(image=image, python_sdk_path=python_sdk_path)
219
208
 
220
209
 
221
210
  def _build_image(image: Image, python_sdk_path: Optional[str] = None):
@@ -4,7 +4,7 @@ class Image:
4
4
 
5
5
  self._tag = "latest"
6
6
 
7
- self._base_image = "python:3.10.15-slim-bookworm"
7
+ self._base_image = "python:3.11.10-slim-bookworm"
8
8
 
9
9
  self._run_strs = []
10
10
 
@@ -29,6 +29,14 @@ DEFAULT_IMAGE = (
29
29
  Image()
30
30
  .name("tensorlake/indexify-executor-default")
31
31
  .base_image("python:3.10.15-slim-bookworm")
32
- .tag("latest")
32
+ .tag("3:10")
33
+ .run("pip install indexify")
34
+ )
35
+
36
+ DEFAULT_IMAGE_3_11 = (
37
+ Image()
38
+ .name("tensorlake/indexify-executor-default")
39
+ .base_image("python:3.11.10-slim-bookworm")
40
+ .tag("3:11")
33
41
  .run("pip install indexify")
34
42
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "indexify"
3
- version = "0.2.11"
3
+ version = "0.2.12"
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