modal 1.1.5.dev81__py3-none-any.whl → 1.1.5.dev82__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.

Potentially problematic release.


This version of modal might be problematic. Click here for more details.

modal/app.py CHANGED
@@ -227,7 +227,12 @@ class _App:
227
227
 
228
228
  @property
229
229
  def is_interactive(self) -> bool:
230
- """Whether the current app for the app is running in interactive mode."""
230
+ """mdmd:hidden
231
+ Whether the current app for the app is running in interactive mode.
232
+
233
+ Note: this method will likely be deprecated in the future.
234
+
235
+ """
231
236
  # return self._name
232
237
  if self._running_app:
233
238
  return self._running_app.interactive
@@ -285,6 +290,11 @@ class _App:
285
290
  return app
286
291
 
287
292
  def set_description(self, description: str):
293
+ """mdmd:hidden
294
+ Set the description of the App before it starts running.
295
+
296
+ Note: we don't recommend using the method and may deprecate it in the future.
297
+ """
288
298
  self._description = description
289
299
 
290
300
  def _validate_blueprint_value(self, key: str, value: Any):
@@ -293,10 +303,18 @@ class _App:
293
303
 
294
304
  @property
295
305
  def image(self) -> _Image:
306
+ """mdmd:hidden
307
+ Retrieve the Image that will be used as the default for any Functions registered to the App.
308
+
309
+ Note: This property is only relevant in the build phase and won't be populated on a deployed
310
+ App that is retrieved via `modal.App.lookup`. It is likely to be deprecated in the future.
311
+
312
+ """
296
313
  return self._image
297
314
 
298
315
  @image.setter
299
316
  def image(self, value):
317
+ """mdmd:hidden"""
300
318
  self._image = value
301
319
 
302
320
  def _uncreate_all_objects(self):
@@ -515,37 +533,48 @@ class _App:
515
533
 
516
534
  @property
517
535
  def registered_functions(self) -> dict[str, _Function]:
518
- """All modal.Function objects registered on the app.
536
+ """mdmd:hidden
537
+ All modal.Function objects registered on the app.
519
538
 
520
539
  Note: this property is populated only during the build phase, and it is not
521
540
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
541
+ This method is likely to be deprecated in the future in favor of a different
542
+ approach for retrieving the layout of a deployed App.
522
543
  """
523
544
  return self._functions
524
545
 
525
546
  @property
526
547
  def registered_classes(self) -> dict[str, _Cls]:
527
- """All modal.Cls objects registered on the app.
548
+ """mdmd:hidden
549
+ All modal.Cls objects registered on the app.
528
550
 
529
551
  Note: this property is populated only during the build phase, and it is not
530
552
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
553
+ This method is likely to be deprecated in the future in favor of a different
554
+ approach for retrieving the layout of a deployed App.
531
555
  """
532
556
  return self._classes
533
557
 
534
558
  @property
535
559
  def registered_entrypoints(self) -> dict[str, _LocalEntrypoint]:
536
- """All local CLI entrypoints registered on the app.
560
+ """mdmd:hidden
561
+ All local CLI entrypoints registered on the app.
537
562
 
538
563
  Note: this property is populated only during the build phase, and it is not
539
564
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
565
+ This method is likely to be deprecated in the future.
540
566
  """
541
567
  return self._local_entrypoints
542
568
 
543
569
  @property
544
570
  def registered_web_endpoints(self) -> list[str]:
545
- """Names of web endpoint (ie. webhook) functions registered on the app.
571
+ """mdmd:hidden
572
+ Names of web endpoint (ie. webhook) functions registered on the app.
546
573
 
547
574
  Note: this property is populated only during the build phase, and it is not
548
575
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
576
+ This method is likely to be deprecated in the future in favor of a different
577
+ approach for retrieving the layout of a deployed App.
549
578
  """
550
579
  return self._web_endpoints
551
580
 
modal/app.pyi CHANGED
@@ -151,7 +151,11 @@ class _App:
151
151
 
152
152
  @property
153
153
  def is_interactive(self) -> bool:
154
- """Whether the current app for the app is running in interactive mode."""
154
+ """mdmd:hidden
155
+ Whether the current app for the app is running in interactive mode.
156
+
157
+ Note: this method will likely be deprecated in the future.
158
+ """
155
159
  ...
156
160
 
157
161
  @property
@@ -185,12 +189,30 @@ class _App:
185
189
  """
186
190
  ...
187
191
 
188
- def set_description(self, description: str): ...
192
+ def set_description(self, description: str):
193
+ """mdmd:hidden
194
+ Set the description of the App before it starts running.
195
+
196
+ Note: we don't recommend using the method and may deprecate it in the future.
197
+ """
198
+ ...
199
+
189
200
  def _validate_blueprint_value(self, key: str, value: typing.Any): ...
190
201
  @property
191
- def image(self) -> modal.image._Image: ...
202
+ def image(self) -> modal.image._Image:
203
+ """mdmd:hidden
204
+ Retrieve the Image that will be used as the default for any Functions registered to the App.
205
+
206
+ Note: This property is only relevant in the build phase and won't be populated on a deployed
207
+ App that is retrieved via `modal.App.lookup`. It is likely to be deprecated in the future.
208
+ """
209
+ ...
210
+
192
211
  @image.setter
193
- def image(self, value): ...
212
+ def image(self, value):
213
+ """mdmd:hidden"""
214
+ ...
215
+
194
216
  def _uncreate_all_objects(self): ...
195
217
  def _set_local_app(
196
218
  self, client: modal.client._Client, running_app: modal.running_app.RunningApp
@@ -301,37 +323,48 @@ class _App:
301
323
  def _init_container(self, client: modal.client._Client, running_app: modal.running_app.RunningApp): ...
302
324
  @property
303
325
  def registered_functions(self) -> dict[str, modal._functions._Function]:
304
- """All modal.Function objects registered on the app.
326
+ """mdmd:hidden
327
+ All modal.Function objects registered on the app.
305
328
 
306
329
  Note: this property is populated only during the build phase, and it is not
307
330
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
331
+ This method is likely to be deprecated in the future in favor of a different
332
+ approach for retrieving the layout of a deployed App.
308
333
  """
309
334
  ...
310
335
 
311
336
  @property
312
337
  def registered_classes(self) -> dict[str, modal.cls._Cls]:
313
- """All modal.Cls objects registered on the app.
338
+ """mdmd:hidden
339
+ All modal.Cls objects registered on the app.
314
340
 
315
341
  Note: this property is populated only during the build phase, and it is not
316
342
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
343
+ This method is likely to be deprecated in the future in favor of a different
344
+ approach for retrieving the layout of a deployed App.
317
345
  """
318
346
  ...
319
347
 
320
348
  @property
321
349
  def registered_entrypoints(self) -> dict[str, _LocalEntrypoint]:
322
- """All local CLI entrypoints registered on the app.
350
+ """mdmd:hidden
351
+ All local CLI entrypoints registered on the app.
323
352
 
324
353
  Note: this property is populated only during the build phase, and it is not
325
354
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
355
+ This method is likely to be deprecated in the future.
326
356
  """
327
357
  ...
328
358
 
329
359
  @property
330
360
  def registered_web_endpoints(self) -> list[str]:
331
- """Names of web endpoint (ie. webhook) functions registered on the app.
361
+ """mdmd:hidden
362
+ Names of web endpoint (ie. webhook) functions registered on the app.
332
363
 
333
364
  Note: this property is populated only during the build phase, and it is not
334
365
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
366
+ This method is likely to be deprecated in the future in favor of a different
367
+ approach for retrieving the layout of a deployed App.
335
368
  """
336
369
  ...
337
370
 
@@ -638,7 +671,11 @@ class App:
638
671
 
639
672
  @property
640
673
  def is_interactive(self) -> bool:
641
- """Whether the current app for the app is running in interactive mode."""
674
+ """mdmd:hidden
675
+ Whether the current app for the app is running in interactive mode.
676
+
677
+ Note: this method will likely be deprecated in the future.
678
+ """
642
679
  ...
643
680
 
644
681
  @property
@@ -698,12 +735,30 @@ class App:
698
735
 
699
736
  lookup: __lookup_spec
700
737
 
701
- def set_description(self, description: str): ...
738
+ def set_description(self, description: str):
739
+ """mdmd:hidden
740
+ Set the description of the App before it starts running.
741
+
742
+ Note: we don't recommend using the method and may deprecate it in the future.
743
+ """
744
+ ...
745
+
702
746
  def _validate_blueprint_value(self, key: str, value: typing.Any): ...
703
747
  @property
704
- def image(self) -> modal.image.Image: ...
748
+ def image(self) -> modal.image.Image:
749
+ """mdmd:hidden
750
+ Retrieve the Image that will be used as the default for any Functions registered to the App.
751
+
752
+ Note: This property is only relevant in the build phase and won't be populated on a deployed
753
+ App that is retrieved via `modal.App.lookup`. It is likely to be deprecated in the future.
754
+ """
755
+ ...
756
+
705
757
  @image.setter
706
- def image(self, value): ...
758
+ def image(self, value):
759
+ """mdmd:hidden"""
760
+ ...
761
+
707
762
  def _uncreate_all_objects(self): ...
708
763
 
709
764
  class ___set_local_app_spec(typing_extensions.Protocol[SUPERSELF]):
@@ -931,37 +986,48 @@ class App:
931
986
  def _init_container(self, client: modal.client.Client, running_app: modal.running_app.RunningApp): ...
932
987
  @property
933
988
  def registered_functions(self) -> dict[str, modal.functions.Function]:
934
- """All modal.Function objects registered on the app.
989
+ """mdmd:hidden
990
+ All modal.Function objects registered on the app.
935
991
 
936
992
  Note: this property is populated only during the build phase, and it is not
937
993
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
994
+ This method is likely to be deprecated in the future in favor of a different
995
+ approach for retrieving the layout of a deployed App.
938
996
  """
939
997
  ...
940
998
 
941
999
  @property
942
1000
  def registered_classes(self) -> dict[str, modal.cls.Cls]:
943
- """All modal.Cls objects registered on the app.
1001
+ """mdmd:hidden
1002
+ All modal.Cls objects registered on the app.
944
1003
 
945
1004
  Note: this property is populated only during the build phase, and it is not
946
1005
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
1006
+ This method is likely to be deprecated in the future in favor of a different
1007
+ approach for retrieving the layout of a deployed App.
947
1008
  """
948
1009
  ...
949
1010
 
950
1011
  @property
951
1012
  def registered_entrypoints(self) -> dict[str, LocalEntrypoint]:
952
- """All local CLI entrypoints registered on the app.
1013
+ """mdmd:hidden
1014
+ All local CLI entrypoints registered on the app.
953
1015
 
954
1016
  Note: this property is populated only during the build phase, and it is not
955
1017
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
1018
+ This method is likely to be deprecated in the future.
956
1019
  """
957
1020
  ...
958
1021
 
959
1022
  @property
960
1023
  def registered_web_endpoints(self) -> list[str]:
961
- """Names of web endpoint (ie. webhook) functions registered on the app.
1024
+ """mdmd:hidden
1025
+ Names of web endpoint (ie. webhook) functions registered on the app.
962
1026
 
963
1027
  Note: this property is populated only during the build phase, and it is not
964
1028
  expected to work when a deplyoed App has been retrieved via `modal.App.lookup`.
1029
+ This method is likely to be deprecated in the future in favor of a different
1030
+ approach for retrieving the layout of a deployed App.
965
1031
  """
966
1032
  ...
967
1033
 
modal/client.pyi CHANGED
@@ -33,7 +33,7 @@ class _Client:
33
33
  server_url: str,
34
34
  client_type: int,
35
35
  credentials: typing.Optional[tuple[str, str]],
36
- version: str = "1.1.5.dev81",
36
+ version: str = "1.1.5.dev82",
37
37
  ):
38
38
  """mdmd:hidden
39
39
  The Modal client object is not intended to be instantiated directly by users.
@@ -164,7 +164,7 @@ class Client:
164
164
  server_url: str,
165
165
  client_type: int,
166
166
  credentials: typing.Optional[tuple[str, str]],
167
- version: str = "1.1.5.dev81",
167
+ version: str = "1.1.5.dev82",
168
168
  ):
169
169
  """mdmd:hidden
170
170
  The Modal client object is not intended to be instantiated directly by users.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.1.5.dev81
3
+ Version: 1.1.5.dev82
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -18,11 +18,11 @@ modal/_tunnel.py,sha256=zTBxBiuH1O22tS1OliAJdIsSmaZS8PlnifS_6S5z-mk,6320
18
18
  modal/_tunnel.pyi,sha256=rvC7USR2BcKkbZIeCJXwf7-UfGE-LPLjKsGNiK7Lxa4,13366
19
19
  modal/_type_manager.py,sha256=DWjgmjYJuOagw2erin506UUbG2H5UzZCFEekS-7hmfA,9087
20
20
  modal/_watcher.py,sha256=K6LYnlmSGQB4tWWI9JADv-tvSvQ1j522FwT71B51CX8,3584
21
- modal/app.py,sha256=0yiON6FWi3fP9dD4B06DfxMLvp8tyE3ISPq0joX-HuE,51222
22
- modal/app.pyi,sha256=bJyY4iOdG7M3b1-viRM-VHC4JyJuR3IoBgjqf9UjkFg,47204
21
+ modal/app.py,sha256=W-24GIIBTKBqBWF6n4aB_heUhCb8d4KJfGF8oWteZn8,52454
22
+ modal/app.pyi,sha256=6wlYK9nNp0GuHXyUxGmcZ6J92EjsWS-KK6KRuejqXEY,49718
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=kyAIVB3Ay-XKJizQ_1ufUFB__EagV0MLmHJpyYyJ7J0,18636
25
- modal/client.pyi,sha256=ChF3c8RZCiGtnySRXwrE1jUXt2wUYzXODEnLymtsI9I,15831
25
+ modal/client.pyi,sha256=SnkCeiqxp9yLCKCOa39alyw-oOPZbrPQRpYMjyj0XXQ,15831
26
26
  modal/cloud_bucket_mount.py,sha256=I2GRXYhOWLIz2kJZjXu75jAm9EJkBNcutGc6jR2ReUw,5928
27
27
  modal/cloud_bucket_mount.pyi,sha256=VuUOipMIHqFXMkD-3g2bsoqpSxV5qswlFHDOqPQzYAo,7405
28
28
  modal/cls.py,sha256=IZG9gLlssbhTgIn6iSEmBSKkbbkst3skASMae-59FII,40239
@@ -153,7 +153,7 @@ modal/experimental/__init__.py,sha256=9gkVuDmu3m4TlKoU3MzEtTOemUSs8EEOWba40s7Aa0
153
153
  modal/experimental/flash.py,sha256=C4sef08rARYFllsgtqukFmYL18SZW0_JpMS0BejDcUs,28552
154
154
  modal/experimental/flash.pyi,sha256=vV_OQhtdrPn8SW0XrBK-aLLHHIvxAzLzwFbWrke-m74,15463
155
155
  modal/experimental/ipython.py,sha256=TrCfmol9LGsRZMeDoeMPx3Hv3BFqQhYnmD_iH0pqdhk,2904
156
- modal-1.1.5.dev81.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
156
+ modal-1.1.5.dev82.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
157
157
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
158
158
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
159
159
  modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
@@ -182,10 +182,10 @@ modal_proto/sandbox_router_pb2.py,sha256=QTT32WuusbyZwciNo-UUa6wl9-juOE2xRlv0JrB
182
182
  modal_proto/sandbox_router_pb2.pyi,sha256=Ihf7LHmh0V5XfMHwYQobZiQ1_3xPoDJgIueyUxC4fMQ,15088
183
183
  modal_proto/sandbox_router_pb2_grpc.py,sha256=8kPFo84rpRHfeRdZuHyoWuuIAphGmjM0s3ygGJSBVck,10006
184
184
  modal_proto/sandbox_router_pb2_grpc.pyi,sha256=iAr1ornlIEYP7pfrFMrw91-F3PNs7amH6z6J2oCwYxk,3276
185
- modal_version/__init__.py,sha256=qDiIDaas927wv5Z3IVv2Tz0B6l49dqsZU4CyobA1Lfo,121
185
+ modal_version/__init__.py,sha256=_W2jsQoP2kIr0M5T8Oyxm8TzRylU0Nj0Uocue5WzY7M,121
186
186
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
187
- modal-1.1.5.dev81.dist-info/METADATA,sha256=70GBqBeBUiYLKHgQiovyNIOHvAjz2Mtc_91SjQRQ21M,2481
188
- modal-1.1.5.dev81.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
189
- modal-1.1.5.dev81.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
190
- modal-1.1.5.dev81.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
191
- modal-1.1.5.dev81.dist-info/RECORD,,
187
+ modal-1.1.5.dev82.dist-info/METADATA,sha256=oy-tGiHz6sv_Ya7w307JIwmdaynRbQuw4r6dY6zSw3c,2481
188
+ modal-1.1.5.dev82.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
189
+ modal-1.1.5.dev82.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
190
+ modal-1.1.5.dev82.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
191
+ modal-1.1.5.dev82.dist-info/RECORD,,
modal_version/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.1.5.dev81"
4
+ __version__ = "1.1.5.dev82"