modAL 1.5.4.dev17__py3-none-any.whl → 1.5.4.dev18__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 +2 -2
- modal/functions.pyi +6 -6
- {modal-1.5.4.dev17.dist-info → modal-1.5.4.dev18.dist-info}/METADATA +1 -1
- {modal-1.5.4.dev17.dist-info → modal-1.5.4.dev18.dist-info}/RECORD +15 -15
- modal_proto/api_grpc.py +32 -0
- modal_proto/api_pb2.py +1355 -1292
- modal_proto/api_pb2.pyi +109 -2
- modal_proto/api_pb2_grpc.py +67 -1
- modal_proto/api_pb2_grpc.pyi +23 -3
- modal_proto/modal_api_grpc.py +2 -0
- modal_version/__init__.py +1 -1
- {modal-1.5.4.dev17.dist-info → modal-1.5.4.dev18.dist-info}/WHEEL +0 -0
- {modal-1.5.4.dev17.dist-info → modal-1.5.4.dev18.dist-info}/entry_points.txt +0 -0
- {modal-1.5.4.dev17.dist-info → modal-1.5.4.dev18.dist-info}/licenses/LICENSE +0 -0
- {modal-1.5.4.dev17.dist-info → modal-1.5.4.dev18.dist-info}/top_level.txt +0 -0
modal/client.pyi
CHANGED
|
@@ -37,7 +37,7 @@ class _Client:
|
|
|
37
37
|
server_url: str,
|
|
38
38
|
client_type: int,
|
|
39
39
|
credentials: typing.Optional[tuple[str, str]],
|
|
40
|
-
version: str = "1.5.4.
|
|
40
|
+
version: str = "1.5.4.dev18",
|
|
41
41
|
):
|
|
42
42
|
"""mdmd:hidden
|
|
43
43
|
The Modal client object is not intended to be instantiated directly by users.
|
|
@@ -207,7 +207,7 @@ class Client:
|
|
|
207
207
|
server_url: str,
|
|
208
208
|
client_type: int,
|
|
209
209
|
credentials: typing.Optional[tuple[str, str]],
|
|
210
|
-
version: str = "1.5.4.
|
|
210
|
+
version: str = "1.5.4.dev18",
|
|
211
211
|
):
|
|
212
212
|
"""mdmd:hidden
|
|
213
213
|
The Modal client object is not intended to be instantiated directly by users.
|
modal/functions.pyi
CHANGED
|
@@ -546,7 +546,7 @@ class Function(
|
|
|
546
546
|
|
|
547
547
|
_call_generator: ___call_generator_spec
|
|
548
548
|
|
|
549
|
-
class __remote_spec(typing_extensions.Protocol[
|
|
549
|
+
class __remote_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
550
550
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER:
|
|
551
551
|
"""Calls the function remotely, executing it with the given arguments and returning the execution's result.
|
|
552
552
|
|
|
@@ -571,7 +571,7 @@ class Function(
|
|
|
571
571
|
"""
|
|
572
572
|
...
|
|
573
573
|
|
|
574
|
-
remote: __remote_spec[modal._functions.
|
|
574
|
+
remote: __remote_spec[modal._functions.P, modal._functions.ReturnType]
|
|
575
575
|
|
|
576
576
|
class __remote_gen_spec(typing_extensions.Protocol):
|
|
577
577
|
def __call__(self, /, *args, **kwargs) -> typing.Generator[typing.Any, None, None]:
|
|
@@ -621,7 +621,7 @@ class Function(
|
|
|
621
621
|
"""
|
|
622
622
|
...
|
|
623
623
|
|
|
624
|
-
class ___experimental_spawn_spec(typing_extensions.Protocol[
|
|
624
|
+
class ___experimental_spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
625
625
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
|
626
626
|
"""[Experimental] Calls the function with the given arguments, without waiting for the results.
|
|
627
627
|
|
|
@@ -654,7 +654,7 @@ class Function(
|
|
|
654
654
|
"""
|
|
655
655
|
...
|
|
656
656
|
|
|
657
|
-
_experimental_spawn: ___experimental_spawn_spec[modal._functions.
|
|
657
|
+
_experimental_spawn: ___experimental_spawn_spec[modal._functions.P, modal._functions.ReturnType]
|
|
658
658
|
|
|
659
659
|
class ___spawn_map_inner_spec(typing_extensions.Protocol[P_INNER]):
|
|
660
660
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> None: ...
|
|
@@ -662,7 +662,7 @@ class Function(
|
|
|
662
662
|
|
|
663
663
|
_spawn_map_inner: ___spawn_map_inner_spec[modal._functions.P]
|
|
664
664
|
|
|
665
|
-
class __spawn_spec(typing_extensions.Protocol[
|
|
665
|
+
class __spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
666
666
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
|
667
667
|
"""Calls the function with the given arguments, without waiting for the results.
|
|
668
668
|
|
|
@@ -695,7 +695,7 @@ class Function(
|
|
|
695
695
|
"""
|
|
696
696
|
...
|
|
697
697
|
|
|
698
|
-
spawn: __spawn_spec[modal._functions.
|
|
698
|
+
spawn: __spawn_spec[modal._functions.P, modal._functions.ReturnType]
|
|
699
699
|
|
|
700
700
|
def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]:
|
|
701
701
|
"""Return the inner Python object wrapped by this Modal Function.
|
|
@@ -34,7 +34,7 @@ modal/billing.py,sha256=E1-P_P8bJFLp-bTaggYd4BaaViImPB5UdtXiY8VeAZQ,390
|
|
|
34
34
|
modal/billing.pyi,sha256=4m7VLYNS8IiJ2I3CJx0awvrOM6BILWRVLfdeqtAYr8M,7189
|
|
35
35
|
modal/call_graph.py,sha256=XGALIDn1bLchWo_goyX23bcPjzCZcfqKUo8INIfDapo,1775
|
|
36
36
|
modal/client.py,sha256=NjpAL0fIKabEaN0uXJPEoI1OTjFtXSp4tSck-M-WF3k,16360
|
|
37
|
-
modal/client.pyi,sha256=
|
|
37
|
+
modal/client.pyi,sha256=rCRNKbcJ0VDtDvWkHAeR0J7lYzl3-ddAb5-iciF2NO8,17999
|
|
38
38
|
modal/cloud_bucket_mount.py,sha256=NrdNV9r9aL3QFrlt-Dhtd7_K3f8v1igrHf2FRwgJ1CI,6827
|
|
39
39
|
modal/cloud_bucket_mount.pyi,sha256=0E8d53pMh2KsFa-rMh_i6LxlzW4cMV8drVmmkPHSqZk,8149
|
|
40
40
|
modal/cls.py,sha256=TxRxHdY4L6AZ6I16DNPgDryAkGtlFadD-Mm0ovtfN58,41206
|
|
@@ -51,7 +51,7 @@ modal/file_io.py,sha256=GYTa67mrmbTTTBsYQnb51VmwGIo0YY-1qQ3YBhagkmA,21795
|
|
|
51
51
|
modal/file_io.pyi,sha256=3181-DS07flFWLf2BKjqCOiWIjieEOolf33wx6fBp5c,15377
|
|
52
52
|
modal/file_pattern_matcher.py,sha256=CpaNNj7oBlOSewX-AAUZCF8KDxH0_DmgwzfpVGbPYJ4,8138
|
|
53
53
|
modal/functions.py,sha256=EZRcHFfnoYbvawUJnAHF5nIvoo9GX2Djy7mUmOCXmXc,258
|
|
54
|
-
modal/functions.pyi,sha256=
|
|
54
|
+
modal/functions.pyi,sha256=d_Qsid1-LZQhNmhuDGFT1xqnadxuG95gb-IFmURPh50,50868
|
|
55
55
|
modal/image.py,sha256=c0lUSAoU-Ip3g5DGZ0uhdCzoWSQWh1g0i-7Rxo-Sz-I,160
|
|
56
56
|
modal/image.pyi,sha256=R5rdY4P30IEm-F7A2S9CdXa6QYNk-pQwsEun9BKTyLw,61094
|
|
57
57
|
modal/io_streams.py,sha256=3fhhb7SDJ69pVUu9J3PiMLBePD9bpiIxPN05SCzf8FE,29118
|
|
@@ -198,7 +198,7 @@ modal/experimental/flash.py,sha256=GAJ1c-EGL8M3_loAkqr5gdUfySMHY3U_oc6RywfZ8-0,3
|
|
|
198
198
|
modal/experimental/flash.pyi,sha256=lpTqJFZRMGWscw0xpYZVdBMnAYjj16asXE4_64A6itQ,17774
|
|
199
199
|
modal/experimental/ipython.py,sha256=kJ6o9wkAY_MiSb7paewI7f1MJAeqdi8TX5pBdhr_mUI,2925
|
|
200
200
|
modal/skills/modal/SKILL.md,sha256=WzLjYJ1utjc_ZOf6qZTPwB6wxxwRYB5PibdvIf_FLy0,5316
|
|
201
|
-
modal-1.5.4.
|
|
201
|
+
modal-1.5.4.dev18.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
202
202
|
modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
|
203
203
|
modal_docs/gen_cli_docs.py,sha256=9-b8vl2EsLWD9zJqpCK8IUi5h44Bjn3i3rSdedZV4bA,6415
|
|
204
204
|
modal_docs/gen_cli_docs_main.py,sha256=UPGr7O1DYTIRLwfINe2rbdh89J3cPVTU1OWL-SjxnOQ,198
|
|
@@ -210,22 +210,22 @@ modal_docs/mdmd/mdmd.py,sha256=J49V8ak-hnF7SyBJDc-p3a_aEZpaAImkz2Rf74mDvA4,25070
|
|
|
210
210
|
modal_docs/mdmd/signatures.py,sha256=OASroKle763Kfumn4Ek4PABJXEGP56JMCTug44QoBx4,11327
|
|
211
211
|
modal_docs/mdmd/types.py,sha256=tv7fvziPr-MeDzOp4e2pK5h3d1DXTUOO74rPqDoBn6g,736
|
|
212
212
|
modal_proto/__init__.py,sha256=Hkou4lcD5tArEkW_9v9KZhLY7fl0fA9-O28beKU55pg,396
|
|
213
|
-
modal_proto/api_grpc.py,sha256=
|
|
214
|
-
modal_proto/api_pb2.py,sha256=
|
|
215
|
-
modal_proto/api_pb2.pyi,sha256
|
|
216
|
-
modal_proto/api_pb2_grpc.py,sha256=
|
|
217
|
-
modal_proto/api_pb2_grpc.pyi,sha256=
|
|
218
|
-
modal_proto/modal_api_grpc.py,sha256=
|
|
213
|
+
modal_proto/api_grpc.py,sha256=VXoPUEgKF2vQrzHmOAOsDS3FUEY-1EEiXz00hfJp28Q,185691
|
|
214
|
+
modal_proto/api_pb2.py,sha256=_-nIemFx2i-7HXy8MG0qQBzkTVgqpFP2wjaT8Yho1bg,507558
|
|
215
|
+
modal_proto/api_pb2.pyi,sha256=-ZQ54TFzOyuhGXBCvTFyAQjPfbww6n30hup3kzqeTEg,701009
|
|
216
|
+
modal_proto/api_pb2_grpc.py,sha256=YoIfayYIorepV3CB2O1bz756VKg26_A_ZLbyQgv9bew,398506
|
|
217
|
+
modal_proto/api_pb2_grpc.pyi,sha256=tBRS3fRfUQuIt2fxyQenkvG1LXiacKk2SzvOcxWoSOU,93437
|
|
218
|
+
modal_proto/modal_api_grpc.py,sha256=kyGDHYwcavvFwdHLs9mk1y7W_j8z5DpS_rJ-lijlUpw,29283
|
|
219
219
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
220
220
|
modal_proto/task_command_router_grpc.py,sha256=UurJEgLeAc2CCdEsCOFE9DgIQy1ra6bXHXJLNBK81Mg,21284
|
|
221
221
|
modal_proto/task_command_router_pb2.py,sha256=4cyDT_uPGi54blsO663bnSzUe7aBFqi9F4iM8N1JPaU,41130
|
|
222
222
|
modal_proto/task_command_router_pb2.pyi,sha256=5xfhnwtTDTmJo1Nv0tPBJrYzb0aeilY2Lm92wWT_6yw,46211
|
|
223
223
|
modal_proto/task_command_router_pb2_grpc.py,sha256=zuFkJgKcswB2ftjnyEgs70dp61VMA7gK0h0uzR3gYFw,42563
|
|
224
224
|
modal_proto/task_command_router_pb2_grpc.pyi,sha256=UjAJFqz9DpOFXP04fVm5lB2eAyTtjOg3oKjfWei8yLU,14262
|
|
225
|
-
modal_version/__init__.py,sha256=
|
|
225
|
+
modal_version/__init__.py,sha256=dWaSAlssj4CrxJLDVZdONkC6K__hRcUjkCCkGKwyP0U,121
|
|
226
226
|
modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
|
|
227
|
-
modal-1.5.4.
|
|
228
|
-
modal-1.5.4.
|
|
229
|
-
modal-1.5.4.
|
|
230
|
-
modal-1.5.4.
|
|
231
|
-
modal-1.5.4.
|
|
227
|
+
modal-1.5.4.dev18.dist-info/METADATA,sha256=xi-p4yL2p95Qk8HqoytxHd6Iqpkg3y-XXBlY_fldKHM,2513
|
|
228
|
+
modal-1.5.4.dev18.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
|
229
|
+
modal-1.5.4.dev18.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
|
230
|
+
modal-1.5.4.dev18.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
|
231
|
+
modal-1.5.4.dev18.dist-info/RECORD,,
|
modal_proto/api_grpc.py
CHANGED
|
@@ -83,6 +83,10 @@ class ModalClientBase(abc.ABC):
|
|
|
83
83
|
async def AppLookup(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.AppLookupRequest, modal_proto.api_pb2.AppLookupResponse]') -> None:
|
|
84
84
|
pass
|
|
85
85
|
|
|
86
|
+
@abc.abstractmethod
|
|
87
|
+
async def AppPromote(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.AppPromoteRequest, modal_proto.api_pb2.AppPromoteResponse]') -> None:
|
|
88
|
+
pass
|
|
89
|
+
|
|
86
90
|
@abc.abstractmethod
|
|
87
91
|
async def AppPublish(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.AppPublishRequest, modal_proto.api_pb2.AppPublishResponse]') -> None:
|
|
88
92
|
pass
|
|
@@ -931,6 +935,10 @@ class ModalClientBase(abc.ABC):
|
|
|
931
935
|
async def WebhookTokenListForEnvironment(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.WebhookTokenListForEnvironmentRequest, modal_proto.api_pb2.WebhookTokenListResponse]') -> None:
|
|
932
936
|
pass
|
|
933
937
|
|
|
938
|
+
@abc.abstractmethod
|
|
939
|
+
async def WorkspaceBillingRates(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.WorkspaceBillingRatesRequest, modal_proto.api_pb2.WorkspaceBillingRatesResponse]') -> None:
|
|
940
|
+
pass
|
|
941
|
+
|
|
934
942
|
@abc.abstractmethod
|
|
935
943
|
async def WorkspaceBillingReport(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.WorkspaceBillingReportRequest, modal_proto.api_pb2.WorkspaceBillingReportItem]') -> None:
|
|
936
944
|
pass
|
|
@@ -1061,6 +1069,12 @@ class ModalClientBase(abc.ABC):
|
|
|
1061
1069
|
modal_proto.api_pb2.AppLookupRequest,
|
|
1062
1070
|
modal_proto.api_pb2.AppLookupResponse,
|
|
1063
1071
|
),
|
|
1072
|
+
'/modal.client.ModalClient/AppPromote': grpclib.const.Handler(
|
|
1073
|
+
self.AppPromote,
|
|
1074
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
1075
|
+
modal_proto.api_pb2.AppPromoteRequest,
|
|
1076
|
+
modal_proto.api_pb2.AppPromoteResponse,
|
|
1077
|
+
),
|
|
1064
1078
|
'/modal.client.ModalClient/AppPublish': grpclib.const.Handler(
|
|
1065
1079
|
self.AppPublish,
|
|
1066
1080
|
grpclib.const.Cardinality.UNARY_UNARY,
|
|
@@ -2333,6 +2347,12 @@ class ModalClientBase(abc.ABC):
|
|
|
2333
2347
|
modal_proto.api_pb2.WebhookTokenListForEnvironmentRequest,
|
|
2334
2348
|
modal_proto.api_pb2.WebhookTokenListResponse,
|
|
2335
2349
|
),
|
|
2350
|
+
'/modal.client.ModalClient/WorkspaceBillingRates': grpclib.const.Handler(
|
|
2351
|
+
self.WorkspaceBillingRates,
|
|
2352
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
2353
|
+
modal_proto.api_pb2.WorkspaceBillingRatesRequest,
|
|
2354
|
+
modal_proto.api_pb2.WorkspaceBillingRatesResponse,
|
|
2355
|
+
),
|
|
2336
2356
|
'/modal.client.ModalClient/WorkspaceBillingReport': grpclib.const.Handler(
|
|
2337
2357
|
self.WorkspaceBillingReport,
|
|
2338
2358
|
grpclib.const.Cardinality.UNARY_STREAM,
|
|
@@ -2483,6 +2503,12 @@ class ModalClientStub:
|
|
|
2483
2503
|
modal_proto.api_pb2.AppLookupRequest,
|
|
2484
2504
|
modal_proto.api_pb2.AppLookupResponse,
|
|
2485
2505
|
)
|
|
2506
|
+
self.AppPromote = grpclib.client.UnaryUnaryMethod(
|
|
2507
|
+
channel,
|
|
2508
|
+
'/modal.client.ModalClient/AppPromote',
|
|
2509
|
+
modal_proto.api_pb2.AppPromoteRequest,
|
|
2510
|
+
modal_proto.api_pb2.AppPromoteResponse,
|
|
2511
|
+
)
|
|
2486
2512
|
self.AppPublish = grpclib.client.UnaryUnaryMethod(
|
|
2487
2513
|
channel,
|
|
2488
2514
|
'/modal.client.ModalClient/AppPublish',
|
|
@@ -3755,6 +3781,12 @@ class ModalClientStub:
|
|
|
3755
3781
|
modal_proto.api_pb2.WebhookTokenListForEnvironmentRequest,
|
|
3756
3782
|
modal_proto.api_pb2.WebhookTokenListResponse,
|
|
3757
3783
|
)
|
|
3784
|
+
self.WorkspaceBillingRates = grpclib.client.UnaryUnaryMethod(
|
|
3785
|
+
channel,
|
|
3786
|
+
'/modal.client.ModalClient/WorkspaceBillingRates',
|
|
3787
|
+
modal_proto.api_pb2.WorkspaceBillingRatesRequest,
|
|
3788
|
+
modal_proto.api_pb2.WorkspaceBillingRatesResponse,
|
|
3789
|
+
)
|
|
3758
3790
|
self.WorkspaceBillingReport = grpclib.client.UnaryStreamMethod(
|
|
3759
3791
|
channel,
|
|
3760
3792
|
'/modal.client.ModalClient/WorkspaceBillingReport',
|