modal 0.66.44__py3-none-any.whl → 0.66.45__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/launch.py +6 -4
- modal/client.pyi +2 -2
- {modal-0.66.44.dist-info → modal-0.66.45.dist-info}/METADATA +1 -1
- {modal-0.66.44.dist-info → modal-0.66.45.dist-info}/RECORD +9 -9
- modal_version/_version_generated.py +1 -1
- {modal-0.66.44.dist-info → modal-0.66.45.dist-info}/LICENSE +0 -0
- {modal-0.66.44.dist-info → modal-0.66.45.dist-info}/WHEEL +0 -0
- {modal-0.66.44.dist-info → modal-0.66.45.dist-info}/entry_points.txt +0 -0
- {modal-0.66.44.dist-info → modal-0.66.45.dist-info}/top_level.txt +0 -0
modal/cli/launch.py
CHANGED
@@ -25,7 +25,7 @@ launch_cli = Typer(
|
|
25
25
|
)
|
26
26
|
|
27
27
|
|
28
|
-
def _launch_program(name: str, filename: str, args: Dict[str, Any]) -> None:
|
28
|
+
def _launch_program(name: str, filename: str, detach: bool, args: Dict[str, Any]) -> None:
|
29
29
|
os.environ["MODAL_LAUNCH_ARGS"] = json.dumps(args)
|
30
30
|
|
31
31
|
program_path = str(Path(__file__).parent / "programs" / filename)
|
@@ -37,7 +37,7 @@ def _launch_program(name: str, filename: str, args: Dict[str, Any]) -> None:
|
|
37
37
|
func = entrypoint.info.raw_f
|
38
38
|
isasync = inspect.iscoroutinefunction(func)
|
39
39
|
with enable_output():
|
40
|
-
with run_app(app):
|
40
|
+
with run_app(app, detach=detach):
|
41
41
|
try:
|
42
42
|
if isasync:
|
43
43
|
asyncio.run(func())
|
@@ -57,6 +57,7 @@ def jupyter(
|
|
57
57
|
add_python: Optional[str] = "3.11",
|
58
58
|
mount: Optional[str] = None, # Create a `modal.Mount` from a local directory.
|
59
59
|
volume: Optional[str] = None, # Attach a persisted `modal.Volume` by name (creating if missing).
|
60
|
+
detach: bool = False, # Run the app in "detached" mode to persist after local client disconnects
|
60
61
|
):
|
61
62
|
args = {
|
62
63
|
"cpu": cpu,
|
@@ -68,7 +69,7 @@ def jupyter(
|
|
68
69
|
"mount": mount,
|
69
70
|
"volume": volume,
|
70
71
|
}
|
71
|
-
_launch_program("jupyter", "run_jupyter.py", args)
|
72
|
+
_launch_program("jupyter", "run_jupyter.py", detach, args)
|
72
73
|
|
73
74
|
|
74
75
|
@launch_cli.command(name="vscode", help="Start Visual Studio Code on Modal.")
|
@@ -79,6 +80,7 @@ def vscode(
|
|
79
80
|
timeout: int = 3600,
|
80
81
|
mount: Optional[str] = None, # Create a `modal.Mount` from a local directory.
|
81
82
|
volume: Optional[str] = None, # Attach a persisted `modal.Volume` by name (creating if missing).
|
83
|
+
detach: bool = False, # Run the app in "detached" mode to persist after local client disconnects
|
82
84
|
):
|
83
85
|
args = {
|
84
86
|
"cpu": cpu,
|
@@ -88,4 +90,4 @@ def vscode(
|
|
88
90
|
"mount": mount,
|
89
91
|
"volume": volume,
|
90
92
|
}
|
91
|
-
_launch_program("vscode", "vscode.py", args)
|
93
|
+
_launch_program("vscode", "vscode.py", detach, args)
|
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.66.
|
34
|
+
version: str = "0.66.45",
|
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.66.
|
93
|
+
version: str = "0.66.45",
|
94
94
|
): ...
|
95
95
|
def is_closed(self) -> bool: ...
|
96
96
|
@property
|
@@ -19,7 +19,7 @@ modal/app.py,sha256=QEBK8qYSrux36oi3iS3msBQmcUOS1r4s2nengzzynjQ,44658
|
|
19
19
|
modal/app.pyi,sha256=wHwBIDqkUb2CQzYVhxZafJ8xZ17TZ-8y-cRyOeZsEm0,25182
|
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=ff5IGJxJXwH0-8hhT2-74k9Md0GGmQlcmloXCqdI2bo,7372
|
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=apKnBOHKYEpBiMC8mRvHtCDJl1g0vP0tG1r8mUZ1yH0,24684
|
@@ -109,7 +109,7 @@ modal/cli/dict.py,sha256=lIEl6uxygFt3omC-oF6tHUxnFjVhy4d0InC_kZrlkvM,4454
|
|
109
109
|
modal/cli/entry_point.py,sha256=aaNxFAqZcmtSjwzkYIA_Ba9CkL4cL4_i2gy5VjoXxkM,4228
|
110
110
|
modal/cli/environment.py,sha256=eq8Rixbo8u-nJPvtGwW4-I1lXZPnevsFEv65WlSxFXY,4362
|
111
111
|
modal/cli/import_refs.py,sha256=0sYZLcgcnor_CECq-7yX3WBs1W55nz5y65sbysxxKzY,9267
|
112
|
-
modal/cli/launch.py,sha256=
|
112
|
+
modal/cli/launch.py,sha256=FgZ0L-e3dLl9vRJ_IVHfSRUzCbmdyS8-u_abC42tTDo,2941
|
113
113
|
modal/cli/network_file_system.py,sha256=p_o3wu8rh2tjHXJYrjaad__pD8hv93ypeDtfSY2fSEU,7527
|
114
114
|
modal/cli/profile.py,sha256=s4jCYHwriOorEFCKxeGZoSWX8rXTR_hDTNFZhOA565s,3109
|
115
115
|
modal/cli/queues.py,sha256=mJ44A319sPIrysH3A0HCIz4Or0jFey6miiuQKZoEQxo,4493
|
@@ -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=UnAuHBPuPSstqgdCOx0SBVdfhpeJnMlY_oxEbu44Izg,470
|
161
161
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
162
|
-
modal_version/_version_generated.py,sha256=
|
163
|
-
modal-0.66.
|
164
|
-
modal-0.66.
|
165
|
-
modal-0.66.
|
166
|
-
modal-0.66.
|
167
|
-
modal-0.66.
|
168
|
-
modal-0.66.
|
162
|
+
modal_version/_version_generated.py,sha256=UXFAH4OKxboSSDBrr37s5UWM3WNwZ-Q4bjX-tfF7Hj0,149
|
163
|
+
modal-0.66.45.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
164
|
+
modal-0.66.45.dist-info/METADATA,sha256=sxLqxkKCOBQaGBvhzaKx-RB1ybImrlmY0lJdeOJYGDQ,2329
|
165
|
+
modal-0.66.45.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
166
|
+
modal-0.66.45.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
167
|
+
modal-0.66.45.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
|
168
|
+
modal-0.66.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|