indexify 0.2.11__py3-none-any.whl → 0.2.12__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 +6 -17
- indexify/functions_sdk/image.py +10 -2
- {indexify-0.2.11.dist-info → indexify-0.2.12.dist-info}/METADATA +1 -1
- {indexify-0.2.11.dist-info → indexify-0.2.12.dist-info}/RECORD +7 -7
- {indexify-0.2.11.dist-info → indexify-0.2.12.dist-info}/LICENSE.txt +0 -0
- {indexify-0.2.11.dist-info → indexify-0.2.12.dist-info}/WHEEL +0 -0
- {indexify-0.2.11.dist-info → indexify-0.2.12.dist-info}/entry_points.txt +0 -0
indexify/cli.py
CHANGED
@@ -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
|
-
|
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
|
-
|
143
|
-
|
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
|
202
|
+
def _create_image(image: Image, python_sdk_path):
|
214
203
|
console.print(
|
215
204
|
Text("Creating container for ", style="cyan"),
|
216
|
-
Text(f"`{
|
205
|
+
Text(f"`{image._image_name}`", style="cyan bold"),
|
217
206
|
)
|
218
|
-
_build_image(image=
|
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):
|
indexify/functions_sdk/image.py
CHANGED
@@ -4,7 +4,7 @@ class Image:
|
|
4
4
|
|
5
5
|
self._tag = "latest"
|
6
6
|
|
7
|
-
self._base_image = "python:3.10
|
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("
|
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,5 +1,5 @@
|
|
1
1
|
indexify/__init__.py,sha256=qgMBKVrM_tI-tFeWpE8ktlC5rcExk05nbWyFqxxqeEU,496
|
2
|
-
indexify/cli.py,sha256=
|
2
|
+
indexify/cli.py,sha256=SR4AWCxObIwHZzKb2iKMwtOQ3BcJUJIZ3SRiDvhv1sQ,8101
|
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
|
@@ -17,15 +17,15 @@ indexify/functions_sdk/data_objects.py,sha256=CQZMzYiV7l6dyzFkYquWQHqdte6JnC7XA3
|
|
17
17
|
indexify/functions_sdk/graph.py,sha256=t35z26jRCBgoz7fncdlAL7MVTOYjeJuoPpz-xI7WjBw,11827
|
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=
|
20
|
+
indexify/functions_sdk/image.py,sha256=0-QrvMZSFT0_RGb8aeUfSYpSlh6QQkssFHLibGP9ywI,900
|
21
21
|
indexify/functions_sdk/indexify_functions.py,sha256=oUssAADTt3byhz3Azl_GiYxV1BmhwuGE1CjmN-oiBpg,9575
|
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=0nB-2yQPoVfvTRGvRru_pW6SWjqeT8jtXJPm-MC71pg,13636
|
25
25
|
indexify/remote_graph.py,sha256=ILg6IY6EFgyvnfz1DSzicBZhqvPkg2-UUwgI6lxp6sA,3094
|
26
26
|
indexify/settings.py,sha256=LSaWZ0ADIVmUv6o6dHWRC3-Ry5uLbCw2sBSg1e_U7UM,99
|
27
|
-
indexify-0.2.
|
28
|
-
indexify-0.2.
|
29
|
-
indexify-0.2.
|
30
|
-
indexify-0.2.
|
31
|
-
indexify-0.2.
|
27
|
+
indexify-0.2.12.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
28
|
+
indexify-0.2.12.dist-info/METADATA,sha256=ryNoVKX3M3qm7MjZ_briF2E_BBF9kCx0eaKgDgmPpiA,6130
|
29
|
+
indexify-0.2.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
30
|
+
indexify-0.2.12.dist-info/entry_points.txt,sha256=Pih7WV-XMpAzI5dEvROcpLr-ybVhd9Y-AtuzBKUdcDs,49
|
31
|
+
indexify-0.2.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|