modal 0.73.111__py3-none-any.whl → 0.73.112__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 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.111",
34
+ version: str = "0.73.112",
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.111",
96
+ version: str = "0.73.112",
97
97
  ): ...
98
98
  def is_closed(self) -> bool: ...
99
99
  @property
modal/dict.py CHANGED
@@ -26,8 +26,12 @@ def _serialize_dict(data):
26
26
  class _Dict(_Object, type_prefix="di"):
27
27
  """Distributed dictionary for storage in Modal apps.
28
28
 
29
- Keys and values can be essentially any object, so long as they can be serialized by
30
- `cloudpickle`, which includes other Modal objects.
29
+ Dict contents can be essentially any object so long as they can be serialized by
30
+ `cloudpickle`. This includes other Modal objects. If writing and reading in different
31
+ environments (eg., writing locally and reading remotely), it's necessary to have the
32
+ library defining the data type installed, with compatible versions, on both sides.
33
+ Additionally, cloudpickle serialization is not guaranteed to be deterministic, so it is
34
+ generally recommended to use primitive types for keys.
31
35
 
32
36
  **Lifetime of a Dict and its items**
33
37
 
@@ -52,8 +56,9 @@ class _Dict(_Object, type_prefix="di"):
52
56
 
53
57
  The `Dict` class offers a few methods for operations that are usually accomplished
54
58
  in Python with operators, such as `Dict.put` and `Dict.contains`. The advantage of
55
- these methods is that they can be safely called in an asynchronous context, whereas
56
- their operator-based analogues will block the event loop.
59
+ these methods is that they can be safely called in an asynchronous context by using
60
+ the `.aio` suffix on the method, whereas their operator-based analogues will always
61
+ run synchronously and block the event loop.
57
62
 
58
63
  For more examples, see the [guide](/docs/guide/dicts-and-queues#modal-dicts).
59
64
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: modal
3
- Version: 0.73.111
3
+ Version: 0.73.112
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -22,7 +22,7 @@ modal/app.py,sha256=ojhuLZuNZAQ1OsbDH0k6G4pm1W7bOIvZfXbaKlvQ-Ao,45622
22
22
  modal/app.pyi,sha256=tZFbcsu20SuvfB2puxCyuXLFNJ9bQulzag55rVpgZmc,26827
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=j9D3hNis1lfhnz9lVFGgJgowbH3PaGUzNKgHPWYG778,15372
25
- modal/client.pyi,sha256=9Mqy0huqdDDKuOgrBSt6S3LN3Avwadrbs1OGTUnGDxg,7661
25
+ modal/client.pyi,sha256=JAvt1P0KH6lkTI4woGquUcp_TagLeMvIwNhCCDAh-dw,7661
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=JhDbaZZHN52lqA_roY1BCbcN9BvbkUcdXiM2Kg9lIc0,31717
@@ -30,7 +30,7 @@ modal/cls.pyi,sha256=ZJUwtRaQBGlM6tphvnv49FHBVDSgttMdD_LnYyRSKJM,10302
30
30
  modal/config.py,sha256=Boz1bPzaG-k5Grjq6y6fAELH1N_gTuYDnpB6FODzCPo,11710
31
31
  modal/container_process.py,sha256=WTqLn01dJPVkPpwR_0w_JH96ceN5mV4TGtiu1ZR2RRA,6108
32
32
  modal/container_process.pyi,sha256=Hf0J5JyDdCCXBJSKx6gvkPOo0XrztCm78xzxamtzUjQ,2828
33
- modal/dict.py,sha256=vc5lQVqzeDUCb4fRjnOlqYK2GmBb0fIhZmvB0xIBG0U,12921
33
+ modal/dict.py,sha256=3Pb45IkfqcDGXu3VVStJVbC_QYk6RTRXrMbZxtByAAk,13354
34
34
  modal/dict.pyi,sha256=kKb0Kc6RUabtQ5Hwslg_vwL_OIrwIAJ2NXrJTepTtp4,7684
35
35
  modal/environments.py,sha256=mrOaS9hiIQijGWJYIgVKQnwC-kONhWHm1GqoK_9G75E,6924
36
36
  modal/environments.pyi,sha256=JvSroVOIXDIILL40Z5G4HyY16bmih2YMWMvWL-SFTwo,3373
@@ -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=QNkBmx1kYyvaGhDWgpGNsldN7e-79nsXRwpay-QRyVY,150
174
- modal-0.73.111.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
175
- modal-0.73.111.dist-info/METADATA,sha256=g_sxpt1FZS18DzcHcEEvMqEkmURTS7xYN0HheMOSNrY,2453
176
- modal-0.73.111.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
177
- modal-0.73.111.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
178
- modal-0.73.111.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
179
- modal-0.73.111.dist-info/RECORD,,
173
+ modal_version/_version_generated.py,sha256=Egm9orIPMkUj-zgvNoFCAoWTibUMIRH5E4ZNUuQKoWU,150
174
+ modal-0.73.112.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
175
+ modal-0.73.112.dist-info/METADATA,sha256=3Im9wanFq4dHmpCD9xHp9M29R3HM0A5jMDWqe9e8EyM,2453
176
+ modal-0.73.112.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
177
+ modal-0.73.112.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
178
+ modal-0.73.112.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
179
+ modal-0.73.112.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
 
3
3
  # Note: Reset this value to -1 whenever you make a minor `0.X` release of the client.
4
- build_number = 111 # git: 754ee59
4
+ build_number = 112 # git: c0bcdba