deploy_tools.models.module#
Members
Represents an environment variable to set when loading the Module. |
|
Represents a Module to be deployed. |
|
Specify an Environment Module to include as a dependency. |
|
Represents a Module along with its lifecycle (deprecation) status. |
- class deploy_tools.models.module.ModuleDependency(*, name: str, version: str | None = None)[source]#
Specify an Environment Module to include as a dependency.
If the dependent Environment Module is managed by this same Deployment (i.e. is a Module), you must specify a specific version in order to pass validation.
- class deploy_tools.models.module.EnvVar(*, name: ~typing.Annotated[str, ~pydantic.types.StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=None, max_length=None, pattern=^[a-zA-Z_][a-zA-Z0-9_]*$, ascii_only=None)], value: str)[source]#
Represents an environment variable to set when loading the Module.
- class deploy_tools.models.module.Module(*, name: ~typing.Annotated[str, ~pydantic.types.StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=None, max_length=None, pattern=^[a-zA-Z][0-9a-zA-Z_-]*$, ascii_only=None)], version: ~typing.Annotated[str, ~pydantic.types.StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=None, max_length=None, pattern=^[^.].*$, ascii_only=None)], description: str | None = None, dependencies: list[~deploy_tools.models.module.ModuleDependency] = [], env_vars: list[~deploy_tools.models.module.EnvVar] = [], applications: list[~typing.Annotated[~deploy_tools.models.apptainer_app.ApptainerApp | ~deploy_tools.models.shell_app.ShellApp | ~deploy_tools.models.binary_app.BinaryApp, FieldInfo(annotation=NoneType, required=True, discriminator='app_type')]], allow_updates: bool = False, exclude_from_defaults: bool = False, load_script: list[str] = [], unload_script: list[str] = [])[source]#
Represents a Module to be deployed.
Modules can optionally include a set of applications, environment variables to load, and a list of module dependencies.