modAL 1.3.1.dev10__py3-none-any.whl → 1.3.1.dev11__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
@@ -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.3.1.dev10",
36
+ version: str = "1.3.1.dev11",
37
37
  ):
38
38
  """mdmd:hidden
39
39
  The Modal client object is not intended to be instantiated directly by users.
@@ -163,7 +163,7 @@ class Client:
163
163
  server_url: str,
164
164
  client_type: int,
165
165
  credentials: typing.Optional[tuple[str, str]],
166
- version: str = "1.3.1.dev10",
166
+ version: str = "1.3.1.dev11",
167
167
  ):
168
168
  """mdmd:hidden
169
169
  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.3.1.dev10
3
+ Version: 1.3.1.dev11
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -26,7 +26,7 @@ modal/app.pyi,sha256=WR0nGSUh8-8OYRHFqEnijGoPp_IbawNY1JW_0pozXsE,50857
26
26
  modal/billing.py,sha256=zmQ3bcCJlwa4KD1IA_QgdWpm1pn13c-7qfy79iEauYI,195
27
27
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
28
28
  modal/client.py,sha256=CXnyJYLhY--xaCkjv3tpjYDca8AuXGQG1IiaXQVX4y4,14436
29
- modal/client.pyi,sha256=7JsS0VZHKqEZ83COaOpatzvZgoOvKUWsPLN8l2gDr1Y,14473
29
+ modal/client.pyi,sha256=XgsrSEoKN9k9dLForI8qW4lsoj_NmpIP8xkeIoK6u6g,14473
30
30
  modal/cloud_bucket_mount.py,sha256=cvVj5Rt4nDHoQbTneoJPTaAcnl_Ab_mrsjnnzd0v9OI,6013
31
31
  modal/cloud_bucket_mount.pyi,sha256=vXusGMOUk9HjCs4lhxteuCK4xLQclPfugGWKo7LECEA,7539
32
32
  modal/cls.py,sha256=DNXcOrd9l2DoX-nLGdpwXm-N9V0BbQEvWA7d2UwFf44,41510
@@ -158,7 +158,7 @@ modal/experimental/__init__.py,sha256=GOuo3t4-Le0ZVddiHIOw0MQxkdTJge-bVbhDvgnblm
158
158
  modal/experimental/flash.py,sha256=GJZwSr-4OHlP6gCIZdcbsSb8D8WX9xJwMphjwcfsRoU,31262
159
159
  modal/experimental/flash.pyi,sha256=W62a0AhmLUuH9a0n8Y3-DYhyEEFH3-bRUQFphOQfKHg,16418
160
160
  modal/experimental/ipython.py,sha256=TrCfmol9LGsRZMeDoeMPx3Hv3BFqQhYnmD_iH0pqdhk,2904
161
- modal-1.3.1.dev10.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
161
+ modal-1.3.1.dev11.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
162
162
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
163
163
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
164
164
  modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
@@ -166,13 +166,13 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
166
166
  modal_docs/mdmd/mdmd.py,sha256=tUTImNd4UMFk1opkaw8J672gX8AkBO5gbY2S_NMxsxs,7140
167
167
  modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
168
168
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
169
- modal_proto/api.proto,sha256=U4RPjakx4nLCsmZjICIz1zpVEIr3D1nle1mhpynTz_0,111590
170
- modal_proto/api_grpc.py,sha256=-8SHvPtalTAjQtRv7zzU7Z1VoDupoJs2ifG4gl_mF0s,134442
171
- modal_proto/api_pb2.py,sha256=MU5qdVpesBfSsu0BnB_BqcFe6QRvicl7JSb3pcN5YVo,386094
172
- modal_proto/api_pb2.pyi,sha256=_3xSd3voS5fgOTWxD5RvaY0uoTq5e_NQoB4wVYga4hw,545686
173
- modal_proto/api_pb2_grpc.py,sha256=Hqw9jcbhpr-W6jsfog_tGU55ouZjITxGvA-DGNBqOLA,289714
174
- modal_proto/api_pb2_grpc.pyi,sha256=QLJ58ANCx147HeGJva58h0MTCLIDs9JmVjrx8bDdwlg,67776
175
- modal_proto/modal_api_grpc.py,sha256=MqaBZB2ZqYj6XTIgI_p5dOPjt9gKT4pAJNd_WXR3W84,21295
169
+ modal_proto/api.proto,sha256=GXKOqBNz9URbPeIWchVUNfsQNxhNwD356aMfyX6d0uc,112224
170
+ modal_proto/api_grpc.py,sha256=ozNudkNLbPLp2bFm0bJtb0FHK9ACvJXXnGy771noCKc,135188
171
+ modal_proto/api_pb2.py,sha256=DeyC243zTKxyoQR8koJFroYEdim1aK7gXYmcOKFNvi8,388892
172
+ modal_proto/api_pb2.pyi,sha256=-a8hoKsyc2g_H_6SFD3ZRU_szPJ1cwTfkNrtO7I0vdM,549568
173
+ modal_proto/api_pb2_grpc.py,sha256=hHdfvfbS6HELZXTmHNfxlgPxFRDSc2B81G8YRtLwuHM,291347
174
+ modal_proto/api_pb2_grpc.pyi,sha256=cqpXpAVrLoMQMCCyzyW5oXSFKmUPC9Y2wkTOpwNeAGM,68141
175
+ modal_proto/modal_api_grpc.py,sha256=ls_o6oVYm8iup0nbKGPqs-CcJZJrry0eIY51mQFJRUc,21407
176
176
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
177
177
  modal_proto/task_command_router.proto,sha256=oyHT02Ck7jrBe55s4ge5f2ko58-2sg3gZ-xEvvn5bXU,5620
178
178
  modal_proto/task_command_router_grpc.py,sha256=_K9lOLOB_pyT8-XvGnicgAIW1aLVFTqQISmP7Q1x4e8,6962
@@ -180,10 +180,10 @@ modal_proto/task_command_router_pb2.py,sha256=2Y8wRvnq4_7RiQ-5ZAPIgXaxrHv_MXzgS5
180
180
  modal_proto/task_command_router_pb2.pyi,sha256=yI4tFteErLlonFA2HyaWtONfhY_VGSe7KCWFIspvmkE,16323
181
181
  modal_proto/task_command_router_pb2_grpc.py,sha256=q2VWfK2-4uDcPaPLhAqPZkgxhuQRYnWmwUcnEbPbGuk,13895
182
182
  modal_proto/task_command_router_pb2_grpc.pyi,sha256=e1MM10VGUgDkm041v53QeTglGQPzTpA0FUsFtezjp74,4536
183
- modal_version/__init__.py,sha256=V964I_QCM1nsVXl3ijxPe7nppozCvz5Xp6_8RJUc2z8,121
183
+ modal_version/__init__.py,sha256=EEpH1-wmoyfPL1MIk6sGJz9DSJJ8dfIPYlHNeeldQ3I,121
184
184
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
185
- modal-1.3.1.dev10.dist-info/METADATA,sha256=cBGMeVqt2Nk1pQ2-vnwtGFqmeU15U_HldezpY8LY4Ek,2582
186
- modal-1.3.1.dev10.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
187
- modal-1.3.1.dev10.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
188
- modal-1.3.1.dev10.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
189
- modal-1.3.1.dev10.dist-info/RECORD,,
185
+ modal-1.3.1.dev11.dist-info/METADATA,sha256=ZS4XguX9swoczT7JQkl_QMsEES8k3R6rkjqjom2OPKw,2582
186
+ modal-1.3.1.dev11.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
187
+ modal-1.3.1.dev11.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
188
+ modal-1.3.1.dev11.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
189
+ modal-1.3.1.dev11.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -2894,6 +2894,7 @@ message SandboxHandleMetadata {
2894
2894
 
2895
2895
  message SandboxInfo {
2896
2896
  string id = 1;
2897
+ reserved 2; // modal.client.Sandbox definition
2897
2898
  double created_at = 3;
2898
2899
  TaskInfo task_info = 4;
2899
2900
  string app_id = 5;
@@ -2902,7 +2903,6 @@ message SandboxInfo {
2902
2903
  string image_id = 8;
2903
2904
  ResourceInfo resource_info = 9;
2904
2905
  repeated string regions = 10;
2905
- reserved 2; // modal.client.Sandbox definition
2906
2906
  }
2907
2907
 
2908
2908
 
@@ -3115,6 +3115,12 @@ message SecretMetadata {
3115
3115
  CreationInfo creation_info = 2;
3116
3116
  }
3117
3117
 
3118
+ message ServiceUserIdentity {
3119
+ string service_user_id = 1;
3120
+ string service_user_name = 2;
3121
+ UserIdentity created_by = 3;
3122
+ }
3123
+
3118
3124
  // SharedVolume in the backend corresponds to NetworkFileSystem in the current API
3119
3125
 
3120
3126
  message SharedVolumeDeleteRequest {
@@ -3336,6 +3342,23 @@ message TokenFlowWaitResponse {
3336
3342
  string workspace_username = 4;
3337
3343
  }
3338
3344
 
3345
+ message TokenInfoGetRequest {}
3346
+
3347
+ message TokenInfoGetResponse {
3348
+ string token_id = 1;
3349
+ string workspace_id = 2;
3350
+ string workspace_name = 3;
3351
+
3352
+ oneof identity {
3353
+ UserIdentity user_identity = 4;
3354
+ ServiceUserIdentity service_user_identity = 5;
3355
+ }
3356
+
3357
+ // Token metadata
3358
+ google.protobuf.Timestamp created_at = 6;
3359
+ google.protobuf.Timestamp expires_at = 7;
3360
+ }
3361
+
3339
3362
  message TunnelData {
3340
3363
  string host = 1;
3341
3364
  uint32 port = 2;
@@ -3375,6 +3398,11 @@ message UserActionInfo {
3375
3398
  double timestamp = 2;
3376
3399
  }
3377
3400
 
3401
+ message UserIdentity {
3402
+ string user_id = 1;
3403
+ string username = 2;
3404
+ }
3405
+
3378
3406
  message VolumeCommitRequest {
3379
3407
  // NOTE(staffan): Mounting a volume in multiple locations is not supported, so volume_id alone uniquely identifies
3380
3408
  // a volume mount.
@@ -3858,6 +3886,7 @@ service ModalClient {
3858
3886
  // Tokens (web auth flow)
3859
3887
  rpc TokenFlowCreate(TokenFlowCreateRequest) returns (TokenFlowCreateResponse);
3860
3888
  rpc TokenFlowWait(TokenFlowWaitRequest) returns (TokenFlowWaitResponse);
3889
+ rpc TokenInfoGet(TokenInfoGetRequest) returns (TokenInfoGetResponse);
3861
3890
 
3862
3891
  // Tunnels
3863
3892
  rpc TunnelStart(TunnelStartRequest) returns (TunnelStartResponse);
modal_proto/api_grpc.py CHANGED
@@ -631,6 +631,10 @@ class ModalClientBase(abc.ABC):
631
631
  async def TokenFlowWait(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.TokenFlowWaitRequest, modal_proto.api_pb2.TokenFlowWaitResponse]') -> None:
632
632
  pass
633
633
 
634
+ @abc.abstractmethod
635
+ async def TokenInfoGet(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.TokenInfoGetRequest, modal_proto.api_pb2.TokenInfoGetResponse]') -> None:
636
+ pass
637
+
634
638
  @abc.abstractmethod
635
639
  async def TunnelStart(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.TunnelStartRequest, modal_proto.api_pb2.TunnelStartResponse]') -> None:
636
640
  pass
@@ -1635,6 +1639,12 @@ class ModalClientBase(abc.ABC):
1635
1639
  modal_proto.api_pb2.TokenFlowWaitRequest,
1636
1640
  modal_proto.api_pb2.TokenFlowWaitResponse,
1637
1641
  ),
1642
+ '/modal.client.ModalClient/TokenInfoGet': grpclib.const.Handler(
1643
+ self.TokenInfoGet,
1644
+ grpclib.const.Cardinality.UNARY_UNARY,
1645
+ modal_proto.api_pb2.TokenInfoGetRequest,
1646
+ modal_proto.api_pb2.TokenInfoGetResponse,
1647
+ ),
1638
1648
  '/modal.client.ModalClient/TunnelStart': grpclib.const.Handler(
1639
1649
  self.TunnelStart,
1640
1650
  grpclib.const.Cardinality.UNARY_UNARY,
@@ -2685,6 +2695,12 @@ class ModalClientStub:
2685
2695
  modal_proto.api_pb2.TokenFlowWaitRequest,
2686
2696
  modal_proto.api_pb2.TokenFlowWaitResponse,
2687
2697
  )
2698
+ self.TokenInfoGet = grpclib.client.UnaryUnaryMethod(
2699
+ channel,
2700
+ '/modal.client.ModalClient/TokenInfoGet',
2701
+ modal_proto.api_pb2.TokenInfoGetRequest,
2702
+ modal_proto.api_pb2.TokenInfoGetResponse,
2703
+ )
2688
2704
  self.TunnelStart = grpclib.client.UnaryUnaryMethod(
2689
2705
  channel,
2690
2706
  '/modal.client.ModalClient/TunnelStart',