modal 1.1.5.dev24__py3-none-any.whl → 1.1.5.dev26__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/client.pyi +2 -2
- modal/functions.pyi +6 -6
- modal/image.py +62 -0
- modal/image.pyi +163 -0
- {modal-1.1.5.dev24.dist-info → modal-1.1.5.dev26.dist-info}/METADATA +1 -1
- {modal-1.1.5.dev24.dist-info → modal-1.1.5.dev26.dist-info}/RECORD +14 -14
- modal_proto/api.proto +22 -1
- modal_proto/api_pb2.py +902 -869
- modal_proto/api_pb2.pyi +78 -1
- modal_version/__init__.py +1 -1
- {modal-1.1.5.dev24.dist-info → modal-1.1.5.dev26.dist-info}/WHEEL +0 -0
- {modal-1.1.5.dev24.dist-info → modal-1.1.5.dev26.dist-info}/entry_points.txt +0 -0
- {modal-1.1.5.dev24.dist-info → modal-1.1.5.dev26.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.5.dev24.dist-info → modal-1.1.5.dev26.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -1994,6 +1994,64 @@ class AuthTokenGetResponse(google.protobuf.message.Message):
|
|
|
1994
1994
|
|
|
1995
1995
|
global___AuthTokenGetResponse = AuthTokenGetResponse
|
|
1996
1996
|
|
|
1997
|
+
class AutoscalerConfiguration(google.protobuf.message.Message):
|
|
1998
|
+
"""Message representing the current (coalesced) state of the autoscaler configuration
|
|
1999
|
+
As well as the different sources that were used to create it.
|
|
2000
|
+
"""
|
|
2001
|
+
|
|
2002
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2003
|
+
|
|
2004
|
+
class OverrideEventsEntry(google.protobuf.message.Message):
|
|
2005
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2006
|
+
|
|
2007
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
2008
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
2009
|
+
key: builtins.str
|
|
2010
|
+
@property
|
|
2011
|
+
def value(self) -> global___UserActionInfo: ...
|
|
2012
|
+
def __init__(
|
|
2013
|
+
self,
|
|
2014
|
+
*,
|
|
2015
|
+
key: builtins.str = ...,
|
|
2016
|
+
value: global___UserActionInfo | None = ...,
|
|
2017
|
+
) -> None: ...
|
|
2018
|
+
def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ...
|
|
2019
|
+
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
2020
|
+
|
|
2021
|
+
SETTINGS_FIELD_NUMBER: builtins.int
|
|
2022
|
+
OVERRIDE_EVENTS_FIELD_NUMBER: builtins.int
|
|
2023
|
+
DEFAULT_SETTINGS_FIELD_NUMBER: builtins.int
|
|
2024
|
+
STATIC_SETTINGS_FIELD_NUMBER: builtins.int
|
|
2025
|
+
OVERRIDE_SETTINGS_FIELD_NUMBER: builtins.int
|
|
2026
|
+
@property
|
|
2027
|
+
def settings(self) -> global___AutoscalerSettings:
|
|
2028
|
+
"""The settings that are currently in effect."""
|
|
2029
|
+
@property
|
|
2030
|
+
def override_events(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___UserActionInfo]:
|
|
2031
|
+
"""For tracking the source of the overridden value; keys correspond to fields in `settings`."""
|
|
2032
|
+
@property
|
|
2033
|
+
def default_settings(self) -> global___AutoscalerSettings:
|
|
2034
|
+
"""The default settings that are used when no static settings are provided and no overrides are in effect."""
|
|
2035
|
+
@property
|
|
2036
|
+
def static_settings(self) -> global___AutoscalerSettings:
|
|
2037
|
+
"""The static settings that were used to initialize the configuration."""
|
|
2038
|
+
@property
|
|
2039
|
+
def override_settings(self) -> global___AutoscalerSettings:
|
|
2040
|
+
"""The merge of all overrides that were used to create the current configuration."""
|
|
2041
|
+
def __init__(
|
|
2042
|
+
self,
|
|
2043
|
+
*,
|
|
2044
|
+
settings: global___AutoscalerSettings | None = ...,
|
|
2045
|
+
override_events: collections.abc.Mapping[builtins.str, global___UserActionInfo] | None = ...,
|
|
2046
|
+
default_settings: global___AutoscalerSettings | None = ...,
|
|
2047
|
+
static_settings: global___AutoscalerSettings | None = ...,
|
|
2048
|
+
override_settings: global___AutoscalerSettings | None = ...,
|
|
2049
|
+
) -> None: ...
|
|
2050
|
+
def HasField(self, field_name: typing_extensions.Literal["default_settings", b"default_settings", "override_settings", b"override_settings", "settings", b"settings", "static_settings", b"static_settings"]) -> builtins.bool: ...
|
|
2051
|
+
def ClearField(self, field_name: typing_extensions.Literal["default_settings", b"default_settings", "override_events", b"override_events", "override_settings", b"override_settings", "settings", b"settings", "static_settings", b"static_settings"]) -> None: ...
|
|
2052
|
+
|
|
2053
|
+
global___AutoscalerConfiguration = AutoscalerConfiguration
|
|
2054
|
+
|
|
1997
2055
|
class AutoscalerSettings(google.protobuf.message.Message):
|
|
1998
2056
|
"""A collection of user-configurable settings for Function autoscaling
|
|
1999
2057
|
These are used for static configuration and for dynamic autoscaler updates
|
|
@@ -2007,7 +2065,7 @@ class AutoscalerSettings(google.protobuf.message.Message):
|
|
|
2007
2065
|
SCALEUP_WINDOW_FIELD_NUMBER: builtins.int
|
|
2008
2066
|
SCALEDOWN_WINDOW_FIELD_NUMBER: builtins.int
|
|
2009
2067
|
min_containers: builtins.int
|
|
2010
|
-
"""Minimum containers when scale-to-zero is not
|
|
2068
|
+
"""Minimum containers when scale-to-zero is not desired; pka "keep_warm" or "warm_pool_size" """
|
|
2011
2069
|
max_containers: builtins.int
|
|
2012
2070
|
"""Limit on the number of containers that can be running for each Function; pka "concurrency_limit" """
|
|
2013
2071
|
buffer_containers: builtins.int
|
|
@@ -10481,6 +10539,25 @@ class UploadUrlList(google.protobuf.message.Message):
|
|
|
10481
10539
|
|
|
10482
10540
|
global___UploadUrlList = UploadUrlList
|
|
10483
10541
|
|
|
10542
|
+
class UserActionInfo(google.protobuf.message.Message):
|
|
10543
|
+
"""Used for capturing context about an action performed by a user"""
|
|
10544
|
+
|
|
10545
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
10546
|
+
|
|
10547
|
+
USER_ID_FIELD_NUMBER: builtins.int
|
|
10548
|
+
TIMESTAMP_FIELD_NUMBER: builtins.int
|
|
10549
|
+
user_id: builtins.str
|
|
10550
|
+
timestamp: builtins.float
|
|
10551
|
+
def __init__(
|
|
10552
|
+
self,
|
|
10553
|
+
*,
|
|
10554
|
+
user_id: builtins.str = ...,
|
|
10555
|
+
timestamp: builtins.float = ...,
|
|
10556
|
+
) -> None: ...
|
|
10557
|
+
def ClearField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp", "user_id", b"user_id"]) -> None: ...
|
|
10558
|
+
|
|
10559
|
+
global___UserActionInfo = UserActionInfo
|
|
10560
|
+
|
|
10484
10561
|
class VolumeCommitRequest(google.protobuf.message.Message):
|
|
10485
10562
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
10486
10563
|
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|