INNER CODE UNIT · Python
__init__
modal-labs/modal-client · py/modal/app.py:196
def __init__(
self,
name: str | None = None,
*,
tags: dict[str, str] | None = None,
image: _Image | None = None,
secrets: Sequence[_Secret] = [],
volumes: dict[str | PurePosixPath, _Volume] = {},
include_source: bool = True,
) -> None:
"""Construct a new app, optionally with default image, mounts, secrets, or volumes.
Args:
name: Optional app name used for registration and lookup.
tags: Additional metadata to set on the App.
image: Default image for the App (otherwise defaults to `modal.Image.debian_slim()`).
secrets: Secrets to add for all Functions in the App.
volumes: Volume mounts to use for all Functions.