modal 0.67.0__py3-none-any.whl → 0.67.2__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.
- modal/app.py +13 -7
- modal/client.pyi +2 -2
- modal/image.py +1 -1
- {modal-0.67.0.dist-info → modal-0.67.2.dist-info}/METADATA +1 -1
- {modal-0.67.0.dist-info → modal-0.67.2.dist-info}/RECORD +10 -10
- modal_version/_version_generated.py +1 -1
- {modal-0.67.0.dist-info → modal-0.67.2.dist-info}/LICENSE +0 -0
- {modal-0.67.0.dist-info → modal-0.67.2.dist-info}/WHEEL +0 -0
- {modal-0.67.0.dist-info → modal-0.67.2.dist-info}/entry_points.txt +0 -0
- {modal-0.67.0.dist-info → modal-0.67.2.dist-info}/top_level.txt +0 -0
modal/app.py
CHANGED
@@ -492,13 +492,19 @@ class _App:
|
|
492
492
|
|
493
493
|
_App._container_app = running_app
|
494
494
|
|
495
|
-
# Hydrate objects on app
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
495
|
+
# Hydrate objects on app -- hydrating functions first so that when a class is being hydrated its
|
496
|
+
# corresponding class service function is already hydrated.
|
497
|
+
def hydrate_objects(objects_dict):
|
498
|
+
for tag, object_id in running_app.tag_to_object_id.items():
|
499
|
+
if tag in objects_dict:
|
500
|
+
obj = objects_dict[tag]
|
501
|
+
handle_metadata = running_app.object_handle_metadata[object_id]
|
502
|
+
obj._hydrate(object_id, client, handle_metadata)
|
503
|
+
|
504
|
+
# Hydrate function objects
|
505
|
+
hydrate_objects(self._functions)
|
506
|
+
# Hydrate class objects
|
507
|
+
hydrate_objects(self._classes)
|
502
508
|
|
503
509
|
@property
|
504
510
|
def registered_functions(self) -> Dict[str, _Function]:
|
modal/client.pyi
CHANGED
@@ -31,7 +31,7 @@ class _Client:
|
|
31
31
|
server_url: str,
|
32
32
|
client_type: int,
|
33
33
|
credentials: typing.Optional[typing.Tuple[str, str]],
|
34
|
-
version: str = "0.67.
|
34
|
+
version: str = "0.67.2",
|
35
35
|
): ...
|
36
36
|
def is_closed(self) -> bool: ...
|
37
37
|
@property
|
@@ -90,7 +90,7 @@ class Client:
|
|
90
90
|
server_url: str,
|
91
91
|
client_type: int,
|
92
92
|
credentials: typing.Optional[typing.Tuple[str, str]],
|
93
|
-
version: str = "0.67.
|
93
|
+
version: str = "0.67.2",
|
94
94
|
): ...
|
95
95
|
def is_closed(self) -> bool: ...
|
96
96
|
@property
|
modal/image.py
CHANGED
@@ -375,7 +375,7 @@ class _Image(_Object, type_prefix="im"):
|
|
375
375
|
"\n"
|
376
376
|
"Run `image.add_local_*` commands last in your image build to avoid rebuilding images with every local "
|
377
377
|
"file change. Modal will then add these files to containers on startup instead, saving build time.\n"
|
378
|
-
"If you need to run other build steps after adding local files, set `copy=True` to copy the files"
|
378
|
+
"If you need to run other build steps after adding local files, set `copy=True` to copy the files "
|
379
379
|
"directly into the image, at the expense of some added build time.\n"
|
380
380
|
"\n"
|
381
381
|
"Example:\n"
|
@@ -15,11 +15,11 @@ modal/_traceback.py,sha256=1yNp1Dqq4qRIQp8idDp5PEqjwH4eA8MNI0FhFkCOFgo,4408
|
|
15
15
|
modal/_tunnel.py,sha256=SVmQxGbV7dcLwyY9eB2PIWmXw8QQmcKg2ppTcRQgZrU,6283
|
16
16
|
modal/_tunnel.pyi,sha256=SA_Q0UGB-D9skFjv6CqlTnCEWU67a2xJxfwVdXtar3Y,1259
|
17
17
|
modal/_watcher.py,sha256=STlDe73R7IS33a_GMW2HnDc3hCDKLdsBfMxRpVh-flA,3581
|
18
|
-
modal/app.py,sha256=
|
18
|
+
modal/app.py,sha256=IBOZQBq6T3l-uzNCM4eFWLkWfcc7r3kQExbKpcN4qgA,45486
|
19
19
|
modal/app.pyi,sha256=sX2BXX_178lp8O_GvwZqsxDdxQi1j3DjNfthMvlMlJU,25273
|
20
20
|
modal/call_graph.py,sha256=l-Wi6vM8aosCdHTWegcCyGeVJGFdZ_fzlCmbRVPBXFI,2593
|
21
21
|
modal/client.py,sha256=4SpWb4n0nolITR36kADZl1tYLOg6avukmzZU56UQjCo,16385
|
22
|
-
modal/client.pyi,sha256=
|
22
|
+
modal/client.pyi,sha256=J-YoRBG7FfarQVb0ef5uEF1ajrs2Uj0hsRbp883vj4Y,7370
|
23
23
|
modal/cloud_bucket_mount.py,sha256=eWQhCtMIczpokjfTZEgNBCGO_s5ft46PqTSLfKBykq4,5748
|
24
24
|
modal/cloud_bucket_mount.pyi,sha256=tTF7M4FR9bTA30cFkz8qq3ZTlFL19NHU_36e_5GgAGA,1424
|
25
25
|
modal/cls.py,sha256=W3fGE7wdShFwCeWS1oT0LX2_SHBCXy04DgfVt4ggXZA,24692
|
@@ -36,7 +36,7 @@ modal/experimental.py,sha256=jFuNbwrNHos47viMB9q-cHJSvf2RDxDdoEcss9plaZE,2302
|
|
36
36
|
modal/functions.py,sha256=Z7nTQ51gMyjtSNQNEj55nEhoGWm2scHAFaShfOdPVMM,66939
|
37
37
|
modal/functions.pyi,sha256=5i5CTK6Eic-80o8NAPXHPujg_qpLj9d95eN71lpYSxE,24375
|
38
38
|
modal/gpu.py,sha256=r4rL6uH3UJIQthzYvfWauXNyh01WqCPtKZCmmSX1fd4,6881
|
39
|
-
modal/image.py,sha256=
|
39
|
+
modal/image.py,sha256=DoubwAD9ebYNIEO3GJWbtAaJl_ZRW4K0tpIJdS9CZAg,79551
|
40
40
|
modal/image.pyi,sha256=3rfae_E0KuNHqdi5j33nHXp_7P3tTkt7QKH5cXYczUc,24672
|
41
41
|
modal/io_streams.py,sha256=XUsNsxRzDrhkjyb2Hx0hugCoOEz266SHQF8wP-VgsfY,14582
|
42
42
|
modal/io_streams.pyi,sha256=WJmSI1WvZITUNBO7mnIuJgYdSKdbLaHk10V4GbttAVw,4452
|
@@ -159,10 +159,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
159
159
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
160
160
|
modal_version/__init__.py,sha256=3IY-AWLH55r35_mQXIaut0jrJvoPuf1NZJBQQfSbPuo,470
|
161
161
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
162
|
-
modal_version/_version_generated.py,sha256=
|
163
|
-
modal-0.67.
|
164
|
-
modal-0.67.
|
165
|
-
modal-0.67.
|
166
|
-
modal-0.67.
|
167
|
-
modal-0.67.
|
168
|
-
modal-0.67.
|
162
|
+
modal_version/_version_generated.py,sha256=451CqrClpRieFvjoNI8TMAv4Dc76gP1bpL73HXniLyE,148
|
163
|
+
modal-0.67.2.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
164
|
+
modal-0.67.2.dist-info/METADATA,sha256=ahyPKhZH91gENqNNzf4dsvmI6BNDmQviXZbn0_uRvDs,2328
|
165
|
+
modal-0.67.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
166
|
+
modal-0.67.2.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
167
|
+
modal-0.67.2.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
|
168
|
+
modal-0.67.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|