modal 0.71.4__py3-none-any.whl → 0.71.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/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.71.4"
29
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.71.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.71.4"
84
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.71.6"
85
85
  ): ...
86
86
  def is_closed(self) -> bool: ...
87
87
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modal
3
- Version: 0.71.4
3
+ Version: 0.71.6
4
4
  Summary: Python client library for Modal
5
5
  Author: Modal Labs
6
6
  Author-email: support@modal.com
@@ -19,7 +19,7 @@ modal/app.py,sha256=vEE0cK5QPF6_cdW5AJvcuWxz5KmeprHwBEtlDkVRHgE,45582
19
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=4tCQvE-eS0ZqCco5-2LqQ3omg76GL-q4K8prnmzVfZ4,7278
22
+ modal/client.pyi,sha256=NfXng63F8_mjJjfXLCd0JrnZkIDk9U-XyL8_l52QLN4,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
@@ -149,13 +149,13 @@ modal_global_objects/mounts/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0
149
149
  modal_global_objects/mounts/modal_client_package.py,sha256=W0E_yShsRojPzWm6LtIQqNVolapdnrZkm2hVEQuZK_4,767
150
150
  modal_global_objects/mounts/python_standalone.py,sha256=SL_riIxpd8mP4i4CLDCWiFFNj0Ltknm9c_UIGfX5d60,1836
151
151
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
152
- modal_proto/api.proto,sha256=B7UvK-bWmAcBuqMMWmUBubAdstblzWgMqmUUco-1fEE,79926
153
- modal_proto/api_grpc.py,sha256=AiUCWTHQQFC9RFB_XuavB_OnVMr7GJMRLEwcf4FSTio,102088
154
- modal_proto/api_pb2.py,sha256=EEvj9MRiYAGiGP9lZqkQs7TIP7eepBKhAtL0eJAjpRM,293669
155
- modal_proto/api_pb2.pyi,sha256=kdIvhfjCdoMP-uLw1MvQOIwE3m2xAenexGCXuo-SX0M,392331
156
- modal_proto/api_pb2_grpc.py,sha256=dFxVTgosyp_o8NCI1JIySlR0qTzG4ILm9mq8MNo4jYc,220795
157
- modal_proto/api_pb2_grpc.pyi,sha256=yJgwEl-1YU42m7MU_Sm5SK3rB9xdkisPk3nZB-mlqkg,51463
158
- modal_proto/modal_api_grpc.py,sha256=MyNzvY_WqB7QTMOQjoH6lsqCY5-6_s1HP-knsOSjANs,13640
152
+ modal_proto/api.proto,sha256=ERfCFygQvpd09LyVtpZ-eInPfJ4p6UIDh_z3za_rbsw,80174
153
+ modal_proto/api_grpc.py,sha256=MLsxlZXikcv36aSs0iVZywIOANMWstVZMWJGQTDjdM0,102823
154
+ modal_proto/api_pb2.py,sha256=dJJ88RIIPlwyTBQk9rKfSfbAxeZXDZn7FpszS6mF0Qs,294984
155
+ modal_proto/api_pb2.pyi,sha256=I1cHME11tDMerj_8DzHF2SEwN1QorEfdjziW3_v-omA,393699
156
+ modal_proto/api_pb2_grpc.py,sha256=4d5SwJPLldCqqHz_BGqmJLlX-BMG592WFKUQ6IBg5rg,222415
157
+ modal_proto/api_pb2_grpc.pyi,sha256=C4c3jndI6TKEgVnx3vAmT86In4T9JKmB1CImiye_aQk,51822
158
+ modal_proto/modal_api_grpc.py,sha256=eeH1vHXgwO768tM7DXqvj-P37u15SI00gZtm8_EK15I,13732
159
159
  modal_proto/modal_options_grpc.py,sha256=qJ1cuwA54oRqrdTyPTbvfhFZYd9HhJKK5UCwt523r3Y,120
160
160
  modal_proto/options.proto,sha256=a-siq4swVbZPfaFRXAipRZzGP2bq8OsdUvjlyzAeodQ,488
161
161
  modal_proto/options_grpc.py,sha256=M18X3d-8F_cNYSVM3I25dUTO5rZ0rd-vCCfynfh13Nc,125
@@ -166,10 +166,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
166
166
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
167
167
  modal_version/__init__.py,sha256=BEBWj9tcbFUwzEjUrqly601rauw5cYsHdcmJHs3iu0s,470
168
168
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
169
- modal_version/_version_generated.py,sha256=3TvSmDcXd2TJWiBGF1oNLfcsxLy3TPqMQ4BxZiXpYB0,148
170
- modal-0.71.4.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
171
- modal-0.71.4.dist-info/METADATA,sha256=km6ecKksbjllgRq-Bk0JlnTFBf-EuP3wBOh6_nf5bVc,2328
172
- modal-0.71.4.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
173
- modal-0.71.4.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
174
- modal-0.71.4.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
175
- modal-0.71.4.dist-info/RECORD,,
169
+ modal_version/_version_generated.py,sha256=jbZljLgZ-HocRNgrswTNVhAp8D4H4g32moUc0dud9-s,148
170
+ modal-0.71.6.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
171
+ modal-0.71.6.dist-info/METADATA,sha256=NoiwOq43-7EWLSJ8JnfeI7NyPHwFU_5wjNDsrojkIe4,2328
172
+ modal-0.71.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
173
+ modal-0.71.6.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
174
+ modal-0.71.6.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
175
+ modal-0.71.6.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -298,6 +298,7 @@ message AppDeploymentHistory {
298
298
  string client_version = 3;
299
299
  double deployed_at = 4;
300
300
  string deployed_by = 5;
301
+ string deployed_by_avatar_url = 9;
301
302
  string tag = 6;
302
303
  uint32 rollback_version = 7;
303
304
  bool rollback_allowed = 8;
@@ -1730,6 +1731,15 @@ message ImageContextFile {
1730
1731
  bytes data = 2;
1731
1732
  }
1732
1733
 
1734
+ message ImageFromIdRequest {
1735
+ string image_id = 1;
1736
+ }
1737
+
1738
+ message ImageFromIdResponse {
1739
+ string image_id = 1;
1740
+ ImageMetadata metadata = 2;
1741
+ }
1742
+
1733
1743
  message ImageGetOrCreateRequest {
1734
1744
  Image image = 2;
1735
1745
  string app_id = 4 [ (modal.options.audit_target_attr) = true ];
@@ -2797,6 +2807,7 @@ service ModalClient {
2797
2807
  rpc FunctionUpdateSchedulingParams(FunctionUpdateSchedulingParamsRequest) returns (FunctionUpdateSchedulingParamsResponse);
2798
2808
 
2799
2809
  // Images
2810
+ rpc ImageFromId(ImageFromIdRequest) returns (ImageFromIdResponse);
2800
2811
  rpc ImageGetOrCreate(ImageGetOrCreateRequest) returns (ImageGetOrCreateResponse);
2801
2812
  rpc ImageJoinStreaming(ImageJoinStreamingRequest) returns (stream ImageJoinStreamingResponse);
2802
2813
 
modal_proto/api_grpc.py CHANGED
@@ -309,6 +309,10 @@ class ModalClientBase(abc.ABC):
309
309
  async def FunctionUpdateSchedulingParams(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest, modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse]') -> None:
310
310
  pass
311
311
 
312
+ @abc.abstractmethod
313
+ async def ImageFromId(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ImageFromIdRequest, modal_proto.api_pb2.ImageFromIdResponse]') -> None:
314
+ pass
315
+
312
316
  @abc.abstractmethod
313
317
  async def ImageGetOrCreate(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ImageGetOrCreateRequest, modal_proto.api_pb2.ImageGetOrCreateResponse]') -> None:
314
318
  pass
@@ -989,6 +993,12 @@ class ModalClientBase(abc.ABC):
989
993
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
990
994
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
991
995
  ),
996
+ '/modal.client.ModalClient/ImageFromId': grpclib.const.Handler(
997
+ self.ImageFromId,
998
+ grpclib.const.Cardinality.UNARY_UNARY,
999
+ modal_proto.api_pb2.ImageFromIdRequest,
1000
+ modal_proto.api_pb2.ImageFromIdResponse,
1001
+ ),
992
1002
  '/modal.client.ModalClient/ImageGetOrCreate': grpclib.const.Handler(
993
1003
  self.ImageGetOrCreate,
994
1004
  grpclib.const.Cardinality.UNARY_UNARY,
@@ -1793,6 +1803,12 @@ class ModalClientStub:
1793
1803
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
1794
1804
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
1795
1805
  )
1806
+ self.ImageFromId = grpclib.client.UnaryUnaryMethod(
1807
+ channel,
1808
+ '/modal.client.ModalClient/ImageFromId',
1809
+ modal_proto.api_pb2.ImageFromIdRequest,
1810
+ modal_proto.api_pb2.ImageFromIdResponse,
1811
+ )
1796
1812
  self.ImageGetOrCreate = grpclib.client.UnaryUnaryMethod(
1797
1813
  channel,
1798
1814
  '/modal.client.ModalClient/ImageGetOrCreate',