modAL 1.3.1.dev31__py3-none-any.whl → 1.3.1.dev32__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
@@ -35,7 +35,7 @@ class _Client:
35
35
  server_url: str,
36
36
  client_type: int,
37
37
  credentials: typing.Optional[tuple[str, str]],
38
- version: str = "1.3.1.dev31",
38
+ version: str = "1.3.1.dev32",
39
39
  ):
40
40
  """mdmd:hidden
41
41
  The Modal client object is not intended to be instantiated directly by users.
@@ -166,7 +166,7 @@ class Client:
166
166
  server_url: str,
167
167
  client_type: int,
168
168
  credentials: typing.Optional[tuple[str, str]],
169
- version: str = "1.3.1.dev31",
169
+ version: str = "1.3.1.dev32",
170
170
  ):
171
171
  """mdmd:hidden
172
172
  The Modal client object is not intended to be instantiated directly by users.
modal/sandbox.py CHANGED
@@ -150,6 +150,7 @@ class _Sandbox(_Object, type_prefix="sb"):
150
150
  experimental_options: Optional[dict[str, bool]] = None,
151
151
  enable_snapshot: bool = False,
152
152
  verbose: bool = False,
153
+ custom_domain: Optional[str] = None,
153
154
  ) -> "_Sandbox":
154
155
  """mdmd:hidden"""
155
156
 
@@ -259,6 +260,7 @@ class _Sandbox(_Object, type_prefix="sb"):
259
260
  verbose=verbose,
260
261
  name=name,
261
262
  experimental_options=experimental_options,
263
+ custom_domain=custom_domain,
262
264
  )
263
265
 
264
266
  create_req = api_pb2.SandboxCreateRequest(app_id=load_context.app_id, definition=definition)
@@ -315,6 +317,10 @@ class _Sandbox(_Object, type_prefix="sb"):
315
317
  client: Optional[_Client] = None,
316
318
  environment_name: Optional[str] = None, # *DEPRECATED* Optionally override the default environment
317
319
  pty_info: Optional[api_pb2.PTYInfo] = None, # *DEPRECATED* Use `pty` instead. `pty` will override `pty_info`.
320
+ # If set, connections to this sandbox will be subdomains of this domain rather than the default.
321
+ # Custom domains must be configured manually by Modal. They are different from the custom domains
322
+ # in the Modal dashboard.
323
+ custom_domain: Optional[str] = None,
318
324
  ) -> "_Sandbox":
319
325
  """
320
326
  Create a new Sandbox to run untrusted, arbitrary code.
@@ -376,6 +382,7 @@ class _Sandbox(_Object, type_prefix="sb"):
376
382
  client=client,
377
383
  verbose=verbose,
378
384
  pty_info=pty_info,
385
+ custom_domain=custom_domain,
379
386
  )
380
387
 
381
388
  @staticmethod
@@ -409,6 +416,7 @@ class _Sandbox(_Object, type_prefix="sb"):
409
416
  client: Optional[_Client] = None,
410
417
  verbose: bool = False,
411
418
  pty_info: Optional[api_pb2.PTYInfo] = None,
419
+ custom_domain: Optional[str] = None,
412
420
  ):
413
421
  """Private method used internally.
414
422
 
@@ -457,6 +465,7 @@ class _Sandbox(_Object, type_prefix="sb"):
457
465
  experimental_options=experimental_options,
458
466
  enable_snapshot=_experimental_enable_snapshot,
459
467
  verbose=verbose,
468
+ custom_domain=custom_domain,
460
469
  )
461
470
  obj._enable_snapshot = _experimental_enable_snapshot
462
471
 
modal/sandbox.pyi CHANGED
@@ -118,6 +118,7 @@ class _Sandbox(modal._object._Object):
118
118
  experimental_options: typing.Optional[dict[str, bool]] = None,
119
119
  enable_snapshot: bool = False,
120
120
  verbose: bool = False,
121
+ custom_domain: typing.Optional[str] = None,
121
122
  ) -> _Sandbox:
122
123
  """mdmd:hidden"""
123
124
  ...
@@ -156,6 +157,7 @@ class _Sandbox(modal._object._Object):
156
157
  client: typing.Optional[modal.client._Client] = None,
157
158
  environment_name: typing.Optional[str] = None,
158
159
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
160
+ custom_domain: typing.Optional[str] = None,
159
161
  ) -> _Sandbox:
160
162
  """Create a new Sandbox to run untrusted, arbitrary code.
161
163
 
@@ -206,6 +208,7 @@ class _Sandbox(modal._object._Object):
206
208
  client: typing.Optional[modal.client._Client] = None,
207
209
  verbose: bool = False,
208
210
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
211
+ custom_domain: typing.Optional[str] = None,
209
212
  ):
210
213
  """Private method used internally.
211
214
 
@@ -528,6 +531,7 @@ class Sandbox(modal.object.Object):
528
531
  experimental_options: typing.Optional[dict[str, bool]] = None,
529
532
  enable_snapshot: bool = False,
530
533
  verbose: bool = False,
534
+ custom_domain: typing.Optional[str] = None,
531
535
  ) -> Sandbox:
532
536
  """mdmd:hidden"""
533
537
  ...
@@ -570,6 +574,7 @@ class Sandbox(modal.object.Object):
570
574
  client: typing.Optional[modal.client.Client] = None,
571
575
  environment_name: typing.Optional[str] = None,
572
576
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
577
+ custom_domain: typing.Optional[str] = None,
573
578
  ) -> Sandbox:
574
579
  """Create a new Sandbox to run untrusted, arbitrary code.
575
580
 
@@ -623,6 +628,7 @@ class Sandbox(modal.object.Object):
623
628
  client: typing.Optional[modal.client.Client] = None,
624
629
  environment_name: typing.Optional[str] = None,
625
630
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
631
+ custom_domain: typing.Optional[str] = None,
626
632
  ) -> Sandbox:
627
633
  """Create a new Sandbox to run untrusted, arbitrary code.
628
634
 
@@ -679,6 +685,7 @@ class Sandbox(modal.object.Object):
679
685
  client: typing.Optional[modal.client.Client] = None,
680
686
  verbose: bool = False,
681
687
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
688
+ custom_domain: typing.Optional[str] = None,
682
689
  ):
683
690
  """Private method used internally.
684
691
 
@@ -725,6 +732,7 @@ class Sandbox(modal.object.Object):
725
732
  client: typing.Optional[modal.client.Client] = None,
726
733
  verbose: bool = False,
727
734
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
735
+ custom_domain: typing.Optional[str] = None,
728
736
  ):
729
737
  """Private method used internally.
730
738
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.3.1.dev31
3
+ Version: 1.3.1.dev32
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -27,7 +27,7 @@ modal/app.pyi,sha256=0myfmGDqVoEoxTUWFG_Z4-0KFMlXZXe8k5hcFzl8k2I,50863
27
27
  modal/billing.py,sha256=zmQ3bcCJlwa4KD1IA_QgdWpm1pn13c-7qfy79iEauYI,195
28
28
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
29
29
  modal/client.py,sha256=K-QI0NvoX7Ir3TIywVRM8wbWaTQk6jqjbkTah1kmJlg,14602
30
- modal/client.pyi,sha256=oRddhVAAhc9gnx1mJ6WOUge2uWDO9DNdu9foWymE3MQ,14672
30
+ modal/client.pyi,sha256=i-iBs8r4K84qgaHu7-mj0xcn0J2C9LayZaLd32A0JOc,14672
31
31
  modal/cloud_bucket_mount.py,sha256=cvVj5Rt4nDHoQbTneoJPTaAcnl_Ab_mrsjnnzd0v9OI,6013
32
32
  modal/cloud_bucket_mount.pyi,sha256=vXusGMOUk9HjCs4lhxteuCK4xLQclPfugGWKo7LECEA,7539
33
33
  modal/cls.py,sha256=DNXcOrd9l2DoX-nLGdpwXm-N9V0BbQEvWA7d2UwFf44,41510
@@ -70,8 +70,8 @@ modal/retries.py,sha256=IvNLDM0f_GLUDD5VgEDoN09C88yoxSrCquinAuxT1Sc,5205
70
70
  modal/runner.py,sha256=i5CiDByknNQHyAYdq2EsIRwK0INfCe7Hv1QXLyQhroE,26137
71
71
  modal/runner.pyi,sha256=kQRO3oWA_Icjdm87sgeUV6Fa6rVPWfCYi99POj_2i4Q,8860
72
72
  modal/running_app.py,sha256=v61mapYNV1-O-Uaho5EfJlryMLvIT9We0amUOSvSGx8,1188
73
- modal/sandbox.py,sha256=57b9989lhmaTFyJvFde41YpgT6mZs7UEudk9anQVmE4,50876
74
- modal/sandbox.pyi,sha256=B7VwuwumUuvVDxwHFPAmJFmxXGUOfdwJTUxBRBFLIv0,57454
73
+ modal/sandbox.py,sha256=T4rKeUgc6anZcVW1B2ML__5Q2uZX0nIGqg3BjXmmLtI,51383
74
+ modal/sandbox.pyi,sha256=ehuzW7PWPD6fpoK9bfow47TzETWltiwvwpJC4G1elKY,57886
75
75
  modal/schedule.py,sha256=ng0g0AqNY5GQI9KhkXZQ5Wam5G42glbkqVQsNpBtbDE,3078
76
76
  modal/scheduler_placement.py,sha256=BAREdOY5HzHpzSBqt6jDVR6YC_jYfHMVqOzkyqQfngU,1235
77
77
  modal/secret.py,sha256=XOHgwhjPJpzsIe7eo3DGAQ66hvyepc232UEEAREnjtk,18203
@@ -161,7 +161,7 @@ modal/experimental/__init__.py,sha256=GOuo3t4-Le0ZVddiHIOw0MQxkdTJge-bVbhDvgnblm
161
161
  modal/experimental/flash.py,sha256=37gU4dX2kdGnbV9UXS2jLe8O-Z0Ed6p00xSobo9t9Bo,30930
162
162
  modal/experimental/flash.pyi,sha256=W62a0AhmLUuH9a0n8Y3-DYhyEEFH3-bRUQFphOQfKHg,16418
163
163
  modal/experimental/ipython.py,sha256=TrCfmol9LGsRZMeDoeMPx3Hv3BFqQhYnmD_iH0pqdhk,2904
164
- modal-1.3.1.dev31.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
164
+ modal-1.3.1.dev32.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
165
165
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
166
166
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
167
167
  modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
@@ -169,10 +169,10 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
169
169
  modal_docs/mdmd/mdmd.py,sha256=tUTImNd4UMFk1opkaw8J672gX8AkBO5gbY2S_NMxsxs,7140
170
170
  modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
171
171
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
172
- modal_proto/api.proto,sha256=g_zEGP5abwFgsZQBqxZSHYnjgpyAIpC5IaIg1m9iL8Y,112449
172
+ modal_proto/api.proto,sha256=BRGVPXK-npWNOeprF7RN0lekQ-ANtjwQnedDIDsUZpk,112579
173
173
  modal_proto/api_grpc.py,sha256=ozNudkNLbPLp2bFm0bJtb0FHK9ACvJXXnGy771noCKc,135188
174
- modal_proto/api_pb2.py,sha256=x2EEvvJEUWvI_YpDGhmB58zO7E0FiWlajTw-0A5IHKY,389103
175
- modal_proto/api_pb2.pyi,sha256=yRH74q8BjkgTWyzVk_iGJbJDb5UkQW2Cl7XQf0TBykg,550601
174
+ modal_proto/api_pb2.py,sha256=rTCc7vwP8qwyNS1oS2dREaBEm1f1__vokKjFPfgC1hI,389141
175
+ modal_proto/api_pb2.pyi,sha256=9qmUOSMCIZbxUqtxbjD9SI6aspOEYqIXffTMiV0ENdo,550861
176
176
  modal_proto/api_pb2_grpc.py,sha256=hHdfvfbS6HELZXTmHNfxlgPxFRDSc2B81G8YRtLwuHM,291347
177
177
  modal_proto/api_pb2_grpc.pyi,sha256=cqpXpAVrLoMQMCCyzyW5oXSFKmUPC9Y2wkTOpwNeAGM,68141
178
178
  modal_proto/modal_api_grpc.py,sha256=ls_o6oVYm8iup0nbKGPqs-CcJZJrry0eIY51mQFJRUc,21407
@@ -183,10 +183,10 @@ modal_proto/task_command_router_pb2.py,sha256=2Y8wRvnq4_7RiQ-5ZAPIgXaxrHv_MXzgS5
183
183
  modal_proto/task_command_router_pb2.pyi,sha256=yI4tFteErLlonFA2HyaWtONfhY_VGSe7KCWFIspvmkE,16323
184
184
  modal_proto/task_command_router_pb2_grpc.py,sha256=q2VWfK2-4uDcPaPLhAqPZkgxhuQRYnWmwUcnEbPbGuk,13895
185
185
  modal_proto/task_command_router_pb2_grpc.pyi,sha256=e1MM10VGUgDkm041v53QeTglGQPzTpA0FUsFtezjp74,4536
186
- modal_version/__init__.py,sha256=hGYv6-FFI14aLksTIbjV3DoaN8QcOKVWA2XJAaZ3778,121
186
+ modal_version/__init__.py,sha256=6NLN-Jc2loqrJaERrzndy3rI-1TS7R9dsLxWVLH30Z8,121
187
187
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
188
- modal-1.3.1.dev31.dist-info/METADATA,sha256=KJLsk8ULNY_KUfpjV6znRgOqZb1ZhvTUCzwD0cVgEfk,2582
189
- modal-1.3.1.dev31.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
190
- modal-1.3.1.dev31.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
191
- modal-1.3.1.dev31.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
192
- modal-1.3.1.dev31.dist-info/RECORD,,
188
+ modal-1.3.1.dev32.dist-info/METADATA,sha256=ufHp6Dq3u_OyqZgstQ9T44AnV0DvupDU31vfxGA9KsM,2582
189
+ modal-1.3.1.dev32.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
190
+ modal-1.3.1.dev32.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
191
+ modal-1.3.1.dev32.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
192
+ modal-1.3.1.dev32.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -2820,6 +2820,9 @@ message Sandbox {
2820
2820
  // Set by server during SandboxRestore to ensure the restored sandbox runs
2821
2821
  // on the same instance type as the original snapshot.
2822
2822
  string _restore_instance_type = 35;
2823
+
2824
+ // If set, connections to this sandbox will be subdomains of this domain rather than the default.
2825
+ string custom_domain = 36;
2823
2826
  }
2824
2827
 
2825
2828
  message SandboxCreateConnectTokenRequest {