modal 0.74.44__py3-none-any.whl → 0.74.45__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/secret.py +3 -3
- modal/secret.pyi +6 -6
- {modal-0.74.44.dist-info → modal-0.74.45.dist-info}/METADATA +1 -1
- {modal-0.74.44.dist-info → modal-0.74.45.dist-info}/RECORD +11 -11
- modal_version/_version_generated.py +1 -1
- {modal-0.74.44.dist-info → modal-0.74.45.dist-info}/WHEEL +0 -0
- {modal-0.74.44.dist-info → modal-0.74.45.dist-info}/entry_points.txt +0 -0
- {modal-0.74.44.dist-info → modal-0.74.45.dist-info}/licenses/LICENSE +0 -0
- {modal-0.74.44.dist-info → modal-0.74.45.dist-info}/top_level.txt +0 -0
modal/client.pyi
CHANGED
@@ -27,7 +27,7 @@ class _Client:
|
|
27
27
|
_snapshotted: bool
|
28
28
|
|
29
29
|
def __init__(
|
30
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.
|
30
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.45"
|
31
31
|
): ...
|
32
32
|
def is_closed(self) -> bool: ...
|
33
33
|
@property
|
@@ -85,7 +85,7 @@ class Client:
|
|
85
85
|
_snapshotted: bool
|
86
86
|
|
87
87
|
def __init__(
|
88
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.
|
88
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.45"
|
89
89
|
): ...
|
90
90
|
def is_closed(self) -> bool: ...
|
91
91
|
@property
|
modal/functions.pyi
CHANGED
@@ -198,11 +198,11 @@ class Function(
|
|
198
198
|
|
199
199
|
_call_generator_nowait: ___call_generator_nowait_spec[typing_extensions.Self]
|
200
200
|
|
201
|
-
class __remote_spec(typing_extensions.Protocol[
|
201
|
+
class __remote_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
202
202
|
def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER: ...
|
203
203
|
async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER: ...
|
204
204
|
|
205
|
-
remote: __remote_spec[modal._functions.
|
205
|
+
remote: __remote_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
|
206
206
|
|
207
207
|
class __remote_gen_spec(typing_extensions.Protocol[SUPERSELF]):
|
208
208
|
def __call__(self, *args, **kwargs) -> typing.Generator[typing.Any, None, None]: ...
|
@@ -217,19 +217,19 @@ class Function(
|
|
217
217
|
self, *args: modal._functions.P.args, **kwargs: modal._functions.P.kwargs
|
218
218
|
) -> modal._functions.OriginalReturnType: ...
|
219
219
|
|
220
|
-
class ___experimental_spawn_spec(typing_extensions.Protocol[
|
220
|
+
class ___experimental_spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
221
221
|
def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
222
222
|
async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
223
223
|
|
224
224
|
_experimental_spawn: ___experimental_spawn_spec[
|
225
|
-
modal._functions.
|
225
|
+
modal._functions.ReturnType, modal._functions.P, typing_extensions.Self
|
226
226
|
]
|
227
227
|
|
228
|
-
class __spawn_spec(typing_extensions.Protocol[
|
228
|
+
class __spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
229
229
|
def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
230
230
|
async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
|
231
231
|
|
232
|
-
spawn: __spawn_spec[modal._functions.
|
232
|
+
spawn: __spawn_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
|
233
233
|
|
234
234
|
def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]: ...
|
235
235
|
|
modal/secret.py
CHANGED
@@ -34,7 +34,7 @@ class _Secret(_Object, type_prefix="st"):
|
|
34
34
|
env_dict: dict[
|
35
35
|
str, Union[str, None]
|
36
36
|
] = {}, # dict of entries to be inserted as environment variables in functions using the secret
|
37
|
-
):
|
37
|
+
) -> "_Secret":
|
38
38
|
"""Create a secret from a str-str dictionary. Values can also be `None`, which is ignored.
|
39
39
|
|
40
40
|
Usage:
|
@@ -81,7 +81,7 @@ class _Secret(_Object, type_prefix="st"):
|
|
81
81
|
@staticmethod
|
82
82
|
def from_local_environ(
|
83
83
|
env_keys: list[str], # list of local env vars to be included for remote execution
|
84
|
-
):
|
84
|
+
) -> "_Secret":
|
85
85
|
"""Create secrets from local environment variables automatically."""
|
86
86
|
|
87
87
|
if is_local():
|
@@ -96,7 +96,7 @@ class _Secret(_Object, type_prefix="st"):
|
|
96
96
|
return _Secret.from_dict({})
|
97
97
|
|
98
98
|
@staticmethod
|
99
|
-
def from_dotenv(path=None, *, filename=".env"):
|
99
|
+
def from_dotenv(path=None, *, filename=".env") -> "_Secret":
|
100
100
|
"""Create secrets from a .env file automatically.
|
101
101
|
|
102
102
|
If no argument is provided, it will use the current working directory as the starting
|
modal/secret.pyi
CHANGED
@@ -6,11 +6,11 @@ import typing_extensions
|
|
6
6
|
|
7
7
|
class _Secret(modal._object._Object):
|
8
8
|
@staticmethod
|
9
|
-
def from_dict(env_dict: dict[str, typing.Optional[str]] = {}): ...
|
9
|
+
def from_dict(env_dict: dict[str, typing.Optional[str]] = {}) -> _Secret: ...
|
10
10
|
@staticmethod
|
11
|
-
def from_local_environ(env_keys: list[str]): ...
|
11
|
+
def from_local_environ(env_keys: list[str]) -> _Secret: ...
|
12
12
|
@staticmethod
|
13
|
-
def from_dotenv(path=None, *, filename=".env"): ...
|
13
|
+
def from_dotenv(path=None, *, filename=".env") -> _Secret: ...
|
14
14
|
@staticmethod
|
15
15
|
def from_name(
|
16
16
|
name: str, *, namespace=1, environment_name: typing.Optional[str] = None, required_keys: list[str] = []
|
@@ -36,11 +36,11 @@ class _Secret(modal._object._Object):
|
|
36
36
|
class Secret(modal.object.Object):
|
37
37
|
def __init__(self, *args, **kwargs): ...
|
38
38
|
@staticmethod
|
39
|
-
def from_dict(env_dict: dict[str, typing.Optional[str]] = {}): ...
|
39
|
+
def from_dict(env_dict: dict[str, typing.Optional[str]] = {}) -> Secret: ...
|
40
40
|
@staticmethod
|
41
|
-
def from_local_environ(env_keys: list[str]): ...
|
41
|
+
def from_local_environ(env_keys: list[str]) -> Secret: ...
|
42
42
|
@staticmethod
|
43
|
-
def from_dotenv(path=None, *, filename=".env"): ...
|
43
|
+
def from_dotenv(path=None, *, filename=".env") -> Secret: ...
|
44
44
|
@staticmethod
|
45
45
|
def from_name(
|
46
46
|
name: str, *, namespace=1, environment_name: typing.Optional[str] = None, required_keys: list[str] = []
|
@@ -22,7 +22,7 @@ modal/app.py,sha256=r-9vVU1lrR1CWtJEo60fuaianvxY_oOXZyv1Qx1DEkI,51231
|
|
22
22
|
modal/app.pyi,sha256=0QNtnUpAFbOPcbwCt119ge7OmoBqMFw5SajLgdE5eOw,28600
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
24
24
|
modal/client.py,sha256=U-YKSw0n7J1ZLREt9cbEJCtmHe5YoPKFxl0xlkan2yc,15565
|
25
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.pyi,sha256=K5Vbh3SDRcb_4QaSIVEOuMqD_v6nkXwaAt6Fd1gzMNU,7593
|
26
26
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
27
27
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
28
28
|
modal/cls.py,sha256=pfEKqzNldQbtoM45CApRhSd8jJ7hD6o-83SLX8DTXXk,33549
|
@@ -39,7 +39,7 @@ modal/file_io.py,sha256=lcMs_E9Xfm0YX1t9U2wNIBPnqHRxmImqjLW1GHqVmyg,20945
|
|
39
39
|
modal/file_io.pyi,sha256=NTRft1tbPSWf9TlWVeZmTlgB5AZ_Zhu2srWIrWr7brk,9445
|
40
40
|
modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw,6497
|
41
41
|
modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
|
42
|
-
modal/functions.pyi,sha256=
|
42
|
+
modal/functions.pyi,sha256=GhzuTwVqKJzcj9bsCJZ1p_yXiOSQg5cOjtruRSdfbGQ,14870
|
43
43
|
modal/gpu.py,sha256=Kbhs_u49FaC2Zi0TjCdrpstpRtT5eZgecynmQi5IZVE,6752
|
44
44
|
modal/image.py,sha256=ZCghS6l1O7pezXcdMHk6RoJpW3qWszfWGJTW38lNXaU,92797
|
45
45
|
modal/image.pyi,sha256=ddbegF532pDLiVANOJdtJiYoDbbF3mAFrsCiyvIu7jU,25632
|
@@ -69,8 +69,8 @@ modal/sandbox.py,sha256=aLW1hCMrk9ndfXaWjDcknS0U-ei-GhUpSjo-pURrnW8,32722
|
|
69
69
|
modal/sandbox.pyi,sha256=cLmSwI1ab-2DgEuXNf6S1PiK63wfUR9dHtxlZtSOuX8,22719
|
70
70
|
modal/schedule.py,sha256=ewa7hb9NKYnoeSCW2PujZAbGGJL8btX6X3KalCFpc_M,2626
|
71
71
|
modal/scheduler_placement.py,sha256=BAREdOY5HzHpzSBqt6jDVR6YC_jYfHMVqOzkyqQfngU,1235
|
72
|
-
modal/secret.py,sha256=
|
73
|
-
modal/secret.pyi,sha256=
|
72
|
+
modal/secret.py,sha256=oczsOxMDifDusYA6_w49bGTDujHbxefyWNGspq62LRE,10505
|
73
|
+
modal/secret.pyi,sha256=b1jcMx9Z4bSIGOcrbyRPc68lzkFQBEauUP71gbnZeL4,3043
|
74
74
|
modal/serving.py,sha256=orZjhyikqk7U77My7GedbVKy65j0_CF7J7mqye86dRw,4650
|
75
75
|
modal/serving.pyi,sha256=KGSaZhg0qwygLmDkhgJedUfWeNSkXsyoOipq10vYffU,1978
|
76
76
|
modal/snapshot.py,sha256=6rQvDP3iX9hdiAudKTy0-m0JESt4kk0q2gusXbaRA-8,1279
|
@@ -145,7 +145,7 @@ modal/requirements/2024.10.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddR
|
|
145
145
|
modal/requirements/PREVIEW.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddRo,296
|
146
146
|
modal/requirements/README.md,sha256=9tK76KP0Uph7O0M5oUgsSwEZDj5y-dcUPsnpR0Sc-Ik,854
|
147
147
|
modal/requirements/base-images.json,sha256=57vMSqzMbLBxw5tFWSaMiIkkVEps4JfX5PAtXGnkS4U,740
|
148
|
-
modal-0.74.
|
148
|
+
modal-0.74.45.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
149
149
|
modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
150
150
|
modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
|
151
151
|
modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
|
@@ -170,9 +170,9 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
170
170
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
171
171
|
modal_version/__init__.py,sha256=m94xZNWIjH8oUtJk4l9xfovzDJede2o7X-q0MHVECtM,470
|
172
172
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
173
|
-
modal_version/_version_generated.py,sha256=
|
174
|
-
modal-0.74.
|
175
|
-
modal-0.74.
|
176
|
-
modal-0.74.
|
177
|
-
modal-0.74.
|
178
|
-
modal-0.74.
|
173
|
+
modal_version/_version_generated.py,sha256=c7BL2IepKJIiMHNLgjdxfiQ-AeguBvJTyJNBflKJHlE,149
|
174
|
+
modal-0.74.45.dist-info/METADATA,sha256=hSlxaVTtPVF6N-naZ0l-52XOAVz-oWkrQS4dFvzBncg,2451
|
175
|
+
modal-0.74.45.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
176
|
+
modal-0.74.45.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
177
|
+
modal-0.74.45.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
178
|
+
modal-0.74.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|