modal 0.67.42__py3-none-any.whl → 0.68.11__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/_container_entrypoint.py +4 -1
- modal/_runtime/container_io_manager.py +3 -0
- modal/_runtime/user_code_imports.py +4 -2
- modal/_traceback.py +16 -2
- modal/_utils/function_utils.py +5 -1
- modal/_utils/grpc_testing.py +6 -2
- modal/_utils/hash_utils.py +14 -2
- modal/cli/_traceback.py +11 -4
- modal/cli/container.py +16 -5
- modal/cli/run.py +23 -21
- modal/cli/utils.py +4 -0
- modal/client.py +6 -37
- modal/client.pyi +2 -6
- modal/cls.py +132 -62
- modal/cls.pyi +13 -7
- modal/container_process.py +10 -3
- modal/container_process.pyi +3 -3
- modal/exception.py +20 -0
- modal/file_io.py +380 -0
- modal/file_io.pyi +185 -0
- modal/functions.py +33 -11
- modal/functions.pyi +11 -9
- modal/object.py +4 -2
- modal/partial_function.py +14 -10
- modal/partial_function.pyi +2 -2
- modal/runner.py +19 -7
- modal/runner.pyi +11 -4
- modal/sandbox.py +50 -3
- modal/sandbox.pyi +18 -0
- {modal-0.67.42.dist-info → modal-0.68.11.dist-info}/METADATA +2 -2
- {modal-0.67.42.dist-info → modal-0.68.11.dist-info}/RECORD +41 -39
- modal_docs/gen_reference_docs.py +1 -0
- modal_proto/api.proto +25 -1
- modal_proto/api_pb2.py +758 -718
- modal_proto/api_pb2.pyi +95 -10
- modal_version/__init__.py +1 -1
- modal_version/_version_generated.py +1 -1
- {modal-0.67.42.dist-info → modal-0.68.11.dist-info}/LICENSE +0 -0
- {modal-0.67.42.dist-info → modal-0.68.11.dist-info}/WHEEL +0 -0
- {modal-0.67.42.dist-info → modal-0.68.11.dist-info}/entry_points.txt +0 -0
- {modal-0.67.42.dist-info → modal-0.68.11.dist-info}/top_level.txt +0 -0
modal_proto/api.proto
CHANGED
@@ -400,7 +400,6 @@ message AppPublishRequest {
|
|
400
400
|
|
401
401
|
message AppPublishResponse {
|
402
402
|
string url = 1;
|
403
|
-
repeated string warnings = 2; // Deprecated soon in favor of server_warnings
|
404
403
|
repeated Warning server_warnings = 3;
|
405
404
|
}
|
406
405
|
|
@@ -679,6 +678,7 @@ message ClassParameterValue {
|
|
679
678
|
message ClientHelloResponse {
|
680
679
|
string warning = 1;
|
681
680
|
string image_builder_version = 2; // Deprecated, no longer used in client
|
681
|
+
repeated Warning server_warnings = 4;
|
682
682
|
}
|
683
683
|
|
684
684
|
message CloudBucketMount {
|
@@ -772,6 +772,15 @@ message ContainerFileFlushRequest {
|
|
772
772
|
string file_descriptor = 1;
|
773
773
|
}
|
774
774
|
|
775
|
+
message ContainerFileLsRequest {
|
776
|
+
string path = 1;
|
777
|
+
}
|
778
|
+
|
779
|
+
message ContainerFileMkdirRequest {
|
780
|
+
string path = 1;
|
781
|
+
bool make_parents = 2;
|
782
|
+
}
|
783
|
+
|
775
784
|
message ContainerFileOpenRequest {
|
776
785
|
// file descriptor is hydrated when sent from server -> worker
|
777
786
|
optional string file_descriptor = 1;
|
@@ -788,12 +797,23 @@ message ContainerFileReadRequest {
|
|
788
797
|
optional uint32 n = 2;
|
789
798
|
}
|
790
799
|
|
800
|
+
message ContainerFileRmRequest {
|
801
|
+
string path = 1;
|
802
|
+
bool recursive = 2;
|
803
|
+
}
|
804
|
+
|
791
805
|
message ContainerFileSeekRequest {
|
792
806
|
string file_descriptor = 1;
|
793
807
|
int32 offset = 2;
|
794
808
|
SeekWhence whence = 3;
|
795
809
|
}
|
796
810
|
|
811
|
+
message ContainerFileWatchRequest {
|
812
|
+
string path = 1;
|
813
|
+
bool recursive = 2;
|
814
|
+
optional uint64 timeout_secs = 3;
|
815
|
+
}
|
816
|
+
|
797
817
|
message ContainerFileWriteReplaceBytesRequest {
|
798
818
|
string file_descriptor = 1;
|
799
819
|
bytes data = 2;
|
@@ -822,6 +842,10 @@ message ContainerFilesystemExecRequest {
|
|
822
842
|
ContainerFileDeleteBytesRequest file_delete_bytes_request = 7;
|
823
843
|
ContainerFileWriteReplaceBytesRequest file_write_replace_bytes_request = 8;
|
824
844
|
ContainerFileCloseRequest file_close_request = 9;
|
845
|
+
ContainerFileLsRequest file_ls_request = 11;
|
846
|
+
ContainerFileMkdirRequest file_mkdir_request = 12;
|
847
|
+
ContainerFileRmRequest file_rm_request = 13;
|
848
|
+
ContainerFileWatchRequest file_watch_request = 14;
|
825
849
|
}
|
826
850
|
string task_id = 10;
|
827
851
|
}
|