modal 0.73.153__py3-none-any.whl → 0.73.154__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.py +5 -1
- modal/client.pyi +2 -2
- {modal-0.73.153.dist-info → modal-0.73.154.dist-info}/METADATA +1 -1
- {modal-0.73.153.dist-info → modal-0.73.154.dist-info}/RECORD +9 -9
- modal_version/_version_generated.py +1 -1
- {modal-0.73.153.dist-info → modal-0.73.154.dist-info}/LICENSE +0 -0
- {modal-0.73.153.dist-info → modal-0.73.154.dist-info}/WHEEL +0 -0
- {modal-0.73.153.dist-info → modal-0.73.154.dist-info}/entry_points.txt +0 -0
- {modal-0.73.153.dist-info → modal-0.73.154.dist-info}/top_level.txt +0 -0
modal/client.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
import asyncio
|
3
3
|
import os
|
4
4
|
import platform
|
5
|
+
import sys
|
5
6
|
import warnings
|
6
7
|
from collections.abc import AsyncGenerator, AsyncIterator, Collection, Mapping
|
7
8
|
from typing import (
|
@@ -42,10 +43,13 @@ def _get_metadata(client_type: int, credentials: Optional[tuple[str, str]], vers
|
|
42
43
|
system, release = uname.system, uname.release
|
43
44
|
platform_str = "-".join(s.replace("-", "_") for s in (system, release, uname.machine))
|
44
45
|
|
46
|
+
# sys.version_info is structured unlike sys.version or platform.python_version()
|
47
|
+
python_version = "%d.%d.%d" % (sys.version_info.major, sys.version_info.minor, sys.version_info.micro)
|
48
|
+
|
45
49
|
metadata = {
|
46
50
|
"x-modal-client-version": version,
|
47
51
|
"x-modal-client-type": str(client_type),
|
48
|
-
"x-modal-python-version":
|
52
|
+
"x-modal-python-version": python_version,
|
49
53
|
"x-modal-node": platform.node(),
|
50
54
|
"x-modal-platform": platform_str,
|
51
55
|
}
|
modal/client.pyi
CHANGED
@@ -31,7 +31,7 @@ class _Client:
|
|
31
31
|
server_url: str,
|
32
32
|
client_type: int,
|
33
33
|
credentials: typing.Optional[tuple[str, str]],
|
34
|
-
version: str = "0.73.
|
34
|
+
version: str = "0.73.154",
|
35
35
|
): ...
|
36
36
|
def is_closed(self) -> bool: ...
|
37
37
|
@property
|
@@ -93,7 +93,7 @@ class Client:
|
|
93
93
|
server_url: str,
|
94
94
|
client_type: int,
|
95
95
|
credentials: typing.Optional[tuple[str, str]],
|
96
|
-
version: str = "0.73.
|
96
|
+
version: str = "0.73.154",
|
97
97
|
): ...
|
98
98
|
def is_closed(self) -> bool: ...
|
99
99
|
@property
|
@@ -22,8 +22,8 @@ modal/_watcher.py,sha256=K6LYnlmSGQB4tWWI9JADv-tvSvQ1j522FwT71B51CX8,3584
|
|
22
22
|
modal/app.py,sha256=w00bV9cjABAsS2ExE7zb1jY6Q_snXYmdKa3xRFg8iXA,47428
|
23
23
|
modal/app.pyi,sha256=pUEqciyGZ446sc_QoG8XcQ_oc6oU-U4dqjkxjhgOX98,26968
|
24
24
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
25
|
-
modal/client.py,sha256=
|
26
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.py,sha256=U-YKSw0n7J1ZLREt9cbEJCtmHe5YoPKFxl0xlkan2yc,15565
|
26
|
+
modal/client.pyi,sha256=D8xS7ewMyVVAjdr638fGCCH6RyrkelfCbvOxD5Jniyk,7661
|
27
27
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
28
28
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
29
29
|
modal/cls.py,sha256=OE6lPrKmaZDvyctfmZ__nCIw-b7AWxSmoOHMqlrrI7A,32723
|
@@ -170,10 +170,10 @@ 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=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
|
172
172
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
173
|
-
modal_version/_version_generated.py,sha256=
|
174
|
-
modal-0.73.
|
175
|
-
modal-0.73.
|
176
|
-
modal-0.73.
|
177
|
-
modal-0.73.
|
178
|
-
modal-0.73.
|
179
|
-
modal-0.73.
|
173
|
+
modal_version/_version_generated.py,sha256=MPFgj7rq4_hedH0XbHOMLAe6Gl0Wh_XWvTJonI3R2LU,150
|
174
|
+
modal-0.73.154.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
175
|
+
modal-0.73.154.dist-info/METADATA,sha256=zfO3tSl_CYhT_li_QheQWaCs3kcO4kyOCbCloXSs_V0,2453
|
176
|
+
modal-0.73.154.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
177
|
+
modal-0.73.154.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
178
|
+
modal-0.73.154.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
179
|
+
modal-0.73.154.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|