modal 0.68.11__py3-none-any.whl → 0.68.31__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/__init__.py +2 -0
- modal/_ipython.py +3 -13
- modal/_runtime/asgi.py +4 -0
- modal/_runtime/user_code_imports.py +13 -18
- modal/_utils/blob_utils.py +27 -92
- modal/_utils/bytes_io_segment_payload.py +97 -0
- modal/_utils/deprecation.py +44 -0
- modal/_utils/hash_utils.py +38 -9
- modal/_utils/http_utils.py +19 -10
- modal/_utils/{pattern_matcher.py → pattern_utils.py} +1 -70
- modal/_utils/shell_utils.py +11 -5
- modal/app.py +11 -31
- modal/app.pyi +3 -4
- modal/cli/app.py +1 -1
- modal/cli/run.py +25 -5
- modal/client.py +1 -1
- modal/client.pyi +2 -2
- modal/config.py +2 -1
- modal/container_process.py +2 -1
- modal/dict.py +2 -1
- modal/exception.py +0 -54
- modal/file_io.py +54 -7
- modal/file_io.pyi +18 -8
- modal/file_pattern_matcher.py +154 -0
- modal/functions.py +2 -8
- modal/functions.pyi +5 -1
- modal/image.py +106 -10
- modal/image.pyi +36 -6
- modal/mount.py +49 -9
- modal/mount.pyi +19 -4
- modal/network_file_system.py +6 -2
- modal/partial_function.py +10 -1
- modal/partial_function.pyi +8 -0
- modal/queue.py +2 -1
- modal/runner.py +2 -7
- modal/sandbox.py +23 -13
- modal/sandbox.pyi +21 -0
- modal/serving.py +1 -1
- modal/volume.py +7 -2
- {modal-0.68.11.dist-info → modal-0.68.31.dist-info}/METADATA +1 -1
- {modal-0.68.11.dist-info → modal-0.68.31.dist-info}/RECORD +49 -46
- modal_proto/api.proto +8 -0
- modal_proto/api_pb2.py +781 -745
- modal_proto/api_pb2.pyi +65 -3
- modal_version/_version_generated.py +1 -1
- {modal-0.68.11.dist-info → modal-0.68.31.dist-info}/LICENSE +0 -0
- {modal-0.68.11.dist-info → modal-0.68.31.dist-info}/WHEEL +0 -0
- {modal-0.68.11.dist-info → modal-0.68.31.dist-info}/entry_points.txt +0 -0
- {modal-0.68.11.dist-info → modal-0.68.31.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -1036,6 +1036,61 @@ class AppHeartbeatRequest(google.protobuf.message.Message):
|
|
1036
1036
|
|
1037
1037
|
global___AppHeartbeatRequest = AppHeartbeatRequest
|
1038
1038
|
|
1039
|
+
class AppLayout(google.protobuf.message.Message):
|
1040
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1041
|
+
|
1042
|
+
class FunctionIdsEntry(google.protobuf.message.Message):
|
1043
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1044
|
+
|
1045
|
+
KEY_FIELD_NUMBER: builtins.int
|
1046
|
+
VALUE_FIELD_NUMBER: builtins.int
|
1047
|
+
key: builtins.str
|
1048
|
+
value: builtins.str
|
1049
|
+
def __init__(
|
1050
|
+
self,
|
1051
|
+
*,
|
1052
|
+
key: builtins.str = ...,
|
1053
|
+
value: builtins.str = ...,
|
1054
|
+
) -> None: ...
|
1055
|
+
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
|
1056
|
+
|
1057
|
+
class ClassIdsEntry(google.protobuf.message.Message):
|
1058
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1059
|
+
|
1060
|
+
KEY_FIELD_NUMBER: builtins.int
|
1061
|
+
VALUE_FIELD_NUMBER: builtins.int
|
1062
|
+
key: builtins.str
|
1063
|
+
value: builtins.str
|
1064
|
+
def __init__(
|
1065
|
+
self,
|
1066
|
+
*,
|
1067
|
+
key: builtins.str = ...,
|
1068
|
+
value: builtins.str = ...,
|
1069
|
+
) -> None: ...
|
1070
|
+
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
|
1071
|
+
|
1072
|
+
OBJECTS_FIELD_NUMBER: builtins.int
|
1073
|
+
FUNCTION_IDS_FIELD_NUMBER: builtins.int
|
1074
|
+
CLASS_IDS_FIELD_NUMBER: builtins.int
|
1075
|
+
@property
|
1076
|
+
def objects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Object]: ...
|
1077
|
+
@property
|
1078
|
+
def function_ids(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
1079
|
+
"""tag -> function id"""
|
1080
|
+
@property
|
1081
|
+
def class_ids(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
1082
|
+
"""tag -> class id"""
|
1083
|
+
def __init__(
|
1084
|
+
self,
|
1085
|
+
*,
|
1086
|
+
objects: collections.abc.Iterable[global___Object] | None = ...,
|
1087
|
+
function_ids: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
1088
|
+
class_ids: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
1089
|
+
) -> None: ...
|
1090
|
+
def ClearField(self, field_name: typing_extensions.Literal["class_ids", b"class_ids", "function_ids", b"function_ids", "objects", b"objects"]) -> None: ...
|
1091
|
+
|
1092
|
+
global___AppLayout = AppLayout
|
1093
|
+
|
1039
1094
|
class AppListRequest(google.protobuf.message.Message):
|
1040
1095
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1041
1096
|
|
@@ -2199,6 +2254,7 @@ class ContainerArguments(google.protobuf.message.Message):
|
|
2199
2254
|
RUNTIME_FIELD_NUMBER: builtins.int
|
2200
2255
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
2201
2256
|
CHECKPOINT_ID_FIELD_NUMBER: builtins.int
|
2257
|
+
APP_LAYOUT_FIELD_NUMBER: builtins.int
|
2202
2258
|
task_id: builtins.str
|
2203
2259
|
function_id: builtins.str
|
2204
2260
|
app_id: builtins.str
|
@@ -2212,6 +2268,8 @@ class ContainerArguments(google.protobuf.message.Message):
|
|
2212
2268
|
runtime: builtins.str
|
2213
2269
|
environment_name: builtins.str
|
2214
2270
|
checkpoint_id: builtins.str
|
2271
|
+
@property
|
2272
|
+
def app_layout(self) -> global___AppLayout: ...
|
2215
2273
|
def __init__(
|
2216
2274
|
self,
|
2217
2275
|
*,
|
@@ -2225,9 +2283,10 @@ class ContainerArguments(google.protobuf.message.Message):
|
|
2225
2283
|
runtime: builtins.str = ...,
|
2226
2284
|
environment_name: builtins.str = ...,
|
2227
2285
|
checkpoint_id: builtins.str | None = ...,
|
2286
|
+
app_layout: global___AppLayout | None = ...,
|
2228
2287
|
) -> None: ...
|
2229
|
-
def HasField(self, field_name: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id", "checkpoint_id", b"checkpoint_id", "function_def", b"function_def", "proxy_info", b"proxy_info"]) -> builtins.bool: ...
|
2230
|
-
def ClearField(self, field_name: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id", "app_id", b"app_id", "checkpoint_id", b"checkpoint_id", "environment_name", b"environment_name", "function_def", b"function_def", "function_id", b"function_id", "proxy_info", b"proxy_info", "runtime", b"runtime", "serialized_params", b"serialized_params", "task_id", b"task_id", "tracing_context", b"tracing_context"]) -> None: ...
|
2288
|
+
def HasField(self, field_name: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id", "app_layout", b"app_layout", "checkpoint_id", b"checkpoint_id", "function_def", b"function_def", "proxy_info", b"proxy_info"]) -> builtins.bool: ...
|
2289
|
+
def ClearField(self, field_name: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id", "app_id", b"app_id", "app_layout", b"app_layout", "checkpoint_id", b"checkpoint_id", "environment_name", b"environment_name", "function_def", b"function_def", "function_id", b"function_id", "proxy_info", b"proxy_info", "runtime", b"runtime", "serialized_params", b"serialized_params", "task_id", b"task_id", "tracing_context", b"tracing_context"]) -> None: ...
|
2231
2290
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id"]) -> typing_extensions.Literal["checkpoint_id"] | None: ...
|
2232
2291
|
|
2233
2292
|
global___ContainerArguments = ContainerArguments
|
@@ -8662,6 +8721,7 @@ class WebhookConfig(google.protobuf.message.Message):
|
|
8662
8721
|
WEB_SERVER_PORT_FIELD_NUMBER: builtins.int
|
8663
8722
|
WEB_SERVER_STARTUP_TIMEOUT_FIELD_NUMBER: builtins.int
|
8664
8723
|
WEB_ENDPOINT_DOCS_FIELD_NUMBER: builtins.int
|
8724
|
+
REQUIRES_PROXY_AUTH_FIELD_NUMBER: builtins.int
|
8665
8725
|
type: global___WebhookType.ValueType
|
8666
8726
|
method: builtins.str
|
8667
8727
|
requested_suffix: builtins.str
|
@@ -8671,6 +8731,7 @@ class WebhookConfig(google.protobuf.message.Message):
|
|
8671
8731
|
web_server_port: builtins.int
|
8672
8732
|
web_server_startup_timeout: builtins.float
|
8673
8733
|
web_endpoint_docs: builtins.bool
|
8734
|
+
requires_proxy_auth: builtins.bool
|
8674
8735
|
def __init__(
|
8675
8736
|
self,
|
8676
8737
|
*,
|
@@ -8682,8 +8743,9 @@ class WebhookConfig(google.protobuf.message.Message):
|
|
8682
8743
|
web_server_port: builtins.int = ...,
|
8683
8744
|
web_server_startup_timeout: builtins.float = ...,
|
8684
8745
|
web_endpoint_docs: builtins.bool = ...,
|
8746
|
+
requires_proxy_auth: builtins.bool = ...,
|
8685
8747
|
) -> None: ...
|
8686
|
-
def ClearField(self, field_name: typing_extensions.Literal["async_mode", b"async_mode", "custom_domains", b"custom_domains", "method", b"method", "requested_suffix", b"requested_suffix", "type", b"type", "web_endpoint_docs", b"web_endpoint_docs", "web_server_port", b"web_server_port", "web_server_startup_timeout", b"web_server_startup_timeout"]) -> None: ...
|
8748
|
+
def ClearField(self, field_name: typing_extensions.Literal["async_mode", b"async_mode", "custom_domains", b"custom_domains", "method", b"method", "requested_suffix", b"requested_suffix", "requires_proxy_auth", b"requires_proxy_auth", "type", b"type", "web_endpoint_docs", b"web_endpoint_docs", "web_server_port", b"web_server_port", "web_server_startup_timeout", b"web_server_startup_timeout"]) -> None: ...
|
8687
8749
|
|
8688
8750
|
global___WebhookConfig = WebhookConfig
|
8689
8751
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|