modal 1.0.2.dev7__py3-none-any.whl → 1.0.3__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
@@ -676,6 +676,23 @@ TASK_STATE_PREEMPTED: TaskState.ValueType # 10
676
676
  TASK_STATE_LOADING_CHECKPOINT_IMAGE: TaskState.ValueType # 11
677
677
  global___TaskState = TaskState
678
678
 
679
+ class _TunnelType:
680
+ ValueType = typing.NewType("ValueType", builtins.int)
681
+ V: typing_extensions.TypeAlias = ValueType
682
+
683
+ class _TunnelTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TunnelType.ValueType], builtins.type): # noqa: F821
684
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
685
+ TUNNEL_TYPE_UNSPECIFIED: _TunnelType.ValueType # 0
686
+ TUNNEL_TYPE_H2: _TunnelType.ValueType # 1
687
+ """HTTP/2 tunnel"""
688
+
689
+ class TunnelType(_TunnelType, metaclass=_TunnelTypeEnumTypeWrapper): ...
690
+
691
+ TUNNEL_TYPE_UNSPECIFIED: TunnelType.ValueType # 0
692
+ TUNNEL_TYPE_H2: TunnelType.ValueType # 1
693
+ """HTTP/2 tunnel"""
694
+ global___TunnelType = TunnelType
695
+
679
696
  class _VolumeFsVersion:
680
697
  ValueType = typing.NewType("ValueType", builtins.int)
681
698
  V: typing_extensions.TypeAlias = ValueType
@@ -3986,12 +4003,16 @@ class FileEntry(google.protobuf.message.Message):
3986
4003
  FILE: FileEntry._FileType.ValueType # 1
3987
4004
  DIRECTORY: FileEntry._FileType.ValueType # 2
3988
4005
  SYMLINK: FileEntry._FileType.ValueType # 3
4006
+ FIFO: FileEntry._FileType.ValueType # 4
4007
+ SOCKET: FileEntry._FileType.ValueType # 5
3989
4008
 
3990
4009
  class FileType(_FileType, metaclass=_FileTypeEnumTypeWrapper): ...
3991
4010
  UNSPECIFIED: FileEntry.FileType.ValueType # 0
3992
4011
  FILE: FileEntry.FileType.ValueType # 1
3993
4012
  DIRECTORY: FileEntry.FileType.ValueType # 2
3994
4013
  SYMLINK: FileEntry.FileType.ValueType # 3
4014
+ FIFO: FileEntry.FileType.ValueType # 4
4015
+ SOCKET: FileEntry.FileType.ValueType # 5
3995
4016
 
3996
4017
  PATH_FIELD_NUMBER: builtins.int
3997
4018
  TYPE_FIELD_NUMBER: builtins.int
@@ -6292,9 +6313,14 @@ class ImageMetadata(google.protobuf.message.Message):
6292
6313
  package name -> version. Empty if missing
6293
6314
  """
6294
6315
  workdir: builtins.str
6295
- """The work directory of the image, defaulting to "/". Not set if missing"""
6316
+ """The working directory of the image, as an absolute file path.
6317
+
6318
+ For most images, this is not set, which means to use the default workdir:
6319
+ - On function runners, the default is `/root` (home directory).
6320
+ - For image builds and sandbox environments, it is `/`.
6321
+ """
6296
6322
  libc_version_info: builtins.str
6297
- """The image's libc version"""
6323
+ """The version of glibc in this image, if any."""
6298
6324
  image_builder_version: builtins.str
6299
6325
  """The builder version for/with which the image was created."""
6300
6326
  def __init__(
@@ -6941,13 +6967,13 @@ class PortSpec(google.protobuf.message.Message):
6941
6967
  TUNNEL_TYPE_FIELD_NUMBER: builtins.int
6942
6968
  port: builtins.int
6943
6969
  unencrypted: builtins.bool
6944
- tunnel_type: builtins.str
6970
+ tunnel_type: global___TunnelType.ValueType
6945
6971
  def __init__(
6946
6972
  self,
6947
6973
  *,
6948
6974
  port: builtins.int = ...,
6949
6975
  unencrypted: builtins.bool = ...,
6950
- tunnel_type: builtins.str | None = ...,
6976
+ tunnel_type: global___TunnelType.ValueType | None = ...,
6951
6977
  ) -> None: ...
6952
6978
  def HasField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "tunnel_type", b"tunnel_type"]) -> builtins.bool: ...
6953
6979
  def ClearField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "port", b"port", "tunnel_type", b"tunnel_type", "unencrypted", b"unencrypted"]) -> None: ...
@@ -9379,13 +9405,13 @@ class TunnelStartRequest(google.protobuf.message.Message):
9379
9405
  TUNNEL_TYPE_FIELD_NUMBER: builtins.int
9380
9406
  port: builtins.int
9381
9407
  unencrypted: builtins.bool
9382
- tunnel_type: builtins.str
9408
+ tunnel_type: global___TunnelType.ValueType
9383
9409
  def __init__(
9384
9410
  self,
9385
9411
  *,
9386
9412
  port: builtins.int = ...,
9387
9413
  unencrypted: builtins.bool = ...,
9388
- tunnel_type: builtins.str | None = ...,
9414
+ tunnel_type: global___TunnelType.ValueType | None = ...,
9389
9415
  ) -> None: ...
9390
9416
  def HasField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "tunnel_type", b"tunnel_type"]) -> builtins.bool: ...
9391
9417
  def ClearField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "port", b"port", "tunnel_type", b"tunnel_type", "unencrypted", b"unencrypted"]) -> None: ...
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.0.2.dev7"
4
+ __version__ = "1.0.3"