modal 1.0.5.dev20__tar.gz → 1.0.5.dev22__tar.gz

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.
Files changed (184) hide show
  1. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/PKG-INFO +1 -1
  2. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_functions.py +3 -3
  3. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/grpc_utils.py +3 -1
  4. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/client.pyi +2 -2
  5. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cls.py +3 -3
  6. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cls.pyi +6 -6
  7. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/dict.py +3 -3
  8. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/dict.pyi +6 -6
  9. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/functions.pyi +9 -9
  10. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/network_file_system.py +3 -3
  11. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/network_file_system.pyi +6 -6
  12. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/queue.py +3 -3
  13. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/queue.pyi +6 -6
  14. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/volume.py +3 -3
  15. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/volume.pyi +6 -6
  16. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal.egg-info/PKG-INFO +1 -1
  17. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_version/__init__.py +1 -1
  18. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/LICENSE +0 -0
  19. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/README.md +0 -0
  20. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/__init__.py +0 -0
  21. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/__main__.py +0 -0
  22. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_clustered_functions.py +0 -0
  23. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_clustered_functions.pyi +0 -0
  24. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_container_entrypoint.py +0 -0
  25. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_ipython.py +0 -0
  26. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_location.py +0 -0
  27. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_object.py +0 -0
  28. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_output.py +0 -0
  29. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_partial_function.py +0 -0
  30. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_pty.py +0 -0
  31. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_resolver.py +0 -0
  32. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_resources.py +0 -0
  33. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/__init__.py +0 -0
  34. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/asgi.py +0 -0
  35. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/container_io_manager.py +0 -0
  36. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/container_io_manager.pyi +0 -0
  37. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/execution_context.py +0 -0
  38. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/execution_context.pyi +0 -0
  39. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/gpu_memory_snapshot.py +0 -0
  40. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/telemetry.py +0 -0
  41. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_runtime/user_code_imports.py +0 -0
  42. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_serialization.py +0 -0
  43. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_traceback.py +0 -0
  44. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_tunnel.py +0 -0
  45. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_tunnel.pyi +0 -0
  46. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_type_manager.py +0 -0
  47. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/__init__.py +0 -0
  48. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/app_utils.py +0 -0
  49. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/async_utils.py +0 -0
  50. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/blob_utils.py +0 -0
  51. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/bytes_io_segment_payload.py +0 -0
  52. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/deprecation.py +0 -0
  53. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/docker_utils.py +0 -0
  54. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/function_utils.py +0 -0
  55. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/git_utils.py +0 -0
  56. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/grpc_testing.py +0 -0
  57. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/hash_utils.py +0 -0
  58. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/http_utils.py +0 -0
  59. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/jwt_utils.py +0 -0
  60. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/logger.py +0 -0
  61. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/mount_utils.py +0 -0
  62. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/name_utils.py +0 -0
  63. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/package_utils.py +0 -0
  64. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/pattern_utils.py +0 -0
  65. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/rand_pb_testing.py +0 -0
  66. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/shell_utils.py +0 -0
  67. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_utils/time_utils.py +0 -0
  68. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_vendor/__init__.py +0 -0
  69. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_vendor/a2wsgi_wsgi.py +0 -0
  70. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_vendor/cloudpickle.py +0 -0
  71. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_vendor/tblib.py +0 -0
  72. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/_watcher.py +0 -0
  73. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/app.py +0 -0
  74. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/app.pyi +0 -0
  75. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/call_graph.py +0 -0
  76. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/__init__.py +0 -0
  77. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/_download.py +0 -0
  78. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/_traceback.py +0 -0
  79. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/app.py +0 -0
  80. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/cluster.py +0 -0
  81. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/config.py +0 -0
  82. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/container.py +0 -0
  83. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/dict.py +0 -0
  84. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/entry_point.py +0 -0
  85. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/environment.py +0 -0
  86. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/import_refs.py +0 -0
  87. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/launch.py +0 -0
  88. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/network_file_system.py +0 -0
  89. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/profile.py +0 -0
  90. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/programs/__init__.py +0 -0
  91. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/programs/run_jupyter.py +0 -0
  92. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/programs/vscode.py +0 -0
  93. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/queues.py +0 -0
  94. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/run.py +0 -0
  95. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/secret.py +0 -0
  96. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/token.py +0 -0
  97. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/utils.py +0 -0
  98. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cli/volume.py +0 -0
  99. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/client.py +0 -0
  100. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cloud_bucket_mount.py +0 -0
  101. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/cloud_bucket_mount.pyi +0 -0
  102. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/config.py +0 -0
  103. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/container_process.py +0 -0
  104. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/container_process.pyi +0 -0
  105. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/environments.py +0 -0
  106. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/environments.pyi +0 -0
  107. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/exception.py +0 -0
  108. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/experimental/__init__.py +0 -0
  109. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/experimental/ipython.py +0 -0
  110. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/file_io.py +0 -0
  111. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/file_io.pyi +0 -0
  112. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/file_pattern_matcher.py +0 -0
  113. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/functions.py +0 -0
  114. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/gpu.py +0 -0
  115. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/image.py +0 -0
  116. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/image.pyi +0 -0
  117. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/io_streams.py +0 -0
  118. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/io_streams.pyi +0 -0
  119. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/mount.py +0 -0
  120. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/mount.pyi +0 -0
  121. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/object.py +0 -0
  122. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/object.pyi +0 -0
  123. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/output.py +0 -0
  124. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/parallel_map.py +0 -0
  125. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/parallel_map.pyi +0 -0
  126. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/partial_function.py +0 -0
  127. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/partial_function.pyi +0 -0
  128. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/proxy.py +0 -0
  129. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/proxy.pyi +0 -0
  130. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/py.typed +0 -0
  131. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/requirements/2023.12.312.txt +0 -0
  132. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/requirements/2023.12.txt +0 -0
  133. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/requirements/2024.04.txt +0 -0
  134. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/requirements/2024.10.txt +0 -0
  135. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/requirements/PREVIEW.txt +0 -0
  136. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/requirements/README.md +0 -0
  137. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/requirements/base-images.json +0 -0
  138. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/retries.py +0 -0
  139. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/runner.py +0 -0
  140. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/runner.pyi +0 -0
  141. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/running_app.py +0 -0
  142. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/sandbox.py +0 -0
  143. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/sandbox.pyi +0 -0
  144. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/schedule.py +0 -0
  145. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/scheduler_placement.py +0 -0
  146. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/secret.py +0 -0
  147. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/secret.pyi +0 -0
  148. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/serving.py +0 -0
  149. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/serving.pyi +0 -0
  150. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/snapshot.py +0 -0
  151. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/snapshot.pyi +0 -0
  152. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/stream_type.py +0 -0
  153. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/token_flow.py +0 -0
  154. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal/token_flow.pyi +0 -0
  155. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal.egg-info/SOURCES.txt +0 -0
  156. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal.egg-info/dependency_links.txt +0 -0
  157. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal.egg-info/entry_points.txt +0 -0
  158. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal.egg-info/requires.txt +0 -0
  159. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal.egg-info/top_level.txt +0 -0
  160. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_docs/__init__.py +0 -0
  161. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_docs/gen_cli_docs.py +0 -0
  162. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_docs/gen_reference_docs.py +0 -0
  163. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_docs/mdmd/__init__.py +0 -0
  164. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_docs/mdmd/mdmd.py +0 -0
  165. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_docs/mdmd/signatures.py +0 -0
  166. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/__init__.py +0 -0
  167. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/api.proto +0 -0
  168. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/api_grpc.py +0 -0
  169. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/api_pb2.py +0 -0
  170. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/api_pb2.pyi +0 -0
  171. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/api_pb2_grpc.py +0 -0
  172. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/api_pb2_grpc.pyi +0 -0
  173. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/modal_api_grpc.py +0 -0
  174. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/modal_options_grpc.py +0 -0
  175. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/options.proto +0 -0
  176. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/options_grpc.py +0 -0
  177. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/options_pb2.py +0 -0
  178. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/options_pb2.pyi +0 -0
  179. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/options_pb2_grpc.py +0 -0
  180. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/options_pb2_grpc.pyi +0 -0
  181. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_proto/py.typed +0 -0
  182. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/modal_version/__main__.py +0 -0
  183. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/pyproject.toml +0 -0
  184. {modal-1.0.5.dev20 → modal-1.0.5.dev22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.0.5.dev20
3
+ Version: 1.0.5.dev22
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -1273,9 +1273,9 @@ class _Function(typing.Generic[P, ReturnType, OriginalReturnType], _Object, type
1273
1273
  ) -> "_Function":
1274
1274
  """Reference a Function from a deployed App by its name.
1275
1275
 
1276
- In contrast to `modal.Function.lookup`, this is a lazy method
1277
- that defers hydrating the local object with metadata from
1278
- Modal servers until the first time it is actually used.
1276
+ This is a lazy method that defers hydrating the local
1277
+ object with metadata from Modal servers until the first
1278
+ time it is actually used.
1279
1279
 
1280
1280
  ```python
1281
1281
  f = modal.Function.from_name("other-app", "function")
@@ -28,6 +28,7 @@ from grpclib.protocol import H2Protocol
28
28
  from modal.exception import AuthError, ConnectionError
29
29
  from modal_version import __version__
30
30
 
31
+ from .async_utils import retry
31
32
  from .logger import logger
32
33
 
33
34
  RequestType = TypeVar("RequestType", bound=Message)
@@ -167,8 +168,9 @@ def create_channel(
167
168
  return channel
168
169
 
169
170
 
171
+ @retry(n_attempts=5, base_delay=0.1)
170
172
  async def connect_channel(channel: grpclib.client.Channel):
171
- """Connects socket (potentially raising errors raising to connectivity."""
173
+ """Connect to socket and raise exceptions when there is a connection issue."""
172
174
  await channel.__connect__()
173
175
 
174
176
 
@@ -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 = "1.0.5.dev20",
34
+ version: str = "1.0.5.dev22",
35
35
  ):
36
36
  """mdmd:hidden
37
37
  The Modal client object is not intended to be instantiated directly by users.
@@ -160,7 +160,7 @@ class Client:
160
160
  server_url: str,
161
161
  client_type: int,
162
162
  credentials: typing.Optional[tuple[str, str]],
163
- version: str = "1.0.5.dev20",
163
+ version: str = "1.0.5.dev22",
164
164
  ):
165
165
  """mdmd:hidden
166
166
  The Modal client object is not intended to be instantiated directly by users.
@@ -617,9 +617,9 @@ More information on class parameterization can be found here: https://modal.com/
617
617
  ) -> "_Cls":
618
618
  """Reference a Cls from a deployed App by its name.
619
619
 
620
- In contrast to `modal.Cls.lookup`, this is a lazy method
621
- that defers hydrating the local object with metadata from
622
- Modal servers until the first time it is actually used.
620
+ This is a lazy method that defers hydrating the local
621
+ object with metadata from Modal servers until the first
622
+ time it is actually used.
623
623
 
624
624
  ```python
625
625
  Model = modal.Cls.from_name("other-app", "Model")
@@ -367,9 +367,9 @@ class _Cls(modal._object._Object):
367
367
  ) -> _Cls:
368
368
  """Reference a Cls from a deployed App by its name.
369
369
 
370
- In contrast to `modal.Cls.lookup`, this is a lazy method
371
- that defers hydrating the local object with metadata from
372
- Modal servers until the first time it is actually used.
370
+ This is a lazy method that defers hydrating the local
371
+ object with metadata from Modal servers until the first
372
+ time it is actually used.
373
373
 
374
374
  ```python
375
375
  Model = modal.Cls.from_name("other-app", "Model")
@@ -526,9 +526,9 @@ class Cls(modal.object.Object):
526
526
  ) -> Cls:
527
527
  """Reference a Cls from a deployed App by its name.
528
528
 
529
- In contrast to `modal.Cls.lookup`, this is a lazy method
530
- that defers hydrating the local object with metadata from
531
- Modal servers until the first time it is actually used.
529
+ This is a lazy method that defers hydrating the local
530
+ object with metadata from Modal servers until the first
531
+ time it is actually used.
532
532
 
533
533
  ```python
534
534
  Model = modal.Cls.from_name("other-app", "Model")
@@ -125,9 +125,9 @@ class _Dict(_Object, type_prefix="di"):
125
125
  ) -> "_Dict":
126
126
  """Reference a named Dict, creating if necessary.
127
127
 
128
- In contrast to `modal.Dict.lookup`, this is a lazy method
129
- that defers hydrating the local object with metadata from
130
- Modal servers until the first time it is actually used.
128
+ This is a lazy method that defers hydrating the local
129
+ object with metadata from Modal servers until the first
130
+ time it is actually used.
131
131
 
132
132
  ```python
133
133
  d = modal.Dict.from_name("my-dict", create_if_missing=True)
@@ -89,9 +89,9 @@ class _Dict(modal._object._Object):
89
89
  ) -> _Dict:
90
90
  """Reference a named Dict, creating if necessary.
91
91
 
92
- In contrast to `modal.Dict.lookup`, this is a lazy method
93
- that defers hydrating the local object with metadata from
94
- Modal servers until the first time it is actually used.
92
+ This is a lazy method that defers hydrating the local
93
+ object with metadata from Modal servers until the first
94
+ time it is actually used.
95
95
 
96
96
  ```python
97
97
  d = modal.Dict.from_name("my-dict", create_if_missing=True)
@@ -304,9 +304,9 @@ class Dict(modal.object.Object):
304
304
  ) -> Dict:
305
305
  """Reference a named Dict, creating if necessary.
306
306
 
307
- In contrast to `modal.Dict.lookup`, this is a lazy method
308
- that defers hydrating the local object with metadata from
309
- Modal servers until the first time it is actually used.
307
+ This is a lazy method that defers hydrating the local
308
+ object with metadata from Modal servers until the first
309
+ time it is actually used.
310
310
 
311
311
  ```python
312
312
  d = modal.Dict.from_name("my-dict", create_if_missing=True)
@@ -247,9 +247,9 @@ class Function(
247
247
  ) -> Function:
248
248
  """Reference a Function from a deployed App by its name.
249
249
 
250
- In contrast to `modal.Function.lookup`, this is a lazy method
251
- that defers hydrating the local object with metadata from
252
- Modal servers until the first time it is actually used.
250
+ This is a lazy method that defers hydrating the local
251
+ object with metadata from Modal servers until the first
252
+ time it is actually used.
253
253
 
254
254
  ```python
255
255
  f = modal.Function.from_name("other-app", "function")
@@ -428,7 +428,7 @@ class Function(
428
428
 
429
429
  _call_generator: ___call_generator_spec[typing_extensions.Self]
430
430
 
431
- class __remote_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER, SUPERSELF]):
431
+ class __remote_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
432
432
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER:
433
433
  """Calls the function remotely, executing it with the given arguments and returning the execution's result."""
434
434
  ...
@@ -437,7 +437,7 @@ class Function(
437
437
  """Calls the function remotely, executing it with the given arguments and returning the execution's result."""
438
438
  ...
439
439
 
440
- remote: __remote_spec[modal._functions.P, modal._functions.ReturnType, typing_extensions.Self]
440
+ remote: __remote_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
441
441
 
442
442
  class __remote_gen_spec(typing_extensions.Protocol[SUPERSELF]):
443
443
  def __call__(self, /, *args, **kwargs) -> typing.Generator[typing.Any, None, None]:
@@ -464,7 +464,7 @@ class Function(
464
464
  """
465
465
  ...
466
466
 
467
- class ___experimental_spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER, SUPERSELF]):
467
+ class ___experimental_spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
468
468
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
469
469
  """[Experimental] Calls the function with the given arguments, without waiting for the results.
470
470
 
@@ -488,7 +488,7 @@ class Function(
488
488
  ...
489
489
 
490
490
  _experimental_spawn: ___experimental_spawn_spec[
491
- modal._functions.P, modal._functions.ReturnType, typing_extensions.Self
491
+ modal._functions.ReturnType, modal._functions.P, typing_extensions.Self
492
492
  ]
493
493
 
494
494
  class ___spawn_map_inner_spec(typing_extensions.Protocol[P_INNER, SUPERSELF]):
@@ -497,7 +497,7 @@ class Function(
497
497
 
498
498
  _spawn_map_inner: ___spawn_map_inner_spec[modal._functions.P, typing_extensions.Self]
499
499
 
500
- class __spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER, SUPERSELF]):
500
+ class __spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
501
501
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
502
502
  """Calls the function with the given arguments, without waiting for the results.
503
503
 
@@ -518,7 +518,7 @@ class Function(
518
518
  """
519
519
  ...
520
520
 
521
- spawn: __spawn_spec[modal._functions.P, modal._functions.ReturnType, typing_extensions.Self]
521
+ spawn: __spawn_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
522
522
 
523
523
  def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]:
524
524
  """Return the inner Python object wrapped by this Modal Function."""
@@ -98,9 +98,9 @@ class _NetworkFileSystem(_Object, type_prefix="sv"):
98
98
  ) -> "_NetworkFileSystem":
99
99
  """Reference a NetworkFileSystem by its name, creating if necessary.
100
100
 
101
- In contrast to `modal.NetworkFileSystem.lookup`, this is a lazy method
102
- that defers hydrating the local object with metadata from Modal servers
103
- until the first time it is actually used.
101
+ This is a lazy method that defers hydrating the local object with
102
+ metadata from Modal servers until the first time it is actually
103
+ used.
104
104
 
105
105
  ```python notest
106
106
  nfs = NetworkFileSystem.from_name("my-nfs", create_if_missing=True)
@@ -56,9 +56,9 @@ class _NetworkFileSystem(modal._object._Object):
56
56
  ) -> _NetworkFileSystem:
57
57
  """Reference a NetworkFileSystem by its name, creating if necessary.
58
58
 
59
- In contrast to `modal.NetworkFileSystem.lookup`, this is a lazy method
60
- that defers hydrating the local object with metadata from Modal servers
61
- until the first time it is actually used.
59
+ This is a lazy method that defers hydrating the local object with
60
+ metadata from Modal servers until the first time it is actually
61
+ used.
62
62
 
63
63
  ```python notest
64
64
  nfs = NetworkFileSystem.from_name("my-nfs", create_if_missing=True)
@@ -233,9 +233,9 @@ class NetworkFileSystem(modal.object.Object):
233
233
  ) -> NetworkFileSystem:
234
234
  """Reference a NetworkFileSystem by its name, creating if necessary.
235
235
 
236
- In contrast to `modal.NetworkFileSystem.lookup`, this is a lazy method
237
- that defers hydrating the local object with metadata from Modal servers
238
- until the first time it is actually used.
236
+ This is a lazy method that defers hydrating the local object with
237
+ metadata from Modal servers until the first time it is actually
238
+ used.
239
239
 
240
240
  ```python notest
241
241
  nfs = NetworkFileSystem.from_name("my-nfs", create_if_missing=True)
@@ -154,9 +154,9 @@ class _Queue(_Object, type_prefix="qu"):
154
154
  ) -> "_Queue":
155
155
  """Reference a named Queue, creating if necessary.
156
156
 
157
- In contrast to `modal.Queue.lookup`, this is a lazy method
158
- the defers hydrating the local object with metadata from
159
- Modal servers until the first time it is actually used.
157
+ This is a lazy method the defers hydrating the local
158
+ object with metadata from Modal servers until the first
159
+ time it is actually used.
160
160
 
161
161
  ```python
162
162
  q = modal.Queue.from_name("my-queue", create_if_missing=True)
@@ -114,9 +114,9 @@ class _Queue(modal._object._Object):
114
114
  ) -> _Queue:
115
115
  """Reference a named Queue, creating if necessary.
116
116
 
117
- In contrast to `modal.Queue.lookup`, this is a lazy method
118
- the defers hydrating the local object with metadata from
119
- Modal servers until the first time it is actually used.
117
+ This is a lazy method the defers hydrating the local
118
+ object with metadata from Modal servers until the first
119
+ time it is actually used.
120
120
 
121
121
  ```python
122
122
  q = modal.Queue.from_name("my-queue", create_if_missing=True)
@@ -371,9 +371,9 @@ class Queue(modal.object.Object):
371
371
  ) -> Queue:
372
372
  """Reference a named Queue, creating if necessary.
373
373
 
374
- In contrast to `modal.Queue.lookup`, this is a lazy method
375
- the defers hydrating the local object with metadata from
376
- Modal servers until the first time it is actually used.
374
+ This is a lazy method the defers hydrating the local
375
+ object with metadata from Modal servers until the first
376
+ time it is actually used.
377
377
 
378
378
  ```python
379
379
  q = modal.Queue.from_name("my-queue", create_if_missing=True)
@@ -161,9 +161,9 @@ class _Volume(_Object, type_prefix="vo"):
161
161
  ) -> "_Volume":
162
162
  """Reference a Volume by name, creating if necessary.
163
163
 
164
- In contrast to `modal.Volume.lookup`, this is a lazy method
165
- that defers hydrating the local object with metadata from
166
- Modal servers until the first time is is actually used.
164
+ This is a lazy method that defers hydrating the local
165
+ object with metadata from Modal servers until the first
166
+ time is is actually used.
167
167
 
168
168
  ```python
169
169
  vol = modal.Volume.from_name("my-volume", create_if_missing=True)
@@ -114,9 +114,9 @@ class _Volume(modal._object._Object):
114
114
  ) -> _Volume:
115
115
  """Reference a Volume by name, creating if necessary.
116
116
 
117
- In contrast to `modal.Volume.lookup`, this is a lazy method
118
- that defers hydrating the local object with metadata from
119
- Modal servers until the first time is is actually used.
117
+ This is a lazy method that defers hydrating the local
118
+ object with metadata from Modal servers until the first
119
+ time is is actually used.
120
120
 
121
121
  ```python
122
122
  vol = modal.Volume.from_name("my-volume", create_if_missing=True)
@@ -393,9 +393,9 @@ class Volume(modal.object.Object):
393
393
  ) -> Volume:
394
394
  """Reference a Volume by name, creating if necessary.
395
395
 
396
- In contrast to `modal.Volume.lookup`, this is a lazy method
397
- that defers hydrating the local object with metadata from
398
- Modal servers until the first time is is actually used.
396
+ This is a lazy method that defers hydrating the local
397
+ object with metadata from Modal servers until the first
398
+ time is is actually used.
399
399
 
400
400
  ```python
401
401
  vol = modal.Volume.from_name("my-volume", create_if_missing=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.0.5.dev20
3
+ Version: 1.0.5.dev22
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.0.5.dev20"
4
+ __version__ = "1.0.5.dev22"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes