modal 1.1.5.dev75__py3-none-any.whl → 1.1.5.dev77__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_proto/api_pb2.pyi CHANGED
@@ -1151,6 +1151,50 @@ class AppGetOrCreateResponse(google.protobuf.message.Message):
1151
1151
 
1152
1152
  global___AppGetOrCreateResponse = AppGetOrCreateResponse
1153
1153
 
1154
+ class AppGetTagsRequest(google.protobuf.message.Message):
1155
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1156
+
1157
+ APP_ID_FIELD_NUMBER: builtins.int
1158
+ app_id: builtins.str
1159
+ def __init__(
1160
+ self,
1161
+ *,
1162
+ app_id: builtins.str = ...,
1163
+ ) -> None: ...
1164
+ def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id"]) -> None: ...
1165
+
1166
+ global___AppGetTagsRequest = AppGetTagsRequest
1167
+
1168
+ class AppGetTagsResponse(google.protobuf.message.Message):
1169
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1170
+
1171
+ class TagsEntry(google.protobuf.message.Message):
1172
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1173
+
1174
+ KEY_FIELD_NUMBER: builtins.int
1175
+ VALUE_FIELD_NUMBER: builtins.int
1176
+ key: builtins.str
1177
+ value: builtins.str
1178
+ def __init__(
1179
+ self,
1180
+ *,
1181
+ key: builtins.str = ...,
1182
+ value: builtins.str = ...,
1183
+ ) -> None: ...
1184
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
1185
+
1186
+ TAGS_FIELD_NUMBER: builtins.int
1187
+ @property
1188
+ def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
1189
+ def __init__(
1190
+ self,
1191
+ *,
1192
+ tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1193
+ ) -> None: ...
1194
+ def ClearField(self, field_name: typing_extensions.Literal["tags", b"tags"]) -> None: ...
1195
+
1196
+ global___AppGetTagsResponse = AppGetTagsResponse
1197
+
1154
1198
  class AppHeartbeatRequest(google.protobuf.message.Message):
1155
1199
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1156
1200
 
@@ -1509,6 +1553,39 @@ class AppSetObjectsRequest(google.protobuf.message.Message):
1509
1553
 
1510
1554
  global___AppSetObjectsRequest = AppSetObjectsRequest
1511
1555
 
1556
+ class AppSetTagsRequest(google.protobuf.message.Message):
1557
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1558
+
1559
+ class TagsEntry(google.protobuf.message.Message):
1560
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1561
+
1562
+ KEY_FIELD_NUMBER: builtins.int
1563
+ VALUE_FIELD_NUMBER: builtins.int
1564
+ key: builtins.str
1565
+ value: builtins.str
1566
+ def __init__(
1567
+ self,
1568
+ *,
1569
+ key: builtins.str = ...,
1570
+ value: builtins.str = ...,
1571
+ ) -> None: ...
1572
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
1573
+
1574
+ APP_ID_FIELD_NUMBER: builtins.int
1575
+ TAGS_FIELD_NUMBER: builtins.int
1576
+ app_id: builtins.str
1577
+ @property
1578
+ def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
1579
+ def __init__(
1580
+ self,
1581
+ *,
1582
+ app_id: builtins.str = ...,
1583
+ tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1584
+ ) -> None: ...
1585
+ def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "tags", b"tags"]) -> None: ...
1586
+
1587
+ global___AppSetTagsRequest = AppSetTagsRequest
1588
+
1512
1589
  class AppStopRequest(google.protobuf.message.Message):
1513
1590
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1514
1591
 
@@ -60,6 +60,11 @@ class ModalClientStub(object):
60
60
  request_serializer=modal__proto_dot_api__pb2.AppGetOrCreateRequest.SerializeToString,
61
61
  response_deserializer=modal__proto_dot_api__pb2.AppGetOrCreateResponse.FromString,
62
62
  )
63
+ self.AppGetTags = channel.unary_unary(
64
+ '/modal.client.ModalClient/AppGetTags',
65
+ request_serializer=modal__proto_dot_api__pb2.AppGetTagsRequest.SerializeToString,
66
+ response_deserializer=modal__proto_dot_api__pb2.AppGetTagsResponse.FromString,
67
+ )
63
68
  self.AppHeartbeat = channel.unary_unary(
64
69
  '/modal.client.ModalClient/AppHeartbeat',
65
70
  request_serializer=modal__proto_dot_api__pb2.AppHeartbeatRequest.SerializeToString,
@@ -90,6 +95,11 @@ class ModalClientStub(object):
90
95
  request_serializer=modal__proto_dot_api__pb2.AppSetObjectsRequest.SerializeToString,
91
96
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
92
97
  )
98
+ self.AppSetTags = channel.unary_unary(
99
+ '/modal.client.ModalClient/AppSetTags',
100
+ request_serializer=modal__proto_dot_api__pb2.AppSetTagsRequest.SerializeToString,
101
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
102
+ )
93
103
  self.AppStop = channel.unary_unary(
94
104
  '/modal.client.ModalClient/AppStop',
95
105
  request_serializer=modal__proto_dot_api__pb2.AppStopRequest.SerializeToString,
@@ -940,6 +950,12 @@ class ModalClientServicer(object):
940
950
  context.set_details('Method not implemented!')
941
951
  raise NotImplementedError('Method not implemented!')
942
952
 
953
+ def AppGetTags(self, request, context):
954
+ """Missing associated documentation comment in .proto file."""
955
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
956
+ context.set_details('Method not implemented!')
957
+ raise NotImplementedError('Method not implemented!')
958
+
943
959
  def AppHeartbeat(self, request, context):
944
960
  """Missing associated documentation comment in .proto file."""
945
961
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -976,6 +992,12 @@ class ModalClientServicer(object):
976
992
  context.set_details('Method not implemented!')
977
993
  raise NotImplementedError('Method not implemented!')
978
994
 
995
+ def AppSetTags(self, request, context):
996
+ """Missing associated documentation comment in .proto file."""
997
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
998
+ context.set_details('Method not implemented!')
999
+ raise NotImplementedError('Method not implemented!')
1000
+
979
1001
  def AppStop(self, request, context):
980
1002
  """Missing associated documentation comment in .proto file."""
981
1003
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -2004,6 +2026,11 @@ def add_ModalClientServicer_to_server(servicer, server):
2004
2026
  request_deserializer=modal__proto_dot_api__pb2.AppGetOrCreateRequest.FromString,
2005
2027
  response_serializer=modal__proto_dot_api__pb2.AppGetOrCreateResponse.SerializeToString,
2006
2028
  ),
2029
+ 'AppGetTags': grpc.unary_unary_rpc_method_handler(
2030
+ servicer.AppGetTags,
2031
+ request_deserializer=modal__proto_dot_api__pb2.AppGetTagsRequest.FromString,
2032
+ response_serializer=modal__proto_dot_api__pb2.AppGetTagsResponse.SerializeToString,
2033
+ ),
2007
2034
  'AppHeartbeat': grpc.unary_unary_rpc_method_handler(
2008
2035
  servicer.AppHeartbeat,
2009
2036
  request_deserializer=modal__proto_dot_api__pb2.AppHeartbeatRequest.FromString,
@@ -2034,6 +2061,11 @@ def add_ModalClientServicer_to_server(servicer, server):
2034
2061
  request_deserializer=modal__proto_dot_api__pb2.AppSetObjectsRequest.FromString,
2035
2062
  response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
2036
2063
  ),
2064
+ 'AppSetTags': grpc.unary_unary_rpc_method_handler(
2065
+ servicer.AppSetTags,
2066
+ request_deserializer=modal__proto_dot_api__pb2.AppSetTagsRequest.FromString,
2067
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
2068
+ ),
2037
2069
  'AppStop': grpc.unary_unary_rpc_method_handler(
2038
2070
  servicer.AppStop,
2039
2071
  request_deserializer=modal__proto_dot_api__pb2.AppStopRequest.FromString,
@@ -2987,6 +3019,23 @@ class ModalClient(object):
2987
3019
  options, channel_credentials,
2988
3020
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
2989
3021
 
3022
+ @staticmethod
3023
+ def AppGetTags(request,
3024
+ target,
3025
+ options=(),
3026
+ channel_credentials=None,
3027
+ call_credentials=None,
3028
+ insecure=False,
3029
+ compression=None,
3030
+ wait_for_ready=None,
3031
+ timeout=None,
3032
+ metadata=None):
3033
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/AppGetTags',
3034
+ modal__proto_dot_api__pb2.AppGetTagsRequest.SerializeToString,
3035
+ modal__proto_dot_api__pb2.AppGetTagsResponse.FromString,
3036
+ options, channel_credentials,
3037
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3038
+
2990
3039
  @staticmethod
2991
3040
  def AppHeartbeat(request,
2992
3041
  target,
@@ -3089,6 +3138,23 @@ class ModalClient(object):
3089
3138
  options, channel_credentials,
3090
3139
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3091
3140
 
3141
+ @staticmethod
3142
+ def AppSetTags(request,
3143
+ target,
3144
+ options=(),
3145
+ channel_credentials=None,
3146
+ call_credentials=None,
3147
+ insecure=False,
3148
+ compression=None,
3149
+ wait_for_ready=None,
3150
+ timeout=None,
3151
+ metadata=None):
3152
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/AppSetTags',
3153
+ modal__proto_dot_api__pb2.AppSetTagsRequest.SerializeToString,
3154
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
3155
+ options, channel_credentials,
3156
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3157
+
3092
3158
  @staticmethod
3093
3159
  def AppStop(request,
3094
3160
  target,
@@ -47,6 +47,10 @@ class ModalClientStub:
47
47
  modal_proto.api_pb2.AppGetOrCreateRequest,
48
48
  modal_proto.api_pb2.AppGetOrCreateResponse,
49
49
  ]
50
+ AppGetTags: grpc.UnaryUnaryMultiCallable[
51
+ modal_proto.api_pb2.AppGetTagsRequest,
52
+ modal_proto.api_pb2.AppGetTagsResponse,
53
+ ]
50
54
  AppHeartbeat: grpc.UnaryUnaryMultiCallable[
51
55
  modal_proto.api_pb2.AppHeartbeatRequest,
52
56
  google.protobuf.empty_pb2.Empty,
@@ -71,6 +75,10 @@ class ModalClientStub:
71
75
  modal_proto.api_pb2.AppSetObjectsRequest,
72
76
  google.protobuf.empty_pb2.Empty,
73
77
  ]
78
+ AppSetTags: grpc.UnaryUnaryMultiCallable[
79
+ modal_proto.api_pb2.AppSetTagsRequest,
80
+ google.protobuf.empty_pb2.Empty,
81
+ ]
74
82
  AppStop: grpc.UnaryUnaryMultiCallable[
75
83
  modal_proto.api_pb2.AppStopRequest,
76
84
  google.protobuf.empty_pb2.Empty,
@@ -793,6 +801,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
793
801
  context: grpc.ServicerContext,
794
802
  ) -> modal_proto.api_pb2.AppGetOrCreateResponse: ...
795
803
  @abc.abstractmethod
804
+ def AppGetTags(
805
+ self,
806
+ request: modal_proto.api_pb2.AppGetTagsRequest,
807
+ context: grpc.ServicerContext,
808
+ ) -> modal_proto.api_pb2.AppGetTagsResponse: ...
809
+ @abc.abstractmethod
796
810
  def AppHeartbeat(
797
811
  self,
798
812
  request: modal_proto.api_pb2.AppHeartbeatRequest,
@@ -829,6 +843,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
829
843
  context: grpc.ServicerContext,
830
844
  ) -> google.protobuf.empty_pb2.Empty: ...
831
845
  @abc.abstractmethod
846
+ def AppSetTags(
847
+ self,
848
+ request: modal_proto.api_pb2.AppSetTagsRequest,
849
+ context: grpc.ServicerContext,
850
+ ) -> google.protobuf.empty_pb2.Empty: ...
851
+ @abc.abstractmethod
832
852
  def AppStop(
833
853
  self,
834
854
  request: modal_proto.api_pb2.AppStopRequest,
@@ -27,12 +27,14 @@ class ModalClientModal:
27
27
  self.AppGetLogs = modal.client.UnaryStreamWrapper(grpclib_stub.AppGetLogs, client, server_url)
28
28
  self.AppGetObjects = modal.client.UnaryUnaryWrapper(grpclib_stub.AppGetObjects, client, server_url)
29
29
  self.AppGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.AppGetOrCreate, client, server_url)
30
+ self.AppGetTags = modal.client.UnaryUnaryWrapper(grpclib_stub.AppGetTags, client, server_url)
30
31
  self.AppHeartbeat = modal.client.UnaryUnaryWrapper(grpclib_stub.AppHeartbeat, client, server_url)
31
32
  self.AppList = modal.client.UnaryUnaryWrapper(grpclib_stub.AppList, client, server_url)
32
33
  self.AppLookup = modal.client.UnaryUnaryWrapper(grpclib_stub.AppLookup, client, server_url)
33
34
  self.AppPublish = modal.client.UnaryUnaryWrapper(grpclib_stub.AppPublish, client, server_url)
34
35
  self.AppRollback = modal.client.UnaryUnaryWrapper(grpclib_stub.AppRollback, client, server_url)
35
36
  self.AppSetObjects = modal.client.UnaryUnaryWrapper(grpclib_stub.AppSetObjects, client, server_url)
37
+ self.AppSetTags = modal.client.UnaryUnaryWrapper(grpclib_stub.AppSetTags, client, server_url)
36
38
  self.AppStop = modal.client.UnaryUnaryWrapper(grpclib_stub.AppStop, client, server_url)
37
39
  self.AttemptAwait = modal.client.UnaryUnaryWrapper(grpclib_stub.AttemptAwait, client, server_url)
38
40
  self.AttemptRetry = modal.client.UnaryUnaryWrapper(grpclib_stub.AttemptRetry, client, server_url)
modal_version/__init__.py CHANGED
@@ -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.1.5.dev75"
4
+ __version__ = "1.1.5.dev77"