modal 1.0.6.dev4__py3-none-any.whl → 1.0.6.dev6__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/_functions.py +14 -7
- modal/_utils/deprecation.py +19 -0
- modal/cli/utils.py +1 -3
- modal/client.pyi +2 -2
- modal/cls.py +9 -5
- modal/cls.pyi +15 -5
- modal/dict.py +6 -6
- modal/dict.pyi +5 -5
- modal/file_pattern_matcher.py +31 -0
- modal/functions.pyi +4 -4
- modal/mount.py +24 -3
- modal/mount.pyi +16 -3
- modal/network_file_system.py +10 -7
- modal/network_file_system.pyi +8 -8
- modal/queue.py +8 -5
- modal/queue.pyi +5 -5
- modal/runner.py +5 -6
- modal/runner.pyi +4 -4
- modal/secret.py +13 -7
- modal/secret.pyi +8 -8
- modal/volume.py +7 -7
- modal/volume.pyi +8 -8
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev6.dist-info}/METADATA +1 -1
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev6.dist-info}/RECORD +33 -33
- modal_docs/mdmd/mdmd.py +6 -3
- modal_proto/api.proto +10 -10
- modal_proto/api_pb2.py +910 -910
- modal_proto/api_pb2.pyi +10 -40
- modal_version/__init__.py +1 -1
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev6.dist-info}/WHEEL +0 -0
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev6.dist-info}/entry_points.txt +0 -0
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev6.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.6.dev4.dist-info → modal-1.0.6.dev6.dist-info}/top_level.txt +0 -0
modal_docs/mdmd/mdmd.py
CHANGED
|
@@ -5,27 +5,30 @@ import inspect
|
|
|
5
5
|
import warnings
|
|
6
6
|
from enum import Enum, EnumMeta
|
|
7
7
|
from types import ModuleType
|
|
8
|
-
from typing import Callable
|
|
8
|
+
from typing import Callable, Optional
|
|
9
9
|
|
|
10
10
|
import synchronicity.synchronizer
|
|
11
11
|
|
|
12
12
|
from .signatures import get_signature
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
def format_docstring(docstring: str):
|
|
15
|
+
def format_docstring(docstring: Optional[str]) -> str:
|
|
16
16
|
if docstring is None:
|
|
17
17
|
docstring = ""
|
|
18
18
|
else:
|
|
19
19
|
docstring = inspect.cleandoc(docstring)
|
|
20
20
|
|
|
21
|
+
docstring = "\n".join(l for l in docstring.split("\n") if "mdmd:line-hidden" not in l)
|
|
22
|
+
|
|
21
23
|
if docstring and not docstring.endswith("\n"):
|
|
22
24
|
docstring += "\n"
|
|
23
25
|
|
|
24
26
|
return docstring
|
|
25
27
|
|
|
26
28
|
|
|
27
|
-
def function_str(name: str, func):
|
|
29
|
+
def function_str(name: str, func) -> str:
|
|
28
30
|
signature = get_signature(name, func)
|
|
31
|
+
signature = "\n".join(l for l in signature.split("\n") if "mdmd:line-hidden" not in l)
|
|
29
32
|
decl = f"""```python
|
|
30
33
|
{signature}
|
|
31
34
|
```\n\n"""
|
modal_proto/api.proto
CHANGED
|
@@ -301,7 +301,7 @@ message AppCreateResponse {
|
|
|
301
301
|
|
|
302
302
|
message AppDeployRequest {
|
|
303
303
|
string app_id = 1 [ (modal.options.audit_target_attr) = true ];
|
|
304
|
-
|
|
304
|
+
reserved 2; // namespace
|
|
305
305
|
string name = 3;
|
|
306
306
|
string object_entity = 4;
|
|
307
307
|
AppDeployVisibility visibility = 5;
|
|
@@ -334,7 +334,7 @@ message AppDeploymentHistoryResponse {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
message AppGetByDeploymentNameRequest {
|
|
337
|
-
|
|
337
|
+
reserved 1; // removed namespace
|
|
338
338
|
string name = 2;
|
|
339
339
|
string environment_name = 4;
|
|
340
340
|
}
|
|
@@ -702,7 +702,7 @@ message ClassCreateResponse {
|
|
|
702
702
|
message ClassGetRequest {
|
|
703
703
|
string app_name = 1;
|
|
704
704
|
string object_tag = 2;
|
|
705
|
-
|
|
705
|
+
reserved 3; // removed namespace
|
|
706
706
|
string environment_name = 4;
|
|
707
707
|
|
|
708
708
|
reserved 8; // lookup_published
|
|
@@ -1076,7 +1076,7 @@ message DictEntry {
|
|
|
1076
1076
|
|
|
1077
1077
|
message DictGetOrCreateRequest {
|
|
1078
1078
|
string deployment_name = 1 [ (modal.options.audit_target_attr) = true ];
|
|
1079
|
-
|
|
1079
|
+
reserved 2; // removed namespace
|
|
1080
1080
|
string environment_name = 3;
|
|
1081
1081
|
ObjectCreationType object_creation_type = 4;
|
|
1082
1082
|
repeated DictEntry data = 5;
|
|
@@ -1680,7 +1680,7 @@ message FunctionGetOutputsResponse {
|
|
|
1680
1680
|
message FunctionGetRequest {
|
|
1681
1681
|
string app_name = 1;
|
|
1682
1682
|
string object_tag = 2;
|
|
1683
|
-
|
|
1683
|
+
reserved 3; // removed namespace
|
|
1684
1684
|
string environment_name = 4;
|
|
1685
1685
|
}
|
|
1686
1686
|
|
|
@@ -2253,7 +2253,7 @@ message ProxyDeleteRequest {
|
|
|
2253
2253
|
|
|
2254
2254
|
message ProxyGetOrCreateRequest {
|
|
2255
2255
|
string deployment_name = 1 [ (modal.options.audit_target_attr) = true ];
|
|
2256
|
-
|
|
2256
|
+
reserved 2; // namespace
|
|
2257
2257
|
string environment_name = 3;
|
|
2258
2258
|
ObjectCreationType object_creation_type = 4; // must be UNSPECIFIED
|
|
2259
2259
|
}
|
|
@@ -2306,7 +2306,7 @@ message QueueDeleteRequest {
|
|
|
2306
2306
|
|
|
2307
2307
|
message QueueGetOrCreateRequest {
|
|
2308
2308
|
string deployment_name = 1;
|
|
2309
|
-
|
|
2309
|
+
reserved 2; // removed namespace
|
|
2310
2310
|
string environment_name = 3;
|
|
2311
2311
|
ObjectCreationType object_creation_type = 4;
|
|
2312
2312
|
}
|
|
@@ -2702,7 +2702,7 @@ message SecretDeleteRequest {
|
|
|
2702
2702
|
|
|
2703
2703
|
message SecretGetOrCreateRequest {
|
|
2704
2704
|
string deployment_name = 1 [ (modal.options.audit_target_attr) = true ];
|
|
2705
|
-
|
|
2705
|
+
reserved 2; // removed namespace
|
|
2706
2706
|
string environment_name = 3;
|
|
2707
2707
|
ObjectCreationType object_creation_type = 4; // Not used atm
|
|
2708
2708
|
map<string, string> env_dict = 5;
|
|
@@ -2749,7 +2749,7 @@ message SharedVolumeGetFileResponse {
|
|
|
2749
2749
|
|
|
2750
2750
|
message SharedVolumeGetOrCreateRequest {
|
|
2751
2751
|
string deployment_name = 1 [ (modal.options.audit_target_attr) = true ];
|
|
2752
|
-
|
|
2752
|
+
reserved 2; // removed namespace
|
|
2753
2753
|
string environment_name = 3;
|
|
2754
2754
|
ObjectCreationType object_creation_type = 4;
|
|
2755
2755
|
string app_id = 5; // only used with OBJECT_CREATION_TYPE_ANONYMOUS_OWNED_BY_APP
|
|
@@ -3029,7 +3029,7 @@ message VolumeGetFileResponse {
|
|
|
3029
3029
|
|
|
3030
3030
|
message VolumeGetOrCreateRequest {
|
|
3031
3031
|
string deployment_name = 1 [ (modal.options.audit_target_attr) = true ];
|
|
3032
|
-
|
|
3032
|
+
reserved 2; // removed namespace
|
|
3033
3033
|
string environment_name = 3;
|
|
3034
3034
|
ObjectCreationType object_creation_type = 4;
|
|
3035
3035
|
string app_id = 5; // only used with OBJECT_CREATION_TYPE_ANONYMOUS_OWNED_BY_APP
|