modal 0.68.24__py3-none-any.whl → 0.68.42__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.
Files changed (51) hide show
  1. modal/_traceback.py +6 -2
  2. modal/_utils/deprecation.py +89 -0
  3. modal/app.py +15 -34
  4. modal/app.pyi +6 -7
  5. modal/cli/app.py +1 -1
  6. modal/cli/dict.py +6 -2
  7. modal/cli/network_file_system.py +1 -1
  8. modal/cli/run.py +1 -0
  9. modal/cli/volume.py +1 -1
  10. modal/client.pyi +2 -2
  11. modal/cls.py +15 -9
  12. modal/cls.pyi +5 -5
  13. modal/config.py +2 -1
  14. modal/container_process.py +2 -1
  15. modal/dict.py +12 -17
  16. modal/dict.pyi +8 -12
  17. modal/environments.py +10 -7
  18. modal/environments.pyi +6 -6
  19. modal/exception.py +0 -54
  20. modal/file_io.py +54 -7
  21. modal/file_io.pyi +18 -8
  22. modal/file_pattern_matcher.py +48 -15
  23. modal/functions.py +11 -13
  24. modal/functions.pyi +18 -12
  25. modal/image.py +21 -20
  26. modal/image.pyi +16 -28
  27. modal/mount.py +7 -4
  28. modal/mount.pyi +4 -4
  29. modal/network_file_system.py +13 -19
  30. modal/network_file_system.pyi +8 -12
  31. modal/partial_function.py +2 -30
  32. modal/queue.py +12 -17
  33. modal/queue.pyi +8 -12
  34. modal/runner.py +2 -7
  35. modal/sandbox.py +25 -13
  36. modal/sandbox.pyi +21 -0
  37. modal/secret.py +7 -4
  38. modal/secret.pyi +5 -5
  39. modal/serving.py +1 -1
  40. modal/volume.py +12 -17
  41. modal/volume.pyi +8 -12
  42. {modal-0.68.24.dist-info → modal-0.68.42.dist-info}/METADATA +2 -2
  43. {modal-0.68.24.dist-info → modal-0.68.42.dist-info}/RECORD +51 -50
  44. modal_proto/api.proto +1 -1
  45. modal_proto/api_pb2.py +750 -750
  46. modal_proto/api_pb2.pyi +4 -4
  47. modal_version/_version_generated.py +1 -1
  48. {modal-0.68.24.dist-info → modal-0.68.42.dist-info}/LICENSE +0 -0
  49. {modal-0.68.24.dist-info → modal-0.68.42.dist-info}/WHEEL +0 -0
  50. {modal-0.68.24.dist-info → modal-0.68.42.dist-info}/entry_points.txt +0 -0
  51. {modal-0.68.24.dist-info → modal-0.68.42.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi CHANGED
@@ -1069,11 +1069,11 @@ class AppLayout(google.protobuf.message.Message):
1069
1069
  ) -> None: ...
1070
1070
  def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
1071
1071
 
1072
- OBJECT_FIELD_NUMBER: builtins.int
1072
+ OBJECTS_FIELD_NUMBER: builtins.int
1073
1073
  FUNCTION_IDS_FIELD_NUMBER: builtins.int
1074
1074
  CLASS_IDS_FIELD_NUMBER: builtins.int
1075
1075
  @property
1076
- def object(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Object]: ...
1076
+ def objects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Object]: ...
1077
1077
  @property
1078
1078
  def function_ids(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
1079
1079
  """tag -> function id"""
@@ -1083,11 +1083,11 @@ class AppLayout(google.protobuf.message.Message):
1083
1083
  def __init__(
1084
1084
  self,
1085
1085
  *,
1086
- object: collections.abc.Iterable[global___Object] | None = ...,
1086
+ objects: collections.abc.Iterable[global___Object] | None = ...,
1087
1087
  function_ids: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1088
1088
  class_ids: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1089
1089
  ) -> None: ...
1090
- def ClearField(self, field_name: typing_extensions.Literal["class_ids", b"class_ids", "function_ids", b"function_ids", "object", b"object"]) -> None: ...
1090
+ def ClearField(self, field_name: typing_extensions.Literal["class_ids", b"class_ids", "function_ids", b"function_ids", "objects", b"objects"]) -> None: ...
1091
1091
 
1092
1092
  global___AppLayout = AppLayout
1093
1093
 
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2024
2
2
 
3
3
  # Note: Reset this value to -1 whenever you make a minor `0.X` release of the client.
4
- build_number = 24 # git: da5127e
4
+ build_number = 42 # git: 8ad273b