modal 1.0.6.dev4__py3-none-any.whl → 1.0.6.dev5__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/_functions.py +14 -7
- modal/_utils/deprecation.py +19 -0
- modal/cli/utils.py +1 -3
- modal/client.pyi +2 -2
- modal/cls.py +9 -5
- modal/cls.pyi +15 -5
- modal/dict.py +6 -6
- modal/dict.pyi +5 -5
- modal/functions.pyi +10 -10
- modal/network_file_system.py +10 -7
- modal/network_file_system.pyi +8 -8
- modal/queue.py +8 -5
- modal/queue.pyi +5 -5
- modal/runner.py +5 -6
- modal/runner.pyi +4 -4
- modal/secret.py +13 -7
- modal/secret.pyi +8 -8
- modal/volume.py +7 -7
- modal/volume.pyi +8 -8
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev5.dist-info}/METADATA +1 -1
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev5.dist-info}/RECORD +30 -30
- modal_docs/mdmd/mdmd.py +6 -3
- modal_proto/api.proto +10 -10
- modal_proto/api_pb2.py +910 -910
- modal_proto/api_pb2.pyi +10 -40
- modal_version/__init__.py +1 -1
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev5.dist-info}/WHEEL +0 -0
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev5.dist-info}/entry_points.txt +0 -0
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev5.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev5.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -824,13 +824,11 @@ class AppDeployRequest(google.protobuf.message.Message):
|
|
|
824
824
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
825
825
|
|
|
826
826
|
APP_ID_FIELD_NUMBER: builtins.int
|
|
827
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
828
827
|
NAME_FIELD_NUMBER: builtins.int
|
|
829
828
|
OBJECT_ENTITY_FIELD_NUMBER: builtins.int
|
|
830
829
|
VISIBILITY_FIELD_NUMBER: builtins.int
|
|
831
830
|
TAG_FIELD_NUMBER: builtins.int
|
|
832
831
|
app_id: builtins.str
|
|
833
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
834
832
|
name: builtins.str
|
|
835
833
|
object_entity: builtins.str
|
|
836
834
|
visibility: global___AppDeployVisibility.ValueType
|
|
@@ -839,13 +837,12 @@ class AppDeployRequest(google.protobuf.message.Message):
|
|
|
839
837
|
self,
|
|
840
838
|
*,
|
|
841
839
|
app_id: builtins.str = ...,
|
|
842
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
843
840
|
name: builtins.str = ...,
|
|
844
841
|
object_entity: builtins.str = ...,
|
|
845
842
|
visibility: global___AppDeployVisibility.ValueType = ...,
|
|
846
843
|
tag: builtins.str = ...,
|
|
847
844
|
) -> None: ...
|
|
848
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "name", b"name", "
|
|
845
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "name", b"name", "object_entity", b"object_entity", "tag", b"tag", "visibility", b"visibility"]) -> None: ...
|
|
849
846
|
|
|
850
847
|
global___AppDeployRequest = AppDeployRequest
|
|
851
848
|
|
|
@@ -939,20 +936,17 @@ global___AppDeploymentHistoryResponse = AppDeploymentHistoryResponse
|
|
|
939
936
|
class AppGetByDeploymentNameRequest(google.protobuf.message.Message):
|
|
940
937
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
941
938
|
|
|
942
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
943
939
|
NAME_FIELD_NUMBER: builtins.int
|
|
944
940
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
945
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
946
941
|
name: builtins.str
|
|
947
942
|
environment_name: builtins.str
|
|
948
943
|
def __init__(
|
|
949
944
|
self,
|
|
950
945
|
*,
|
|
951
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
952
946
|
name: builtins.str = ...,
|
|
953
947
|
environment_name: builtins.str = ...,
|
|
954
948
|
) -> None: ...
|
|
955
|
-
def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "name", b"name"
|
|
949
|
+
def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "name", b"name"]) -> None: ...
|
|
956
950
|
|
|
957
951
|
global___AppGetByDeploymentNameRequest = AppGetByDeploymentNameRequest
|
|
958
952
|
|
|
@@ -2226,12 +2220,10 @@ class ClassGetRequest(google.protobuf.message.Message):
|
|
|
2226
2220
|
|
|
2227
2221
|
APP_NAME_FIELD_NUMBER: builtins.int
|
|
2228
2222
|
OBJECT_TAG_FIELD_NUMBER: builtins.int
|
|
2229
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
2230
2223
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
2231
2224
|
ONLY_CLASS_FUNCTION_FIELD_NUMBER: builtins.int
|
|
2232
2225
|
app_name: builtins.str
|
|
2233
2226
|
object_tag: builtins.str
|
|
2234
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
2235
2227
|
environment_name: builtins.str
|
|
2236
2228
|
only_class_function: builtins.bool
|
|
2237
2229
|
"""True starting with 0.67.x clients, which don't create method placeholder functions"""
|
|
@@ -2240,11 +2232,10 @@ class ClassGetRequest(google.protobuf.message.Message):
|
|
|
2240
2232
|
*,
|
|
2241
2233
|
app_name: builtins.str = ...,
|
|
2242
2234
|
object_tag: builtins.str = ...,
|
|
2243
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
2244
2235
|
environment_name: builtins.str = ...,
|
|
2245
2236
|
only_class_function: builtins.bool = ...,
|
|
2246
2237
|
) -> None: ...
|
|
2247
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "environment_name", b"environment_name", "
|
|
2238
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "environment_name", b"environment_name", "object_tag", b"object_tag", "only_class_function", b"only_class_function"]) -> None: ...
|
|
2248
2239
|
|
|
2249
2240
|
global___ClassGetRequest = ClassGetRequest
|
|
2250
2241
|
|
|
@@ -3497,12 +3488,10 @@ class DictGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
3497
3488
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
3498
3489
|
|
|
3499
3490
|
DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int
|
|
3500
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
3501
3491
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
3502
3492
|
OBJECT_CREATION_TYPE_FIELD_NUMBER: builtins.int
|
|
3503
3493
|
DATA_FIELD_NUMBER: builtins.int
|
|
3504
3494
|
deployment_name: builtins.str
|
|
3505
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
3506
3495
|
environment_name: builtins.str
|
|
3507
3496
|
object_creation_type: global___ObjectCreationType.ValueType
|
|
3508
3497
|
@property
|
|
@@ -3511,12 +3500,11 @@ class DictGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
3511
3500
|
self,
|
|
3512
3501
|
*,
|
|
3513
3502
|
deployment_name: builtins.str = ...,
|
|
3514
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
3515
3503
|
environment_name: builtins.str = ...,
|
|
3516
3504
|
object_creation_type: global___ObjectCreationType.ValueType = ...,
|
|
3517
3505
|
data: collections.abc.Iterable[global___DictEntry] | None = ...,
|
|
3518
3506
|
) -> None: ...
|
|
3519
|
-
def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "deployment_name", b"deployment_name", "environment_name", b"environment_name", "
|
|
3507
|
+
def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "deployment_name", b"deployment_name", "environment_name", b"environment_name", "object_creation_type", b"object_creation_type"]) -> None: ...
|
|
3520
3508
|
|
|
3521
3509
|
global___DictGetOrCreateRequest = DictGetOrCreateRequest
|
|
3522
3510
|
|
|
@@ -5330,21 +5318,18 @@ class FunctionGetRequest(google.protobuf.message.Message):
|
|
|
5330
5318
|
|
|
5331
5319
|
APP_NAME_FIELD_NUMBER: builtins.int
|
|
5332
5320
|
OBJECT_TAG_FIELD_NUMBER: builtins.int
|
|
5333
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
5334
5321
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
5335
5322
|
app_name: builtins.str
|
|
5336
5323
|
object_tag: builtins.str
|
|
5337
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
5338
5324
|
environment_name: builtins.str
|
|
5339
5325
|
def __init__(
|
|
5340
5326
|
self,
|
|
5341
5327
|
*,
|
|
5342
5328
|
app_name: builtins.str = ...,
|
|
5343
5329
|
object_tag: builtins.str = ...,
|
|
5344
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
5345
5330
|
environment_name: builtins.str = ...,
|
|
5346
5331
|
) -> None: ...
|
|
5347
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "environment_name", b"environment_name", "
|
|
5332
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "environment_name", b"environment_name", "object_tag", b"object_tag"]) -> None: ...
|
|
5348
5333
|
|
|
5349
5334
|
global___FunctionGetRequest = FunctionGetRequest
|
|
5350
5335
|
|
|
@@ -7273,11 +7258,9 @@ class ProxyGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
7273
7258
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
7274
7259
|
|
|
7275
7260
|
DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int
|
|
7276
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
7277
7261
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
7278
7262
|
OBJECT_CREATION_TYPE_FIELD_NUMBER: builtins.int
|
|
7279
7263
|
deployment_name: builtins.str
|
|
7280
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
7281
7264
|
environment_name: builtins.str
|
|
7282
7265
|
object_creation_type: global___ObjectCreationType.ValueType
|
|
7283
7266
|
"""must be UNSPECIFIED"""
|
|
@@ -7285,11 +7268,10 @@ class ProxyGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
7285
7268
|
self,
|
|
7286
7269
|
*,
|
|
7287
7270
|
deployment_name: builtins.str = ...,
|
|
7288
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
7289
7271
|
environment_name: builtins.str = ...,
|
|
7290
7272
|
object_creation_type: global___ObjectCreationType.ValueType = ...,
|
|
7291
7273
|
) -> None: ...
|
|
7292
|
-
def ClearField(self, field_name: typing_extensions.Literal["deployment_name", b"deployment_name", "environment_name", b"environment_name", "
|
|
7274
|
+
def ClearField(self, field_name: typing_extensions.Literal["deployment_name", b"deployment_name", "environment_name", b"environment_name", "object_creation_type", b"object_creation_type"]) -> None: ...
|
|
7293
7275
|
|
|
7294
7276
|
global___ProxyGetOrCreateRequest = ProxyGetOrCreateRequest
|
|
7295
7277
|
|
|
@@ -7456,22 +7438,19 @@ class QueueGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
7456
7438
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
7457
7439
|
|
|
7458
7440
|
DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int
|
|
7459
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
7460
7441
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
7461
7442
|
OBJECT_CREATION_TYPE_FIELD_NUMBER: builtins.int
|
|
7462
7443
|
deployment_name: builtins.str
|
|
7463
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
7464
7444
|
environment_name: builtins.str
|
|
7465
7445
|
object_creation_type: global___ObjectCreationType.ValueType
|
|
7466
7446
|
def __init__(
|
|
7467
7447
|
self,
|
|
7468
7448
|
*,
|
|
7469
7449
|
deployment_name: builtins.str = ...,
|
|
7470
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
7471
7450
|
environment_name: builtins.str = ...,
|
|
7472
7451
|
object_creation_type: global___ObjectCreationType.ValueType = ...,
|
|
7473
7452
|
) -> None: ...
|
|
7474
|
-
def ClearField(self, field_name: typing_extensions.Literal["deployment_name", b"deployment_name", "environment_name", b"environment_name", "
|
|
7453
|
+
def ClearField(self, field_name: typing_extensions.Literal["deployment_name", b"deployment_name", "environment_name", b"environment_name", "object_creation_type", b"object_creation_type"]) -> None: ...
|
|
7475
7454
|
|
|
7476
7455
|
global___QueueGetOrCreateRequest = QueueGetOrCreateRequest
|
|
7477
7456
|
|
|
@@ -8764,14 +8743,12 @@ class SecretGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
8764
8743
|
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
8765
8744
|
|
|
8766
8745
|
DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int
|
|
8767
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
8768
8746
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
8769
8747
|
OBJECT_CREATION_TYPE_FIELD_NUMBER: builtins.int
|
|
8770
8748
|
ENV_DICT_FIELD_NUMBER: builtins.int
|
|
8771
8749
|
APP_ID_FIELD_NUMBER: builtins.int
|
|
8772
8750
|
REQUIRED_KEYS_FIELD_NUMBER: builtins.int
|
|
8773
8751
|
deployment_name: builtins.str
|
|
8774
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
8775
8752
|
environment_name: builtins.str
|
|
8776
8753
|
object_creation_type: global___ObjectCreationType.ValueType
|
|
8777
8754
|
"""Not used atm"""
|
|
@@ -8785,14 +8762,13 @@ class SecretGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
8785
8762
|
self,
|
|
8786
8763
|
*,
|
|
8787
8764
|
deployment_name: builtins.str = ...,
|
|
8788
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
8789
8765
|
environment_name: builtins.str = ...,
|
|
8790
8766
|
object_creation_type: global___ObjectCreationType.ValueType = ...,
|
|
8791
8767
|
env_dict: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
8792
8768
|
app_id: builtins.str = ...,
|
|
8793
8769
|
required_keys: collections.abc.Iterable[builtins.str] | None = ...,
|
|
8794
8770
|
) -> None: ...
|
|
8795
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "deployment_name", b"deployment_name", "env_dict", b"env_dict", "environment_name", b"environment_name", "
|
|
8771
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "deployment_name", b"deployment_name", "env_dict", b"env_dict", "environment_name", b"environment_name", "object_creation_type", b"object_creation_type", "required_keys", b"required_keys"]) -> None: ...
|
|
8796
8772
|
|
|
8797
8773
|
global___SecretGetOrCreateRequest = SecretGetOrCreateRequest
|
|
8798
8774
|
|
|
@@ -8924,12 +8900,10 @@ class SharedVolumeGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
8924
8900
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8925
8901
|
|
|
8926
8902
|
DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int
|
|
8927
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
8928
8903
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
8929
8904
|
OBJECT_CREATION_TYPE_FIELD_NUMBER: builtins.int
|
|
8930
8905
|
APP_ID_FIELD_NUMBER: builtins.int
|
|
8931
8906
|
deployment_name: builtins.str
|
|
8932
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
8933
8907
|
environment_name: builtins.str
|
|
8934
8908
|
object_creation_type: global___ObjectCreationType.ValueType
|
|
8935
8909
|
app_id: builtins.str
|
|
@@ -8938,12 +8912,11 @@ class SharedVolumeGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
8938
8912
|
self,
|
|
8939
8913
|
*,
|
|
8940
8914
|
deployment_name: builtins.str = ...,
|
|
8941
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
8942
8915
|
environment_name: builtins.str = ...,
|
|
8943
8916
|
object_creation_type: global___ObjectCreationType.ValueType = ...,
|
|
8944
8917
|
app_id: builtins.str = ...,
|
|
8945
8918
|
) -> None: ...
|
|
8946
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "deployment_name", b"deployment_name", "environment_name", b"environment_name", "
|
|
8919
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "deployment_name", b"deployment_name", "environment_name", b"environment_name", "object_creation_type", b"object_creation_type"]) -> None: ...
|
|
8947
8920
|
|
|
8948
8921
|
global___SharedVolumeGetOrCreateRequest = SharedVolumeGetOrCreateRequest
|
|
8949
8922
|
|
|
@@ -9877,13 +9850,11 @@ class VolumeGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
9877
9850
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
9878
9851
|
|
|
9879
9852
|
DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int
|
|
9880
|
-
NAMESPACE_FIELD_NUMBER: builtins.int
|
|
9881
9853
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
|
9882
9854
|
OBJECT_CREATION_TYPE_FIELD_NUMBER: builtins.int
|
|
9883
9855
|
APP_ID_FIELD_NUMBER: builtins.int
|
|
9884
9856
|
VERSION_FIELD_NUMBER: builtins.int
|
|
9885
9857
|
deployment_name: builtins.str
|
|
9886
|
-
namespace: global___DeploymentNamespace.ValueType
|
|
9887
9858
|
environment_name: builtins.str
|
|
9888
9859
|
object_creation_type: global___ObjectCreationType.ValueType
|
|
9889
9860
|
app_id: builtins.str
|
|
@@ -9893,13 +9864,12 @@ class VolumeGetOrCreateRequest(google.protobuf.message.Message):
|
|
|
9893
9864
|
self,
|
|
9894
9865
|
*,
|
|
9895
9866
|
deployment_name: builtins.str = ...,
|
|
9896
|
-
namespace: global___DeploymentNamespace.ValueType = ...,
|
|
9897
9867
|
environment_name: builtins.str = ...,
|
|
9898
9868
|
object_creation_type: global___ObjectCreationType.ValueType = ...,
|
|
9899
9869
|
app_id: builtins.str = ...,
|
|
9900
9870
|
version: global___VolumeFsVersion.ValueType = ...,
|
|
9901
9871
|
) -> None: ...
|
|
9902
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "deployment_name", b"deployment_name", "environment_name", b"environment_name", "
|
|
9872
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "deployment_name", b"deployment_name", "environment_name", b"environment_name", "object_creation_type", b"object_creation_type", "version", b"version"]) -> None: ...
|
|
9903
9873
|
|
|
9904
9874
|
global___VolumeGetOrCreateRequest = VolumeGetOrCreateRequest
|
|
9905
9875
|
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|