modal 0.72.28__py3-none-any.whl → 0.72.30__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
@@ -27,7 +27,7 @@ class _Client:
27
27
  _snapshotted: bool
28
28
 
29
29
  def __init__(
30
- self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.28"
30
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.30"
31
31
  ): ...
32
32
  def is_closed(self) -> bool: ...
33
33
  @property
@@ -83,7 +83,7 @@ class Client:
83
83
  _snapshotted: bool
84
84
 
85
85
  def __init__(
86
- self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.28"
86
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.30"
87
87
  ): ...
88
88
  def is_closed(self) -> bool: ...
89
89
  @property
@@ -112,6 +112,9 @@ class _CloudBucketMount:
112
112
  # If the bucket is publicly accessible, the secret is unnecessary and can be omitted.
113
113
  secret: Optional[_Secret] = None
114
114
 
115
+ # Role ARN used for using OIDC authentication to access a cloud bucket.
116
+ oidc_auth_role_arn: Optional[str] = None
117
+
115
118
  read_only: bool = False
116
119
  requester_pays: bool = False
117
120
 
@@ -155,6 +158,7 @@ def cloud_bucket_mounts_to_proto(mounts: list[tuple[str, _CloudBucketMount]]) ->
155
158
  bucket_type=bucket_type,
156
159
  requester_pays=mount.requester_pays,
157
160
  key_prefix=key_prefix,
161
+ oidc_auth_role_arn=mount.oidc_auth_role_arn,
158
162
  )
159
163
  cloud_bucket_mounts.append(cloud_bucket_mount)
160
164
 
@@ -7,6 +7,7 @@ class _CloudBucketMount:
7
7
  bucket_endpoint_url: typing.Optional[str]
8
8
  key_prefix: typing.Optional[str]
9
9
  secret: typing.Optional[modal.secret._Secret]
10
+ oidc_auth_role_arn: typing.Optional[str]
10
11
  read_only: bool
11
12
  requester_pays: bool
12
13
 
@@ -16,6 +17,7 @@ class _CloudBucketMount:
16
17
  bucket_endpoint_url: typing.Optional[str] = None,
17
18
  key_prefix: typing.Optional[str] = None,
18
19
  secret: typing.Optional[modal.secret._Secret] = None,
20
+ oidc_auth_role_arn: typing.Optional[str] = None,
19
21
  read_only: bool = False,
20
22
  requester_pays: bool = False,
21
23
  ) -> None: ...
@@ -31,6 +33,7 @@ class CloudBucketMount:
31
33
  bucket_endpoint_url: typing.Optional[str]
32
34
  key_prefix: typing.Optional[str]
33
35
  secret: typing.Optional[modal.secret.Secret]
36
+ oidc_auth_role_arn: typing.Optional[str]
34
37
  read_only: bool
35
38
  requester_pays: bool
36
39
 
@@ -40,6 +43,7 @@ class CloudBucketMount:
40
43
  bucket_endpoint_url: typing.Optional[str] = None,
41
44
  key_prefix: typing.Optional[str] = None,
42
45
  secret: typing.Optional[modal.secret.Secret] = None,
46
+ oidc_auth_role_arn: typing.Optional[str] = None,
43
47
  read_only: bool = False,
44
48
  requester_pays: bool = False,
45
49
  ) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modal
3
- Version: 0.72.28
3
+ Version: 0.72.30
4
4
  Summary: Python client library for Modal
5
5
  Author: Modal Labs
6
6
  Author-email: support@modal.com
@@ -20,9 +20,9 @@ modal/app.py,sha256=UOuqlCKlFAjOXCacXmoEMM90FnqFwPRXUhLh0Gi6xzg,45344
20
20
  modal/app.pyi,sha256=5D3LkPP6qvTIl2_YgiyhNQ9X4VsOVuxd69a23UmohDg,25477
21
21
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
22
22
  modal/client.py,sha256=8SQawr7P1PNUCq1UmJMUQXG2jIo4Nmdcs311XqrNLRE,15276
23
- modal/client.pyi,sha256=xw51redD6Q8N8XiQmZl7MKuaZhJCAM2Pu7xtQ5d5om4,7326
24
- modal/cloud_bucket_mount.py,sha256=G7T7jWLD0QkmrfKR75mSTwdUZ2xNfj7pkVqb4ipmxmI,5735
25
- modal/cloud_bucket_mount.pyi,sha256=CEi7vrH3kDUF4LAy4qP6tfImy2UJuFRcRbsgRNM1wo8,1403
23
+ modal/client.pyi,sha256=GWa7Ol-1zfa6hn2H_ZD1xihP4uu7FHYIl0xlFGds7TE,7326
24
+ modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
25
+ modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
26
26
  modal/cls.py,sha256=xHgZZAmymplw0I2YZGAA8raBboixdNKKTrnsxQZI7G8,32159
27
27
  modal/cls.pyi,sha256=ImhmNPUD2zVjk7zOmEhFbdU0JQiC90B4Y9yV11bmRJs,8856
28
28
  modal/config.py,sha256=BzhZYUUwOmvVwf6x5kf0ywMC257s648dmuhsnB6g3gk,11041
@@ -149,10 +149,10 @@ 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=pEML5GaV2_0ahci_1vpfc_FnySpsfi2fhYmFF5I7IiQ,1837
151
151
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
152
- modal_proto/api.proto,sha256=pw5ozglDsXxIJ2PK-s9lO02EHt1XE6HOdpujhmQYv-s,84081
152
+ modal_proto/api.proto,sha256=rs7gMeYjXS73qzEmgnnzMNyWksh2E8Ju8Im1y9vwzmo,84260
153
153
  modal_proto/api_grpc.py,sha256=Bcgo5hmJ0FCAVvWAm7X7Qki2GZ2gvAu3kOtqzRtvoMc,106793
154
- modal_proto/api_pb2.py,sha256=jJD0spvNpLLAGYYk0sn-Hx8FgyZm3jNggLGRhjGLWOI,307112
155
- modal_proto/api_pb2.pyi,sha256=_wilZlPvO7tfHIDDp6hZyCVTrgoGsSz2fUWK5kUrlS4,410051
154
+ modal_proto/api_pb2.py,sha256=NSukaVE5IPbBIYP_qkvILrD-qninKmbekqDK5I_IRp8,307200
155
+ modal_proto/api_pb2.pyi,sha256=b1Ya2TTdFOZMxhfiSAy4Y0ut6Y6kjf6N6mxHw9uiFV8,410686
156
156
  modal_proto/api_pb2_grpc.py,sha256=OTPQgFBajKwy7fhAFEewDjY6lK49C60Z9vTqUpQy_oY,230822
157
157
  modal_proto/api_pb2_grpc.pyi,sha256=mwP2mw6UE46CHlraqicXHsgyGPtV0mCy96LwnFMz74s,53787
158
158
  modal_proto/modal_api_grpc.py,sha256=C5QcdsBWEvF9ufbEjdyPQ5IDDexMdAI2_CQ_U2nEYuc,14258
@@ -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=kGya2ZlItX2zB7oHORs-wvP4PG8lg_mtbi1QIK3G6SQ,470
168
168
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
169
- modal_version/_version_generated.py,sha256=0HB5AOqMcBtRE2Ddj-8oc3MGtVGFXe-USlqHkQM8g40,149
170
- modal-0.72.28.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
171
- modal-0.72.28.dist-info/METADATA,sha256=Y3bOvw7xqCc-FF0U8EqqTqRcxiB1_dsWpB6LXFFaYBg,2329
172
- modal-0.72.28.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
173
- modal-0.72.28.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
174
- modal-0.72.28.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
175
- modal-0.72.28.dist-info/RECORD,,
169
+ modal_version/_version_generated.py,sha256=gA8QAqzAIN1KIx0jSq_vQI7E9AipRYAfoFuxrlZNoiI,149
170
+ modal-0.72.30.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
171
+ modal-0.72.30.dist-info/METADATA,sha256=s11YQda5QSIRNJPghkv9yMrFZ5rGVWCh07jBVemZVJs,2329
172
+ modal-0.72.30.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
173
+ modal-0.72.30.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
174
+ modal-0.72.30.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
175
+ modal-0.72.30.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -717,6 +717,7 @@ message CloudBucketMount {
717
717
  bool requester_pays = 6;
718
718
  optional string bucket_endpoint_url = 7;
719
719
  optional string key_prefix = 8;
720
+ optional string oidc_auth_role_arn = 9;
720
721
  }
721
722
 
722
723
  message ContainerArguments { // This is used to pass data from the worker to the container
@@ -2228,8 +2229,9 @@ message Sandbox {
2228
2229
 
2229
2230
  optional string proxy_id = 23;
2230
2231
 
2231
- // Enable memory snapshots.
2232
- bool enable_memory_snapshot = 24;
2232
+ // Enable snapshotting the sandbox (both memory and filesystem).
2233
+ // This doesn't need to be enabled to save the filesystem as an image (i.e. a filesystem-only snapshot).
2234
+ bool enable_snapshot = 24;
2233
2235
 
2234
2236
  // Used to pin gVisor version for memory-snapshottable sandboxes.
2235
2237
  // This field is set by the server, not the client.