modal 0.73.66__py3-none-any.whl → 0.73.68__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/cli/run.py +4 -1
- modal/client.pyi +2 -2
- modal/image.py +1 -40
- modal/image.pyi +0 -36
- {modal-0.73.66.dist-info → modal-0.73.68.dist-info}/METADATA +1 -1
- {modal-0.73.66.dist-info → modal-0.73.68.dist-info}/RECORD +11 -11
- {modal-0.73.66.dist-info → modal-0.73.68.dist-info}/WHEEL +1 -1
- modal_version/_version_generated.py +1 -1
- {modal-0.73.66.dist-info → modal-0.73.68.dist-info}/LICENSE +0 -0
- {modal-0.73.66.dist-info → modal-0.73.68.dist-info}/entry_points.txt +0 -0
- {modal-0.73.66.dist-info → modal-0.73.68.dist-info}/top_level.txt +0 -0
modal/cli/run.py
CHANGED
@@ -526,6 +526,9 @@ def shell(
|
|
526
526
|
),
|
527
527
|
),
|
528
528
|
pty: Optional[bool] = typer.Option(default=None, help="Run the command using a PTY."),
|
529
|
+
use_module_mode: bool = typer.Option(
|
530
|
+
False, "-m", help="Interpret argument as a Python module path instead of a file/script path"
|
531
|
+
),
|
529
532
|
):
|
530
533
|
"""Run a command or interactive shell inside a Modal container.
|
531
534
|
|
@@ -584,7 +587,7 @@ def shell(
|
|
584
587
|
exec(container_id=container_or_function, command=shlex.split(cmd), pty=pty)
|
585
588
|
return
|
586
589
|
|
587
|
-
import_ref = parse_import_ref(container_or_function)
|
590
|
+
import_ref = parse_import_ref(container_or_function, use_module_mode=use_module_mode)
|
588
591
|
runnable, all_usable_commands = import_and_filter(
|
589
592
|
import_ref, base_cmd="modal shell", accept_local_entrypoint=False, accept_webhook=True
|
590
593
|
)
|
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.68"
|
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.68"
|
89
89
|
): ...
|
90
90
|
def is_closed(self) -> bool: ...
|
91
91
|
@property
|
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=urXjwbqHTUq64b3PhmHxFtydO-kMe7N7vx1YysLE_jM,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
|
@@ -43,8 +43,8 @@ modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw
|
|
43
43
|
modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
|
44
44
|
modal/functions.pyi,sha256=p9H14D_n2lAjeVvymu74wDWsL_BnpBrT0BunbAlwviw,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
|
@@ -128,7 +128,7 @@ modal/cli/launch.py,sha256=0_sBu6bv2xJEPWi-rbGS6Ri9ggnkWQvrGlgpYSUBMyY,3097
|
|
128
128
|
modal/cli/network_file_system.py,sha256=eq3JnwjbfFNsJodIyANHL06ByYc3BSavzdmu8C96cHA,7948
|
129
129
|
modal/cli/profile.py,sha256=0TYhgRSGUvQZ5LH9nkl6iZllEvAjDniES264dE57wOM,3201
|
130
130
|
modal/cli/queues.py,sha256=6gTu76dzBtPN5eQVsLrvQpuru5jI9ZCWK5Eh8J8XhaM,4498
|
131
|
-
modal/cli/run.py,sha256=
|
131
|
+
modal/cli/run.py,sha256=v1_yj6fJ-W8hPi3z5tHsogsXjtuvwjnjV-EjTIJqXr8,22947
|
132
132
|
modal/cli/secret.py,sha256=iDsaFUJBq3333ZBVzKPcqyey68w0j82PNddGhRgP2pA,4206
|
133
133
|
modal/cli/token.py,sha256=mxSgOWakXG6N71hQb1ko61XAR9ZGkTMZD-Txn7gmTac,1924
|
134
134
|
modal/cli/utils.py,sha256=hZmjyzcPjDnQSkLvycZD2LhGdcsfdZshs_rOU78EpvI,3717
|
@@ -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=89untDqyTQF-dPA7XFDuRgJXdHuzsVZI20e6kgXOay4,149
|
172
|
+
modal-0.73.68.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
173
|
+
modal-0.73.68.dist-info/METADATA,sha256=9StLWaAXtlVC_sGLwVKh6kCbR4XSGO21_YptQ6RXxGM,2452
|
174
|
+
modal-0.73.68.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
|
175
|
+
modal-0.73.68.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
176
|
+
modal-0.73.68.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
177
|
+
modal-0.73.68.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|