modal 0.73.66__py3-none-any.whl → 0.73.67__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/client.pyi +2 -2
- modal/functions.pyi +6 -6
- modal/image.py +1 -40
- modal/image.pyi +0 -36
- {modal-0.73.66.dist-info → modal-0.73.67.dist-info}/METADATA +1 -1
- {modal-0.73.66.dist-info → modal-0.73.67.dist-info}/RECORD +11 -11
- modal_version/_version_generated.py +1 -1
- {modal-0.73.66.dist-info → modal-0.73.67.dist-info}/LICENSE +0 -0
- {modal-0.73.66.dist-info → modal-0.73.67.dist-info}/WHEEL +0 -0
- {modal-0.73.66.dist-info → modal-0.73.67.dist-info}/entry_points.txt +0 -0
- {modal-0.73.66.dist-info → modal-0.73.67.dist-info}/top_level.txt +0 -0
modal/client.pyi
CHANGED
@@ -27,7 +27,7 @@ class _Client:
|
|
27
27
|
_snapshotted: bool
|
28
28
|
|
29
29
|
def __init__(
|
30
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.
|
30
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.67"
|
31
31
|
): ...
|
32
32
|
def is_closed(self) -> bool: ...
|
33
33
|
@property
|
@@ -85,7 +85,7 @@ class Client:
|
|
85
85
|
_snapshotted: bool
|
86
86
|
|
87
87
|
def __init__(
|
88
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.
|
88
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.67"
|
89
89
|
): ...
|
90
90
|
def is_closed(self) -> bool: ...
|
91
91
|
@property
|
modal/functions.pyi
CHANGED
@@ -198,11 +198,11 @@ class Function(
|
|
198
198
|
|
199
199
|
_call_generator_nowait: ___call_generator_nowait_spec[typing_extensions.Self]
|
200
200
|
|
201
|
-
class __remote_spec(typing_extensions.Protocol[
|
201
|
+
class __remote_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
202
202
|
def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER: ...
|
203
203
|
async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER: ...
|
204
204
|
|
205
|
-
remote: __remote_spec[modal._functions.
|
205
|
+
remote: __remote_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
|
206
206
|
|
207
207
|
class __remote_gen_spec(typing_extensions.Protocol[SUPERSELF]):
|
208
208
|
def __call__(self, *args, **kwargs) -> typing.Generator[typing.Any, None, None]: ...
|
@@ -217,19 +217,19 @@ class Function(
|
|
217
217
|
self, *args: modal._functions.P.args, **kwargs: modal._functions.P.kwargs
|
218
218
|
) -> modal._functions.OriginalReturnType: ...
|
219
219
|
|
220
|
-
class ___experimental_spawn_spec(typing_extensions.Protocol[
|
220
|
+
class ___experimental_spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
221
221
|
def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
222
222
|
async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
223
223
|
|
224
224
|
_experimental_spawn: ___experimental_spawn_spec[
|
225
|
-
modal._functions.
|
225
|
+
modal._functions.ReturnType, modal._functions.P, typing_extensions.Self
|
226
226
|
]
|
227
227
|
|
228
|
-
class __spawn_spec(typing_extensions.Protocol[
|
228
|
+
class __spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
229
229
|
def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
230
230
|
async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
231
231
|
|
232
|
-
spawn: __spawn_spec[modal._functions.
|
232
|
+
spawn: __spawn_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
|
233
233
|
|
234
234
|
def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]: ...
|
235
235
|
|
modal/image.py
CHANGED
@@ -31,7 +31,7 @@ from ._resolver import Resolver
|
|
31
31
|
from ._serialization import serialize
|
32
32
|
from ._utils.async_utils import synchronize_api
|
33
33
|
from ._utils.blob_utils import MAX_OBJECT_SIZE_BYTES
|
34
|
-
from ._utils.deprecation import
|
34
|
+
from ._utils.deprecation import deprecation_warning
|
35
35
|
from ._utils.docker_utils import (
|
36
36
|
extract_copy_command_patterns,
|
37
37
|
find_dockerignore_file,
|
@@ -1413,45 +1413,6 @@ class _Image(_Object, type_prefix="im"):
|
|
1413
1413
|
force_build=self.force_build or force_build,
|
1414
1414
|
)
|
1415
1415
|
|
1416
|
-
@staticmethod
|
1417
|
-
def conda(python_version: Optional[str] = None, force_build: bool = False):
|
1418
|
-
"""mdmd:hidden"""
|
1419
|
-
message = (
|
1420
|
-
"`Image.conda` is deprecated."
|
1421
|
-
" Please use the faster and more reliable `Image.micromamba` constructor instead."
|
1422
|
-
)
|
1423
|
-
deprecation_error((2025, 5, 2), message)
|
1424
|
-
|
1425
|
-
def conda_install(
|
1426
|
-
self,
|
1427
|
-
*packages: Union[str, list[str]], # A list of Python packages, eg. ["numpy", "matplotlib>=3.5.0"]
|
1428
|
-
channels: list[str] = [], # A list of Conda channels, eg. ["conda-forge", "nvidia"]
|
1429
|
-
force_build: bool = False, # Ignore cached builds, similar to 'docker build --no-cache'
|
1430
|
-
secrets: Sequence[_Secret] = [],
|
1431
|
-
gpu: GPU_T = None,
|
1432
|
-
):
|
1433
|
-
"""mdmd:hidden"""
|
1434
|
-
message = (
|
1435
|
-
"`Image.conda_install` is deprecated."
|
1436
|
-
" Please use the faster and more reliable `Image.micromamba_install` instead."
|
1437
|
-
)
|
1438
|
-
deprecation_error((2025, 5, 2), message)
|
1439
|
-
|
1440
|
-
def conda_update_from_environment(
|
1441
|
-
self,
|
1442
|
-
environment_yml: str,
|
1443
|
-
force_build: bool = False, # Ignore cached builds, similar to 'docker build --no-cache'
|
1444
|
-
*,
|
1445
|
-
secrets: Sequence[_Secret] = [],
|
1446
|
-
gpu: GPU_T = None,
|
1447
|
-
):
|
1448
|
-
"""mdmd:hidden"""
|
1449
|
-
message = (
|
1450
|
-
"Image.conda_update_from_environment` is deprecated."
|
1451
|
-
" Please use the `Image.micromamba_install` method (with the `spec_file` parameter) instead."
|
1452
|
-
)
|
1453
|
-
deprecation_error((2025, 5, 2), message)
|
1454
|
-
|
1455
1416
|
@staticmethod
|
1456
1417
|
def micromamba(
|
1457
1418
|
python_version: Optional[str] = None,
|
modal/image.pyi
CHANGED
@@ -233,24 +233,6 @@ class _Image(modal._object._Object):
|
|
233
233
|
force_build: bool = False,
|
234
234
|
) -> _Image: ...
|
235
235
|
@staticmethod
|
236
|
-
def conda(python_version: typing.Optional[str] = None, force_build: bool = False): ...
|
237
|
-
def conda_install(
|
238
|
-
self,
|
239
|
-
*packages: typing.Union[str, list[str]],
|
240
|
-
channels: list[str] = [],
|
241
|
-
force_build: bool = False,
|
242
|
-
secrets: collections.abc.Sequence[modal.secret._Secret] = [],
|
243
|
-
gpu: typing.Union[None, str, modal.gpu._GPUConfig] = None,
|
244
|
-
): ...
|
245
|
-
def conda_update_from_environment(
|
246
|
-
self,
|
247
|
-
environment_yml: str,
|
248
|
-
force_build: bool = False,
|
249
|
-
*,
|
250
|
-
secrets: collections.abc.Sequence[modal.secret._Secret] = [],
|
251
|
-
gpu: typing.Union[None, str, modal.gpu._GPUConfig] = None,
|
252
|
-
): ...
|
253
|
-
@staticmethod
|
254
236
|
def micromamba(python_version: typing.Optional[str] = None, force_build: bool = False) -> _Image: ...
|
255
237
|
def micromamba_install(
|
256
238
|
self,
|
@@ -510,24 +492,6 @@ class Image(modal.object.Object):
|
|
510
492
|
force_build: bool = False,
|
511
493
|
) -> Image: ...
|
512
494
|
@staticmethod
|
513
|
-
def conda(python_version: typing.Optional[str] = None, force_build: bool = False): ...
|
514
|
-
def conda_install(
|
515
|
-
self,
|
516
|
-
*packages: typing.Union[str, list[str]],
|
517
|
-
channels: list[str] = [],
|
518
|
-
force_build: bool = False,
|
519
|
-
secrets: collections.abc.Sequence[modal.secret.Secret] = [],
|
520
|
-
gpu: typing.Union[None, str, modal.gpu._GPUConfig] = None,
|
521
|
-
): ...
|
522
|
-
def conda_update_from_environment(
|
523
|
-
self,
|
524
|
-
environment_yml: str,
|
525
|
-
force_build: bool = False,
|
526
|
-
*,
|
527
|
-
secrets: collections.abc.Sequence[modal.secret.Secret] = [],
|
528
|
-
gpu: typing.Union[None, str, modal.gpu._GPUConfig] = None,
|
529
|
-
): ...
|
530
|
-
@staticmethod
|
531
495
|
def micromamba(python_version: typing.Optional[str] = None, force_build: bool = False) -> Image: ...
|
532
496
|
def micromamba_install(
|
533
497
|
self,
|
@@ -22,7 +22,7 @@ modal/app.py,sha256=o5mHoHtn41nkvskX_ekJkyfG6MXwj5rqerRi_nnPd0w,44725
|
|
22
22
|
modal/app.pyi,sha256=0MMCgskIL4r3eq8oBcfm2lLyeao2gXjS3iXaIfmaJ-o,25959
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
24
24
|
modal/client.py,sha256=8SQawr7P1PNUCq1UmJMUQXG2jIo4Nmdcs311XqrNLRE,15276
|
25
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.pyi,sha256=A73KWG_FODq0ns8Rj8B25VY41cP0TOWqUjxMt37FpJg,7593
|
26
26
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
27
27
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
28
28
|
modal/cls.py,sha256=wztMTYkhJyW9iUVqx4_Gga4bJJpUiPgGsS6iacUqy-A,30001
|
@@ -41,10 +41,10 @@ modal/file_io.py,sha256=lcMs_E9Xfm0YX1t9U2wNIBPnqHRxmImqjLW1GHqVmyg,20945
|
|
41
41
|
modal/file_io.pyi,sha256=NTRft1tbPSWf9TlWVeZmTlgB5AZ_Zhu2srWIrWr7brk,9445
|
42
42
|
modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw,6497
|
43
43
|
modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
|
44
|
-
modal/functions.pyi,sha256=
|
44
|
+
modal/functions.pyi,sha256=24XrtwZ3yqfv68bWH8zXWUdu-q4NbekyX_4h515faLE,14247
|
45
45
|
modal/gpu.py,sha256=Kbhs_u49FaC2Zi0TjCdrpstpRtT5eZgecynmQi5IZVE,6752
|
46
|
-
modal/image.py,sha256=
|
47
|
-
modal/image.pyi,sha256=
|
46
|
+
modal/image.py,sha256=Bs1ND2WkLr9CBtj0heO7e3w9uGCnijKU8owiQSRQXv0,90200
|
47
|
+
modal/image.pyi,sha256=L7aZUOElSGtNHmFHz1RgKP1cG5paiXt_EzylrwBwzVk,25004
|
48
48
|
modal/io_streams.py,sha256=QkQiizKRzd5bnbKQsap31LJgBYlAnj4-XkV_50xPYX0,15079
|
49
49
|
modal/io_streams.pyi,sha256=bJ7ZLmSmJ0nKoa6r4FJpbqvzdUVa0lEe0Fa-MMpMezU,5071
|
50
50
|
modal/mount.py,sha256=JII0zTS1fPCcCbZgO18okkOuTDqYCxY1DIVa6i1E9cI,32196
|
@@ -168,10 +168,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
168
168
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
169
169
|
modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
|
170
170
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
171
|
-
modal_version/_version_generated.py,sha256=
|
172
|
-
modal-0.73.
|
173
|
-
modal-0.73.
|
174
|
-
modal-0.73.
|
175
|
-
modal-0.73.
|
176
|
-
modal-0.73.
|
177
|
-
modal-0.73.
|
171
|
+
modal_version/_version_generated.py,sha256=ynzFvSkZPxYjAUJ70yuwCaruZE93p8LxqS8lN864JEA,149
|
172
|
+
modal-0.73.67.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
173
|
+
modal-0.73.67.dist-info/METADATA,sha256=dynQP4EP-x-qL493ZTVocwqMT6mY3CllpMuLyOaHw6E,2452
|
174
|
+
modal-0.73.67.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
175
|
+
modal-0.73.67.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
176
|
+
modal-0.73.67.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
177
|
+
modal-0.73.67.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|