modal 1.1.5.dev45__py3-none-any.whl → 1.1.5.dev46__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/client.pyi +2 -2
- {modal-1.1.5.dev45.dist-info → modal-1.1.5.dev46.dist-info}/METADATA +1 -1
- {modal-1.1.5.dev45.dist-info → modal-1.1.5.dev46.dist-info}/RECORD +15 -15
- modal_proto/api.proto +13 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +343 -323
- modal_proto/api_pb2.pyi +36 -0
- modal_proto/api_pb2_grpc.py +33 -0
- modal_proto/api_pb2_grpc.pyi +10 -0
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/__init__.py +1 -1
- {modal-1.1.5.dev45.dist-info → modal-1.1.5.dev46.dist-info}/WHEEL +0 -0
- {modal-1.1.5.dev45.dist-info → modal-1.1.5.dev46.dist-info}/entry_points.txt +0 -0
- {modal-1.1.5.dev45.dist-info → modal-1.1.5.dev46.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.5.dev45.dist-info → modal-1.1.5.dev46.dist-info}/top_level.txt +0 -0
modal/client.pyi
CHANGED
|
@@ -33,7 +33,7 @@ class _Client:
|
|
|
33
33
|
server_url: str,
|
|
34
34
|
client_type: int,
|
|
35
35
|
credentials: typing.Optional[tuple[str, str]],
|
|
36
|
-
version: str = "1.1.5.
|
|
36
|
+
version: str = "1.1.5.dev46",
|
|
37
37
|
):
|
|
38
38
|
"""mdmd:hidden
|
|
39
39
|
The Modal client object is not intended to be instantiated directly by users.
|
|
@@ -164,7 +164,7 @@ class Client:
|
|
|
164
164
|
server_url: str,
|
|
165
165
|
client_type: int,
|
|
166
166
|
credentials: typing.Optional[tuple[str, str]],
|
|
167
|
-
version: str = "1.1.5.
|
|
167
|
+
version: str = "1.1.5.dev46",
|
|
168
168
|
):
|
|
169
169
|
"""mdmd:hidden
|
|
170
170
|
The Modal client object is not intended to be instantiated directly by users.
|
|
@@ -22,7 +22,7 @@ modal/app.py,sha256=Escm3cNiy0cXnVazO85BQgBItGeNXSfxqNEFiqcxqXk,49159
|
|
|
22
22
|
modal/app.pyi,sha256=KzBPGM8nJc-y_79jNYlSXb6iseG0Sn0Mk73Lq5zTlfA,44167
|
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
|
24
24
|
modal/client.py,sha256=kyAIVB3Ay-XKJizQ_1ufUFB__EagV0MLmHJpyYyJ7J0,18636
|
|
25
|
-
modal/client.pyi,sha256=
|
|
25
|
+
modal/client.pyi,sha256=_t1pvWcz5lYgrbG1pwRcAYGSrJeL6LqLvza6ya_vgjc,15831
|
|
26
26
|
modal/cloud_bucket_mount.py,sha256=I2GRXYhOWLIz2kJZjXu75jAm9EJkBNcutGc6jR2ReUw,5928
|
|
27
27
|
modal/cloud_bucket_mount.pyi,sha256=VuUOipMIHqFXMkD-3g2bsoqpSxV5qswlFHDOqPQzYAo,7405
|
|
28
28
|
modal/cls.py,sha256=R1uLQbdqWRRjvxs0I57a4hZZELZkBVCxOKxvKryU5_s,41639
|
|
@@ -153,7 +153,7 @@ modal/experimental/__init__.py,sha256=fCqzo_f3vcY750vHtd7CtLs5dvdM_C0ZLLGb3zXuK9
|
|
|
153
153
|
modal/experimental/flash.py,sha256=7qRAL2Nrwbb60YKobcnpM0zJ8vw4xGJqabLPFgEzMZE,28295
|
|
154
154
|
modal/experimental/flash.pyi,sha256=R9VV0UDotiY9BRUjacB-xI4qhR3yBymAvEZFRFHztLs,15143
|
|
155
155
|
modal/experimental/ipython.py,sha256=TrCfmol9LGsRZMeDoeMPx3Hv3BFqQhYnmD_iH0pqdhk,2904
|
|
156
|
-
modal-1.1.5.
|
|
156
|
+
modal-1.1.5.dev46.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
157
157
|
modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
|
158
158
|
modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
|
|
159
159
|
modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
|
|
@@ -161,13 +161,13 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
|
|
|
161
161
|
modal_docs/mdmd/mdmd.py,sha256=tUTImNd4UMFk1opkaw8J672gX8AkBO5gbY2S_NMxsxs,7140
|
|
162
162
|
modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
|
|
163
163
|
modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
|
|
164
|
-
modal_proto/api.proto,sha256=
|
|
165
|
-
modal_proto/api_grpc.py,sha256
|
|
166
|
-
modal_proto/api_pb2.py,sha256=
|
|
167
|
-
modal_proto/api_pb2.pyi,sha256=
|
|
168
|
-
modal_proto/api_pb2_grpc.py,sha256=
|
|
169
|
-
modal_proto/api_pb2_grpc.pyi,sha256=
|
|
170
|
-
modal_proto/modal_api_grpc.py,sha256=
|
|
164
|
+
modal_proto/api.proto,sha256=W1qPmNr6nIQvouOOwvA-PMAk-nbc7YRRfg52JG6ekkM,108734
|
|
165
|
+
modal_proto/api_grpc.py,sha256=2KC4gGgqj7FahTrmZD5Gvxs2yV9_5l65yWjLuEd5dNQ,132154
|
|
166
|
+
modal_proto/api_pb2.py,sha256=BUb2UKt_whSE3eZxCHOsTpWI15F8VwIlnV1nBl9vzsE,378988
|
|
167
|
+
modal_proto/api_pb2.pyi,sha256=T-FAXdzqDeQ9kDOurkF-nPyRkxQY45dqydQ5kda-XFY,523763
|
|
168
|
+
modal_proto/api_pb2_grpc.py,sha256=nh3_94du1FMglF7sgVfk-s3XCl4vc07Mu-6qe6e0DdY,284763
|
|
169
|
+
modal_proto/api_pb2_grpc.pyi,sha256=7X2WZeHyKJWsyEXyzoOdLlU3NT7jhWbaWDZw_-C6EeU,66726
|
|
170
|
+
modal_proto/modal_api_grpc.py,sha256=UTgAj4GMOSZmwJBgrhZYnKOyWP1rQQS_HSnlfKkKT5s,19929
|
|
171
171
|
modal_proto/modal_options_grpc.py,sha256=qJ1cuwA54oRqrdTyPTbvfhFZYd9HhJKK5UCwt523r3Y,120
|
|
172
172
|
modal_proto/options.proto,sha256=zp9h5r61ivsp0XwEWwNBsVqNTbRA1VSY_UtN7sEcHtE,549
|
|
173
173
|
modal_proto/options_grpc.py,sha256=M18X3d-8F_cNYSVM3I25dUTO5rZ0rd-vCCfynfh13Nc,125
|
|
@@ -182,10 +182,10 @@ modal_proto/sandbox_router_pb2.py,sha256=INd9izYaIYqllESQt4MSv2Rj9Hf5bMjAvtCc9b4
|
|
|
182
182
|
modal_proto/sandbox_router_pb2.pyi,sha256=YCK0WnCgRos3-p7t4USQQ7x6WAuM278yeQX2IeU5mLg,13295
|
|
183
183
|
modal_proto/sandbox_router_pb2_grpc.py,sha256=zonC5flvCwxeZYJPENj1IJo2Mr0J58DpoC1_8IdPYik,8243
|
|
184
184
|
modal_proto/sandbox_router_pb2_grpc.pyi,sha256=4QgCB9b7_ykvH8YD-hfnogVH9CLyHVDC5QNb03l4_X8,2735
|
|
185
|
-
modal_version/__init__.py,sha256=
|
|
185
|
+
modal_version/__init__.py,sha256=inTfu4X_ktIniXSpovrFrc423h5EFEfdFuAIr8vSaIs,121
|
|
186
186
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
|
187
|
-
modal-1.1.5.
|
|
188
|
-
modal-1.1.5.
|
|
189
|
-
modal-1.1.5.
|
|
190
|
-
modal-1.1.5.
|
|
191
|
-
modal-1.1.5.
|
|
187
|
+
modal-1.1.5.dev46.dist-info/METADATA,sha256=TUAblWf8HEoo1eyE0NlwOnXfPl5WAn1NJt5eVm8WIr8,2481
|
|
188
|
+
modal-1.1.5.dev46.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
|
189
|
+
modal-1.1.5.dev46.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
|
190
|
+
modal-1.1.5.dev46.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
|
191
|
+
modal-1.1.5.dev46.dist-info/RECORD,,
|
modal_proto/api.proto
CHANGED
|
@@ -2729,6 +2729,18 @@ message SandboxCreateResponse {
|
|
|
2729
2729
|
string sandbox_id = 1;
|
|
2730
2730
|
}
|
|
2731
2731
|
|
|
2732
|
+
// Used to get a JWT and URL for direct access to a sandbox router server
|
|
2733
|
+
// running on the modal-worker, so the client can issue exec commands (and other
|
|
2734
|
+
// operations as they become available) directly to the worker.
|
|
2735
|
+
message SandboxGetCommandRouterAccessRequest {
|
|
2736
|
+
string sandbox_id = 1;
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
message SandboxGetCommandRouterAccessResponse {
|
|
2740
|
+
string jwt = 1;
|
|
2741
|
+
string url = 2;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2732
2744
|
message SandboxGetFromNameRequest {
|
|
2733
2745
|
string sandbox_name = 1;
|
|
2734
2746
|
string environment_name = 2;
|
|
@@ -3679,6 +3691,7 @@ service ModalClient {
|
|
|
3679
3691
|
// Sandboxes
|
|
3680
3692
|
rpc SandboxCreate(SandboxCreateRequest) returns (SandboxCreateResponse);
|
|
3681
3693
|
rpc SandboxCreateConnectToken(SandboxCreateConnectTokenRequest) returns (SandboxCreateConnectTokenResponse);
|
|
3694
|
+
rpc SandboxGetCommandRouterAccess(SandboxGetCommandRouterAccessRequest) returns (SandboxGetCommandRouterAccessResponse);
|
|
3682
3695
|
rpc SandboxGetFromName(SandboxGetFromNameRequest) returns (SandboxGetFromNameResponse);
|
|
3683
3696
|
rpc SandboxGetLogs(SandboxGetLogsRequest) returns (stream TaskLogsBatch);
|
|
3684
3697
|
rpc SandboxGetResourceUsage(SandboxGetResourceUsageRequest) returns (SandboxGetResourceUsageResponse);
|
modal_proto/api_grpc.py
CHANGED
|
@@ -470,6 +470,10 @@ class ModalClientBase(abc.ABC):
|
|
|
470
470
|
async def SandboxCreateConnectToken(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.SandboxCreateConnectTokenRequest, modal_proto.api_pb2.SandboxCreateConnectTokenResponse]') -> None:
|
|
471
471
|
pass
|
|
472
472
|
|
|
473
|
+
@abc.abstractmethod
|
|
474
|
+
async def SandboxGetCommandRouterAccess(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.SandboxGetCommandRouterAccessRequest, modal_proto.api_pb2.SandboxGetCommandRouterAccessResponse]') -> None:
|
|
475
|
+
pass
|
|
476
|
+
|
|
473
477
|
@abc.abstractmethod
|
|
474
478
|
async def SandboxGetFromName(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.SandboxGetFromNameRequest, modal_proto.api_pb2.SandboxGetFromNameResponse]') -> None:
|
|
475
479
|
pass
|
|
@@ -1378,6 +1382,12 @@ class ModalClientBase(abc.ABC):
|
|
|
1378
1382
|
modal_proto.api_pb2.SandboxCreateConnectTokenRequest,
|
|
1379
1383
|
modal_proto.api_pb2.SandboxCreateConnectTokenResponse,
|
|
1380
1384
|
),
|
|
1385
|
+
'/modal.client.ModalClient/SandboxGetCommandRouterAccess': grpclib.const.Handler(
|
|
1386
|
+
self.SandboxGetCommandRouterAccess,
|
|
1387
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
1388
|
+
modal_proto.api_pb2.SandboxGetCommandRouterAccessRequest,
|
|
1389
|
+
modal_proto.api_pb2.SandboxGetCommandRouterAccessResponse,
|
|
1390
|
+
),
|
|
1381
1391
|
'/modal.client.ModalClient/SandboxGetFromName': grpclib.const.Handler(
|
|
1382
1392
|
self.SandboxGetFromName,
|
|
1383
1393
|
grpclib.const.Cardinality.UNARY_UNARY,
|
|
@@ -2404,6 +2414,12 @@ class ModalClientStub:
|
|
|
2404
2414
|
modal_proto.api_pb2.SandboxCreateConnectTokenRequest,
|
|
2405
2415
|
modal_proto.api_pb2.SandboxCreateConnectTokenResponse,
|
|
2406
2416
|
)
|
|
2417
|
+
self.SandboxGetCommandRouterAccess = grpclib.client.UnaryUnaryMethod(
|
|
2418
|
+
channel,
|
|
2419
|
+
'/modal.client.ModalClient/SandboxGetCommandRouterAccess',
|
|
2420
|
+
modal_proto.api_pb2.SandboxGetCommandRouterAccessRequest,
|
|
2421
|
+
modal_proto.api_pb2.SandboxGetCommandRouterAccessResponse,
|
|
2422
|
+
)
|
|
2407
2423
|
self.SandboxGetFromName = grpclib.client.UnaryUnaryMethod(
|
|
2408
2424
|
channel,
|
|
2409
2425
|
'/modal.client.ModalClient/SandboxGetFromName',
|