modal 1.5.2.dev5__py3-none-any.whl → 1.5.2.dev7__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/cli/image.py CHANGED
@@ -10,10 +10,12 @@ from typing import Optional
10
10
  import click
11
11
 
12
12
  from modal._environments import ensure_env
13
+ from modal._image import _parse_named_image_ref
13
14
  from modal._utils.async_utils import synchronizer
14
15
  from modal._utils.time_utils import timestamp_to_localized_str
15
16
  from modal.cli.utils import display_table, env_option
16
17
  from modal.client import _Client
18
+ from modal.exception import InvalidError
17
19
  from modal.output import OutputManager
18
20
  from modal_proto import api_pb2
19
21
 
@@ -21,6 +23,8 @@ from ._help import ModalGroup
21
23
 
22
24
  IMAGE_NAMES_LIST_PAGE_SIZE = 100
23
25
  IMAGE_NAMES_LIST_PAGE_DELAY_SECONDS = 1.0
26
+ IMAGE_NAMES_HISTORY_PAGE_SIZE = 100
27
+ IMAGE_NAMES_HISTORY_PAGE_DELAY_SECONDS = 1.0
24
28
 
25
29
  image_cli = ModalGroup(name="image", help="Manage Images.")
26
30
  image_names_cli = ModalGroup(name="names", help="Manage Modal Image names.")
@@ -49,6 +53,20 @@ def _tag_item_row(item: api_pb2.ImageListTagsItem) -> tuple[str, str, str]:
49
53
  )
50
54
 
51
55
 
56
+ def _history_item_json(item: api_pb2.ImageTagRevisionsItem) -> dict[str, str]:
57
+ return {
58
+ "image_id": item.image_id,
59
+ "published_at": timestamp_to_localized_str(item.created_at, True) or "-",
60
+ }
61
+
62
+
63
+ def _history_item_row(item: api_pb2.ImageTagRevisionsItem) -> tuple[str, str]:
64
+ return (
65
+ item.image_id,
66
+ timestamp_to_localized_str(item.created_at, False) or "-",
67
+ )
68
+
69
+
52
70
  async def _iter_tag_pages(
53
71
  client: _Client, env: str, prefix: str
54
72
  ) -> AsyncIterator[tuple[str, list[api_pb2.ImageListTagsItem]]]:
@@ -73,6 +91,36 @@ async def _iter_tag_pages(
73
91
  await asyncio.sleep(IMAGE_NAMES_LIST_PAGE_DELAY_SECONDS)
74
92
 
75
93
 
94
+ async def _fetch_history_page(
95
+ client: _Client,
96
+ env: str,
97
+ tag: str,
98
+ page_token: str,
99
+ ) -> api_pb2.ImageTagRevisionsResponse:
100
+ return await client.stub.ImageTagRevisions(
101
+ api_pb2.ImageTagRevisionsRequest(
102
+ tag=tag,
103
+ environment_name=env,
104
+ max_objects=IMAGE_NAMES_HISTORY_PAGE_SIZE,
105
+ page_token=page_token,
106
+ )
107
+ )
108
+
109
+
110
+ async def _iter_history_pages(
111
+ client: _Client, env: str, tag: str, first_page: api_pb2.ImageTagRevisionsResponse
112
+ ) -> AsyncIterator[api_pb2.ImageTagRevisionsResponse]:
113
+ response = first_page
114
+
115
+ while True:
116
+ yield response
117
+
118
+ if not response.next_page_token:
119
+ return
120
+ await asyncio.sleep(IMAGE_NAMES_HISTORY_PAGE_DELAY_SECONDS)
121
+ response = await _fetch_history_page(client, env, tag, response.next_page_token)
122
+
123
+
76
124
  @image_names_cli.command("list", help="List named Images.")
77
125
  @env_option
78
126
  @click.option("--prefix", default="", help="Only include named image tags that start with this prefix.")
@@ -108,3 +156,52 @@ async def list_(
108
156
  count += len(page_items)
109
157
 
110
158
  _print_result_summary(count)
159
+
160
+
161
+ @image_names_cli.command("history", help="Show publishing history for a named Image.", hidden=True)
162
+ @click.argument("name")
163
+ @env_option
164
+ @click.option("--json", is_flag=True, default=False)
165
+ @synchronizer.create_blocking
166
+ async def history(
167
+ name: str,
168
+ env: Optional[str] = None,
169
+ json: bool = False,
170
+ ):
171
+ env = ensure_env(env)
172
+ try:
173
+ name_tag = _parse_named_image_ref(name)
174
+ except InvalidError as exc:
175
+ raise click.UsageError(str(exc)) from exc
176
+ client = await _Client.from_env()
177
+
178
+ first_page = await _fetch_history_page(client, env, name_tag, "")
179
+ if not first_page.items:
180
+ raise click.ClickException(f"No publishing history found for named image {first_page.tag!r}.")
181
+
182
+ if json:
183
+ click.echo("[", nl=False)
184
+ count = 0
185
+ async for response in _iter_history_pages(client, env, name_tag, first_page):
186
+ for item in response.items:
187
+ if count:
188
+ click.echo(",", nl=False)
189
+ click.echo(json_module.dumps(_history_item_json(item)), nl=False)
190
+ count += 1
191
+ click.echo("]")
192
+ return
193
+
194
+ count = 0
195
+ show_title = True
196
+ async for response in _iter_history_pages(client, env, name_tag, first_page):
197
+ if response.items:
198
+ title = f"History for {response.tag}" if show_title else ""
199
+ display_table(
200
+ ["Image ID", "Published at"],
201
+ [_history_item_row(item) for item in response.items],
202
+ title=title,
203
+ )
204
+ show_title = False
205
+ count += len(response.items)
206
+
207
+ _print_result_summary(count)
modal/client.pyi CHANGED
@@ -35,7 +35,7 @@ class _Client:
35
35
  server_url: str,
36
36
  client_type: int,
37
37
  credentials: typing.Optional[tuple[str, str]],
38
- version: str = "1.5.2.dev5",
38
+ version: str = "1.5.2.dev7",
39
39
  ):
40
40
  """mdmd:hidden
41
41
  The Modal client object is not intended to be instantiated directly by users.
@@ -205,7 +205,7 @@ class Client:
205
205
  server_url: str,
206
206
  client_type: int,
207
207
  credentials: typing.Optional[tuple[str, str]],
208
- version: str = "1.5.2.dev5",
208
+ version: str = "1.5.2.dev7",
209
209
  ):
210
210
  """mdmd:hidden
211
211
  The Modal client object is not intended to be instantiated directly by users.
modal/sandbox.py CHANGED
@@ -1284,7 +1284,6 @@ class _Sandbox(_Object, type_prefix="sb"):
1284
1284
  outbound_domain_allowlist: List of domain names the Sandbox is allowed to access. Supports
1285
1285
  wildcard prefixes (``*.``); a bare ``"*"`` allows all domains.
1286
1286
  """
1287
- self._ensure_v1("_experimental_set_outbound_network_policy")
1288
1287
  task_id = await self._get_task_id()
1289
1288
  command_router_client = await self._get_command_router_client(task_id)
1290
1289
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.5.2.dev5
3
+ Version: 1.5.2.dev7
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License-Expression: Apache-2.0
@@ -31,7 +31,7 @@ modal/billing.py,sha256=tWrlpbNau0cfGSr643MzguHS0Dl5cRd7tm0GsCLYvtQ,372
31
31
  modal/billing.pyi,sha256=2hUdEbWa1nLdFfzZpwxHHpyK9k8uBRASGkFmPJhtkUU,7318
32
32
  modal/call_graph.py,sha256=k_wH3DuuUHCeuycHsOqlcOpIlIVbCYi9RPobg21hJdI,2550
33
33
  modal/client.py,sha256=OgjptM5UuU5LL85_-DFia-ehS8UCgMzVuzfNcxA1qPA,16136
34
- modal/client.pyi,sha256=nkN4HbEW0stuQNoVjY7wnPnD2e92Enn6D19zZj15gYU,17852
34
+ modal/client.pyi,sha256=aE_yLcH31Imz800m4wDbOR7kVDy3qQjNQwAw1zOp8cI,17852
35
35
  modal/cloud_bucket_mount.py,sha256=03gECcV9l2Lnt9k23YrDOTGFW7ajfXMW5O8b1prhtwQ,6254
36
36
  modal/cloud_bucket_mount.pyi,sha256=lMOb44pbNE9kDVEqWfcmvpsnh1sdNNFzuKoVyZZ3d5M,8058
37
37
  modal/cls.py,sha256=4oWIthR84usP5oejQbdMWzXkvzXyER2GDIpLvLTH4Og,40936
@@ -73,7 +73,7 @@ modal/retries.py,sha256=tSGB5bGM5xZZUDXMkuelIEoQJY0vOukOssZhwc6tXAo,5014
73
73
  modal/runner.py,sha256=YdBqWOWkcGgSDKLEz1zrGNHrh0-d2tSNx24XPB6QyoM,30284
74
74
  modal/runner.pyi,sha256=0hIfkl-7VTyw1n-1B0AV7f53t3i3hCzRPyBu3DUyHnk,9669
75
75
  modal/running_app.py,sha256=xSR1VVlhxEFytmjx2x697_0GpD25Vc9crhp6r117_QY,1145
76
- modal/sandbox.py,sha256=Pb_rqjAkEIlIl_ewgbKzj6kKMDPAJdv9JiVbSZKj5hU,109254
76
+ modal/sandbox.py,sha256=L6Gi_OMIhokEmaytGFu5VIjrceCGcFu0mH4bXhBzWXc,109185
77
77
  modal/sandbox.pyi,sha256=vF1qXdslQeZDrlLTgw5q0F3jtjmTMz9USy-ggQiJiO8,126252
78
78
  modal/sandbox_fs.py,sha256=Iwx-kjWrp12Gii_8Zdo1T8DHOkkbO0n9RMyBuYXMkU4,31361
79
79
  modal/sandbox_fs.pyi,sha256=nmfb1Ns9__C5sH3Mq52rFDtJbfKdQrn7Cc1mcP64WBw,46902
@@ -169,7 +169,7 @@ modal/cli/dict.py,sha256=EYJlADqAyOW0YKjmzQuBv1qgLwBU2JNQnWulfZXrgK0,5042
169
169
  modal/cli/endpoint.py,sha256=6y5N8ThRvqM2JlSeMz5wCSEOXEchaDLyl3RTV_RpdV0,13509
170
170
  modal/cli/entry_point.py,sha256=Z5f-kE2OumaNsuCZU_P_E2pfLB1JGQTL-55MAp3r1ys,5074
171
171
  modal/cli/environment.py,sha256=nBYfobAMg_a5lfrz0CkLmgJ_lxdjW7TfbR5r5d8cKr8,11751
172
- modal/cli/image.py,sha256=eAD4kG8QzRtg0es4OQPMC2CzMBQIt7KaVtvtNRn8SHw,3513
172
+ modal/cli/image.py,sha256=PDGkGSBP4F1Dr_T1iGNsC8YOp-vuTZCLmSjAGOF1vRc,6580
173
173
  modal/cli/import_refs.py,sha256=s3OeBuFZJNh0S8EaaEiqUnAPETRTrWdOk-jkO7yRVr4,15506
174
174
  modal/cli/launch.py,sha256=1cPg9y7zIETMeg6_5HBPpX3hbL4uKe-yXf49bXx8tSY,4482
175
175
  modal/cli/logo.py,sha256=plv82syvPb8j3qrR1A_nojZwp823t3VEXaDlrx1jkt0,3221
@@ -193,33 +193,33 @@ modal/experimental/flash.py,sha256=GAJ1c-EGL8M3_loAkqr5gdUfySMHY3U_oc6RywfZ8-0,3
193
193
  modal/experimental/flash.pyi,sha256=lpTqJFZRMGWscw0xpYZVdBMnAYjj16asXE4_64A6itQ,17774
194
194
  modal/experimental/ipython.py,sha256=kJ6o9wkAY_MiSb7paewI7f1MJAeqdi8TX5pBdhr_mUI,2925
195
195
  modal/skills/modal/SKILL.md,sha256=WzLjYJ1utjc_ZOf6qZTPwB6wxxwRYB5PibdvIf_FLy0,5316
196
- modal-1.5.2.dev5.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
196
+ modal-1.5.2.dev7.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
197
197
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
198
198
  modal_docs/gen_cli_docs.py,sha256=nZRXP6sh0hTFqTQOo_dMKy8V57I-L6V5cv3cs3eL7NE,5808
199
199
  modal_docs/gen_cli_docs_main.py,sha256=UPGr7O1DYTIRLwfINe2rbdh89J3cPVTU1OWL-SjxnOQ,198
200
200
  modal_docs/gen_reference_docs.py,sha256=ic2qrSF7-A45IFeS7rKXvolSC_Zcum70XvVje3m74S0,6144
201
201
  modal_docs/gen_reference_docs_main.py,sha256=56Cr3YKgq4qgb01bEcumTo1Px87boGGOFeHQ0Wcjg74,210
202
202
  modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
203
- modal_docs/mdmd/mdmd.py,sha256=djF9wyfy6FoOLtvYsFncgRV3WZiunSr-zPSmJz61Wrg,20454
203
+ modal_docs/mdmd/mdmd.py,sha256=gAat7jmIVyzxTnaw5MUM5U_3VKMqNKk1E6FJL3NIius,20518
204
204
  modal_docs/mdmd/signatures.py,sha256=Xx1FF6oND90MfbHJ24E9rej_GjmEGOAaOp6oJpkv1Os,10174
205
205
  modal_docs/mdmd/types.py,sha256=MIh5VOnWvFd8T1aZT_vTB2OeLbPB5TASdOaX8jGvpQk,710
206
206
  modal_proto/__init__.py,sha256=tFdSv9eaHBvYcwhgq-XqIlYDNDw57clrvO91Fb-oUV4,130
207
- modal_proto/api_grpc.py,sha256=BXhVof9Iy9rPbuGNSr_uIDOrdzh4m3cTaIDkxoiLYQU,169044
208
- modal_proto/api_pb2.py,sha256=wMjeG2g3g7OEwrzT3vnmTRGZ7Qr5kTL0UEXa9TuvMX4,467602
209
- modal_proto/api_pb2.pyi,sha256=x5-i2N1wI78-MufXLzy1NIFn_9QZ3qjuAXcidsuCVkI,650807
210
- modal_proto/api_pb2_grpc.py,sha256=cpLTRo1ZDam-qmhfshgGIeK2Mw-957F8u6eZcftXWhw,363694
211
- modal_proto/api_pb2_grpc.pyi,sha256=NuTeCJ8vcLTOSvva6T27Oj9qKkDB7gKcAVfmmdUULQ4,84966
212
- modal_proto/modal_api_grpc.py,sha256=5DHjTCyG9RB5jdDNwcpBVtx3Ua1Dg5DIDu_DvgDws8k,26663
207
+ modal_proto/api_grpc.py,sha256=ttl6R1gTtFo-f35eYobQEEaG6dXekYzGaqbSdS-6YH8,171624
208
+ modal_proto/api_pb2.py,sha256=B7S8Sgykb8OAB8onkPsBQzfApqxV9tiaQYHI4yMRI2s,470981
209
+ modal_proto/api_pb2.pyi,sha256=9d89DnqR2Lah2hCCsoZtsPZIz3jpWUXAsksUaAj2Jow,653421
210
+ modal_proto/api_pb2_grpc.py,sha256=3CLIMPQ7-hPe6l1GxOs0IJpoP3TjtdoN5EArkR4WsgQ,369037
211
+ modal_proto/api_pb2_grpc.pyi,sha256=LMUgIbLi38ZwZux_AFGWMjRin8auy0RiVSBU9ysmgTE,86233
212
+ modal_proto/modal_api_grpc.py,sha256=934KM6shysR3NIIeziZKCKKkRsP9e_shMa-PEvMLfys,27083
213
213
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
214
214
  modal_proto/task_command_router_grpc.py,sha256=xJGVEHXSU6t4qpIkNlNdGyLMwLd5CShm93gRONL4ndI,19403
215
215
  modal_proto/task_command_router_pb2.py,sha256=A-Q_mi-Wf761JNtcOmUkoWsPpIuYiGYcoKpJsn8bDRU,37368
216
216
  modal_proto/task_command_router_pb2.pyi,sha256=-0UrXDxiTvIy_BUP7OGeGNeLVaTWPHWDSaES4FVMYyw,42841
217
217
  modal_proto/task_command_router_pb2_grpc.py,sha256=QM5h4IvjweLZ6ZRyJD5AB8juzw4anhj4hzPS8mE1mWM,38611
218
218
  modal_proto/task_command_router_pb2_grpc.pyi,sha256=jLJvR5sZmKqU_3pTul-Mgfc7WcG5gQjvHS9CbACpFIU,12602
219
- modal_version/__init__.py,sha256=zJasD63IVnWBdrYwCLFH_o6sXGX4qdIQPNV2rLclhFQ,120
219
+ modal_version/__init__.py,sha256=cRMLrALDqpvtpHL2nP0SNeBXLOdLJjyWblr61mdASYw,120
220
220
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
221
- modal-1.5.2.dev5.dist-info/METADATA,sha256=69zEZi2xYO3kPZDStB0XqIlBsmqJCJ409PV8kkgFsyY,2512
222
- modal-1.5.2.dev5.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
223
- modal-1.5.2.dev5.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
224
- modal-1.5.2.dev5.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
225
- modal-1.5.2.dev5.dist-info/RECORD,,
221
+ modal-1.5.2.dev7.dist-info/METADATA,sha256=ZJMoVaOPfMRq4KrV_G-ZA4xFBeOXpb-_SKV_5gyyevc,2512
222
+ modal-1.5.2.dev7.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
223
+ modal-1.5.2.dev7.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
224
+ modal-1.5.2.dev7.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
225
+ modal-1.5.2.dev7.dist-info/RECORD,,
modal_docs/mdmd/mdmd.py CHANGED
@@ -3,9 +3,9 @@
3
3
 
4
4
  import html
5
5
  import inspect
6
+ import logging
6
7
  import re
7
8
  import typing
8
- import warnings
9
9
  from collections.abc import Callable
10
10
  from enum import Enum, EnumMeta
11
11
  from types import ModuleType
@@ -15,6 +15,8 @@ import synchronicity.synchronizer
15
15
  from .signatures import get_signature, parse_params_from_signature, strip_signature
16
16
  from .types import ParsedDoc, ParsedParam, ParsedRaise
17
17
 
18
+ logger = logging.getLogger(__name__)
19
+
18
20
 
19
21
  def _escape_svelte_html_attr(value: str) -> str:
20
22
  """Escape text for double-quoted HTML / Svelte component attributes.
@@ -475,7 +477,7 @@ def module_str(header, module, title_level="#", filter_items: Callable[[ModuleTy
475
477
  object_docs.append(f"{member_title_level} {qual_name}\n\n")
476
478
  object_docs.append(item_doc)
477
479
  else:
478
- warnings.warn(f"Not sure how to document: {name} ({item}")
480
+ logger.warning(f"[mdmd] Not sure how to document {name} ({item.__class__.__name__})")
479
481
 
480
482
  if object_docs:
481
483
  return "".join(header + object_docs)
modal_proto/api_grpc.py CHANGED
@@ -891,6 +891,18 @@ class ModalClientBase(abc.ABC):
891
891
  async def WorkspaceNameLookup(self, stream: 'grpclib.server.Stream[google.protobuf.empty_pb2.Empty, modal_proto.api_pb2.WorkspaceNameLookupResponse]') -> None:
892
892
  pass
893
893
 
894
+ @abc.abstractmethod
895
+ async def WorkspaceSetDefaultEnvironment(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.WorkspaceSetDefaultEnvironmentRequest, google.protobuf.empty_pb2.Empty]') -> None:
896
+ pass
897
+
898
+ @abc.abstractmethod
899
+ async def WorkspaceSetImageBuilderVersion(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.WorkspaceSetImageBuilderVersionRequest, modal_proto.api_pb2.WorkspaceSetImageBuilderVersionResponse]') -> None:
900
+ pass
901
+
902
+ @abc.abstractmethod
903
+ async def WorkspaceSettings(self, stream: 'grpclib.server.Stream[google.protobuf.empty_pb2.Empty, modal_proto.api_pb2.WorkspaceSettingsResponse]') -> None:
904
+ pass
905
+
894
906
  def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
895
907
  return {
896
908
  '/modal.client.ModalClient/AppClientDisconnect': grpclib.const.Handler(
@@ -2201,6 +2213,24 @@ class ModalClientBase(abc.ABC):
2201
2213
  google.protobuf.empty_pb2.Empty,
2202
2214
  modal_proto.api_pb2.WorkspaceNameLookupResponse,
2203
2215
  ),
2216
+ '/modal.client.ModalClient/WorkspaceSetDefaultEnvironment': grpclib.const.Handler(
2217
+ self.WorkspaceSetDefaultEnvironment,
2218
+ grpclib.const.Cardinality.UNARY_UNARY,
2219
+ modal_proto.api_pb2.WorkspaceSetDefaultEnvironmentRequest,
2220
+ google.protobuf.empty_pb2.Empty,
2221
+ ),
2222
+ '/modal.client.ModalClient/WorkspaceSetImageBuilderVersion': grpclib.const.Handler(
2223
+ self.WorkspaceSetImageBuilderVersion,
2224
+ grpclib.const.Cardinality.UNARY_UNARY,
2225
+ modal_proto.api_pb2.WorkspaceSetImageBuilderVersionRequest,
2226
+ modal_proto.api_pb2.WorkspaceSetImageBuilderVersionResponse,
2227
+ ),
2228
+ '/modal.client.ModalClient/WorkspaceSettings': grpclib.const.Handler(
2229
+ self.WorkspaceSettings,
2230
+ grpclib.const.Cardinality.UNARY_UNARY,
2231
+ google.protobuf.empty_pb2.Empty,
2232
+ modal_proto.api_pb2.WorkspaceSettingsResponse,
2233
+ ),
2204
2234
  }
2205
2235
 
2206
2236
 
@@ -3515,3 +3545,21 @@ class ModalClientStub:
3515
3545
  google.protobuf.empty_pb2.Empty,
3516
3546
  modal_proto.api_pb2.WorkspaceNameLookupResponse,
3517
3547
  )
3548
+ self.WorkspaceSetDefaultEnvironment = grpclib.client.UnaryUnaryMethod(
3549
+ channel,
3550
+ '/modal.client.ModalClient/WorkspaceSetDefaultEnvironment',
3551
+ modal_proto.api_pb2.WorkspaceSetDefaultEnvironmentRequest,
3552
+ google.protobuf.empty_pb2.Empty,
3553
+ )
3554
+ self.WorkspaceSetImageBuilderVersion = grpclib.client.UnaryUnaryMethod(
3555
+ channel,
3556
+ '/modal.client.ModalClient/WorkspaceSetImageBuilderVersion',
3557
+ modal_proto.api_pb2.WorkspaceSetImageBuilderVersionRequest,
3558
+ modal_proto.api_pb2.WorkspaceSetImageBuilderVersionResponse,
3559
+ )
3560
+ self.WorkspaceSettings = grpclib.client.UnaryUnaryMethod(
3561
+ channel,
3562
+ '/modal.client.ModalClient/WorkspaceSettings',
3563
+ google.protobuf.empty_pb2.Empty,
3564
+ modal_proto.api_pb2.WorkspaceSettingsResponse,
3565
+ )