modal 0.70.5__py3-none-any.whl → 0.70.6__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 +1 -1
- modal/app.pyi +2 -2
- modal/client.pyi +2 -2
- modal/sandbox.py +1 -1
- {modal-0.70.5.dist-info → modal-0.70.6.dist-info}/METADATA +1 -1
- {modal-0.70.5.dist-info → modal-0.70.6.dist-info}/RECORD +11 -11
- modal_version/_version_generated.py +1 -1
- {modal-0.70.5.dist-info → modal-0.70.6.dist-info}/LICENSE +0 -0
- {modal-0.70.5.dist-info → modal-0.70.6.dist-info}/WHEEL +0 -0
- {modal-0.70.5.dist-info → modal-0.70.6.dist-info}/entry_points.txt +0 -0
- {modal-0.70.5.dist-info → modal-0.70.6.dist-info}/top_level.txt +0 -0
modal/app.py
CHANGED
@@ -1043,7 +1043,7 @@ class _App:
|
|
1043
1043
|
yield log.data
|
1044
1044
|
|
1045
1045
|
@classmethod
|
1046
|
-
def
|
1046
|
+
def _get_container_app(cls) -> Optional["_App"]:
|
1047
1047
|
"""Returns the `App` running inside a container.
|
1048
1048
|
|
1049
1049
|
This will return `None` outside of a Modal container."""
|
modal/app.pyi
CHANGED
@@ -266,7 +266,7 @@ class _App:
|
|
266
266
|
self, client: typing.Optional[modal.client._Client] = None
|
267
267
|
) -> collections.abc.AsyncGenerator[str, None]: ...
|
268
268
|
@classmethod
|
269
|
-
def
|
269
|
+
def _get_container_app(cls) -> typing.Optional[_App]: ...
|
270
270
|
@classmethod
|
271
271
|
def _reset_container_app(cls): ...
|
272
272
|
|
@@ -533,7 +533,7 @@ class App:
|
|
533
533
|
_logs: ___logs_spec
|
534
534
|
|
535
535
|
@classmethod
|
536
|
-
def
|
536
|
+
def _get_container_app(cls) -> typing.Optional[App]: ...
|
537
537
|
@classmethod
|
538
538
|
def _reset_container_app(cls): ...
|
539
539
|
|
modal/client.pyi
CHANGED
@@ -26,7 +26,7 @@ class _Client:
|
|
26
26
|
_stub: typing.Optional[modal_proto.api_grpc.ModalClientStub]
|
27
27
|
|
28
28
|
def __init__(
|
29
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.70.
|
29
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.70.6"
|
30
30
|
): ...
|
31
31
|
def is_closed(self) -> bool: ...
|
32
32
|
@property
|
@@ -81,7 +81,7 @@ class Client:
|
|
81
81
|
_stub: typing.Optional[modal_proto.api_grpc.ModalClientStub]
|
82
82
|
|
83
83
|
def __init__(
|
84
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.70.
|
84
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.70.6"
|
85
85
|
): ...
|
86
86
|
def is_closed(self) -> bool: ...
|
87
87
|
@property
|
modal/sandbox.py
CHANGED
@@ -276,7 +276,7 @@ class _Sandbox(_Object, type_prefix="sb"):
|
|
276
276
|
|
277
277
|
app_id = app.app_id
|
278
278
|
app_client = app._client
|
279
|
-
elif (container_app := _App.
|
279
|
+
elif (container_app := _App._get_container_app()) is not None:
|
280
280
|
app_id = container_app.app_id
|
281
281
|
app_client = container_app._client
|
282
282
|
else:
|
@@ -15,11 +15,11 @@ modal/_traceback.py,sha256=IZQzB3fVlUfMHOSyKUgw0H6qv4yHnpyq-XVCNZKfUdA,5023
|
|
15
15
|
modal/_tunnel.py,sha256=o-jJhS4vQ6-XswDhHcJWGMZZmD03SC0e9i8fEu1JTjo,6310
|
16
16
|
modal/_tunnel.pyi,sha256=JmmDYAy9F1FpgJ_hWx0xkom2nTOFQjn4mTPYlU3PFo4,1245
|
17
17
|
modal/_watcher.py,sha256=K6LYnlmSGQB4tWWI9JADv-tvSvQ1j522FwT71B51CX8,3584
|
18
|
-
modal/app.py,sha256=
|
19
|
-
modal/app.pyi,sha256=
|
18
|
+
modal/app.py,sha256=vEE0cK5QPF6_cdW5AJvcuWxz5KmeprHwBEtlDkVRHgE,45582
|
19
|
+
modal/app.pyi,sha256=Gx7gxjfQ70sxhbwfpx1VjvzEON-ZEMTJ_Vy8qt0oQvo,25302
|
20
20
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
21
21
|
modal/client.py,sha256=JAnd4-GCN093BwkvOFAK5a6iy5ycxofjpUncMxlrIMw,15253
|
22
|
-
modal/client.pyi,sha256=
|
22
|
+
modal/client.pyi,sha256=dkf2oz7yvXjXM1GCjpzmrYSkt1srdA-CCfkp1_-StAU,7278
|
23
23
|
modal/cloud_bucket_mount.py,sha256=G7T7jWLD0QkmrfKR75mSTwdUZ2xNfj7pkVqb4ipmxmI,5735
|
24
24
|
modal/cloud_bucket_mount.pyi,sha256=CEi7vrH3kDUF4LAy4qP6tfImy2UJuFRcRbsgRNM1wo8,1403
|
25
25
|
modal/cls.py,sha256=3hjb0JcoPjxKZNeK22f5rR43bZRBjoRI7_EMZXY7YrE,31172
|
@@ -63,7 +63,7 @@ modal/retries.py,sha256=HKR2Q9aNPWkMjQ5nwobqYTuZaSuw0a8lI2zrtY5IW98,5230
|
|
63
63
|
modal/runner.py,sha256=mhqgRdjD5cUDpBQIokiX7OCfVblpGV6aWmZ-WvWJgGg,24114
|
64
64
|
modal/runner.pyi,sha256=YmP4EOCNjjkwSIPi2Gl6hF_ji_ytkxz9dw3iB9KXaOI,5275
|
65
65
|
modal/running_app.py,sha256=v61mapYNV1-O-Uaho5EfJlryMLvIT9We0amUOSvSGx8,1188
|
66
|
-
modal/sandbox.py,sha256=
|
66
|
+
modal/sandbox.py,sha256=9ytERSasudhklfNgy9PSRNDKrBoTc1o69ZR8UEIZs3w,28120
|
67
67
|
modal/sandbox.pyi,sha256=k8_vHjN3oigxSCF13Cm2HfcSHuliGuSb8ryd3CGqwoA,19815
|
68
68
|
modal/schedule.py,sha256=0ZFpKs1bOxeo5n3HZjoL7OE2ktsb-_oGtq-WJEPO4tY,2615
|
69
69
|
modal/scheduler_placement.py,sha256=BAREdOY5HzHpzSBqt6jDVR6YC_jYfHMVqOzkyqQfngU,1235
|
@@ -165,10 +165,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
165
165
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
166
166
|
modal_version/__init__.py,sha256=N9Kh4DrM2649_INTJG4Lp3NKdux7cxGuiDtXpq_hkFY,470
|
167
167
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
168
|
-
modal_version/_version_generated.py,sha256=
|
169
|
-
modal-0.70.
|
170
|
-
modal-0.70.
|
171
|
-
modal-0.70.
|
172
|
-
modal-0.70.
|
173
|
-
modal-0.70.
|
174
|
-
modal-0.70.
|
168
|
+
modal_version/_version_generated.py,sha256=VAuEu-1E-HgCxNI7vf4LnDbJCgkDNwhFH-tBE25Ms10,148
|
169
|
+
modal-0.70.6.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
170
|
+
modal-0.70.6.dist-info/METADATA,sha256=aYEsgE7I1iq_Hhuc5wk0i9akRQ-IzuKIFoNa8I3ZVp4,2328
|
171
|
+
modal-0.70.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
172
|
+
modal-0.70.6.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
173
|
+
modal-0.70.6.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
|
174
|
+
modal-0.70.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|