modal 0.66.29__py3-none-any.whl → 0.66.31__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 +11 -41
- modal/client.pyi +2 -2
- {modal-0.66.29.dist-info → modal-0.66.31.dist-info}/METADATA +1 -2
- {modal-0.66.29.dist-info → modal-0.66.31.dist-info}/RECORD +9 -9
- modal_version/_version_generated.py +1 -1
- {modal-0.66.29.dist-info → modal-0.66.31.dist-info}/LICENSE +0 -0
- {modal-0.66.29.dist-info → modal-0.66.31.dist-info}/WHEEL +0 -0
- {modal-0.66.29.dist-info → modal-0.66.31.dist-info}/entry_points.txt +0 -0
- {modal-0.66.29.dist-info → modal-0.66.31.dist-info}/top_level.txt +0 -0
modal/app.py
CHANGED
@@ -42,7 +42,6 @@ from .image import _Image
|
|
42
42
|
from .mount import _Mount
|
43
43
|
from .network_file_system import _NetworkFileSystem
|
44
44
|
from .object import _get_environment_name, _Object
|
45
|
-
from .output import _get_output_manager, enable_output
|
46
45
|
from .partial_function import (
|
47
46
|
PartialFunction,
|
48
47
|
_find_partial_methods_for_user_cls,
|
@@ -141,21 +140,6 @@ def f(x, y):
|
|
141
140
|
```
|
142
141
|
"""
|
143
142
|
|
144
|
-
_enable_output_warning = """\
|
145
|
-
Note that output will soon not be be printed with `app.run`.
|
146
|
-
|
147
|
-
If you want to print output, use `modal.enable_output()`:
|
148
|
-
|
149
|
-
```python
|
150
|
-
with modal.enable_output():
|
151
|
-
with app.run():
|
152
|
-
...
|
153
|
-
```
|
154
|
-
|
155
|
-
If you don't want output, and you want to to suppress this warning,
|
156
|
-
use `app.run(..., show_progress=False)`.
|
157
|
-
"""
|
158
|
-
|
159
143
|
|
160
144
|
class _App:
|
161
145
|
"""A Modal App is a group of functions and classes that are deployed together.
|
@@ -446,32 +430,18 @@ class _App:
|
|
446
430
|
|
447
431
|
# See Github discussion here: https://github.com/modal-labs/modal-client/pull/2030#issuecomment-2237266186
|
448
432
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
deprecation_warning((2024, 7, 18), _enable_output_warning)
|
459
|
-
auto_enable_output = True
|
460
|
-
else:
|
461
|
-
deprecation_warning((2024, 7, 18), "`show_progress=True` is deprecated and no longer needed.")
|
462
|
-
elif show_progress is False:
|
463
|
-
if _get_output_manager() is not None:
|
464
|
-
deprecation_warning(
|
465
|
-
(2024, 7, 18), "`show_progress=False` will have no effect since output is enabled."
|
466
|
-
)
|
433
|
+
if show_progress is True:
|
434
|
+
deprecation_error(
|
435
|
+
(2024, 11, 20),
|
436
|
+
"`show_progress=True` is no longer supported. Use `with modal.enable_output():` instead.",
|
437
|
+
)
|
438
|
+
elif show_progress is False:
|
439
|
+
# TODO(erikbern): remove this env check very shortly
|
440
|
+
if "MODAL_DISABLE_APP_RUN_OUTPUT_WARNING" not in os.environ:
|
441
|
+
deprecation_warning((2024, 11, 20), "`show_progress=False` is deprecated (and has no effect)")
|
467
442
|
|
468
|
-
|
469
|
-
|
470
|
-
async with _run_app(self, client=client, detach=detach, interactive=interactive):
|
471
|
-
yield self
|
472
|
-
else:
|
473
|
-
async with _run_app(self, client=client, detach=detach, interactive=interactive):
|
474
|
-
yield self
|
443
|
+
async with _run_app(self, client=client, detach=detach, interactive=interactive):
|
444
|
+
yield self
|
475
445
|
|
476
446
|
def _get_default_image(self):
|
477
447
|
if self._image:
|
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.31",
|
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.31",
|
94
94
|
): ...
|
95
95
|
def is_closed(self) -> bool: ...
|
96
96
|
@property
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: modal
|
3
|
-
Version: 0.66.
|
3
|
+
Version: 0.66.31
|
4
4
|
Summary: Python client library for Modal
|
5
5
|
Author: Modal Labs
|
6
6
|
Author-email: support@modal.com
|
@@ -15,7 +15,6 @@ Requires-Python: >=3.9
|
|
15
15
|
Description-Content-Type: text/markdown
|
16
16
|
License-File: LICENSE
|
17
17
|
Requires-Dist: aiohttp
|
18
|
-
Requires-Dist: aiostream (~=0.5.2)
|
19
18
|
Requires-Dist: certifi
|
20
19
|
Requires-Dist: click (>=8.1.0)
|
21
20
|
Requires-Dist: fastapi
|
@@ -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=PjOuSFANnfhIkdYil8OsHR_gx8WkvKBAZgkuuGqf6Lk,44810
|
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=kW8ASTyDjZccRuq6U9FDXzJSUlYm3H1QycvUcqBZyoI,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=Ci7EtMrLm1LExfjZ9K2IXyj-SV9Syq8dAbZCEfddcmY,24234
|
@@ -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=3t5W393KmW0O6zgAoDtHAiRRlYd_W356PMujj0etvXs,149
|
163
|
+
modal-0.66.31.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
164
|
+
modal-0.66.31.dist-info/METADATA,sha256=4XilHo-4CbdDOqRRz4b6hNbtg2_2E9XwXcOqDwqfDyo,2329
|
165
|
+
modal-0.66.31.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
166
|
+
modal-0.66.31.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
167
|
+
modal-0.66.31.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
|
168
|
+
modal-0.66.31.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|