modal.types
Public data types returned by Modal APIs.
modal.types.BillingReportItem
Costs generated by a specific object during a specific time interval.
Attributes
modal.types.DictInfo
Information about a Dict object.
Attributes
modal.types.FileEntry
A file or directory entry listed from a Modal volume.
Attributes
modal.types.FileEntryType
class FileEntryType(enum.IntEnum)Type of a file entry listed from a Modal volume.
The possible values are:
UNSPECIFIEDFILEDIRECTORYSYMLINKFIFOSOCKET
modal.types.FileInfo
Metadata for a file or directory entry in a Sandbox.
Attributes
is_file
is_file(self)Return True if this entry is a regular file.
is_dir
is_dir(self)Return True if this entry is a directory.
is_symlink
is_symlink(self)Return True if this entry is a symbolic link.
modal.types.FileType
class FileType(enum.Enum)Type of a filesystem entry.
The possible values are:
FILEDIRECTORYSYMLINK
modal.types.FileWatchEvent
A filesystem change event reported by Sandbox.filesystem.watch().
paths contains the absolute path(s) affected by the event. For most
event types it holds a single entry. Rename operations are reported as Modify events: when both the source and destination fall within the
watched scope, paths holds [source, destination]; when only one
side of the rename is visible, paths holds that single path.
Attributes
modal.types.FileWatchEventType
class FileWatchEventType(enum.Enum)Type of a filesystem watch event reported by Sandbox.filesystem.watch().
The possible values are:
UnknownAccessCreateModifyRemove
modal.types.FunctionStats
Simple data structure storing stats for a running function.
Attributes
modal.types.InputInfo
Simple data structure storing information about a function input.
Attributes
modal.types.InputStatus
class InputStatus(enum.IntEnum)Enum representing status of a function input.
The possible values are:
PENDINGSUCCESSFAILUREINIT_FAILURETERMINATEDTIMEOUT
modal.types.ProxyTokenInfo
Metadata about a proxy token, not including the token secret.
Attributes
modal.types.QueueInfo
Information about a Queue object.
Attributes
modal.types.SandboxConnectCredentials
Simple data structure storing credentials for making HTTP connections to a sandbox.
Attributes
modal.types.SecretInfo
Information about a Secret object.
Attributes
modal.types.TokenData
A token ID / secret pair.
Attributes
modal.types.VolumeCreateOptions
Options used when creating a Volume.
Attributes
modal.types.VolumeInfo
Information about a Volume object.
Attributes
modal.types.WorkspaceMemberInfo
Metadata about a Workspace member.
Attributes
modal.types.WorkspaceSettings
Current settings for the workspace.
Attributes