Enums
zenml.enums
ZenML enums.
Attributes
PLATFORM_EVENT_REGISTRY: dict[SourceType, type[DescribedValuesEnum]] = {SourceType.PIPELINE: PipelineEvent, SourceType.PIPELINE_RUN: PipelineRunEvent}
module-attribute
Classes
APITokenType
AnalyticsEventSource
AnnotationTasks
ArtifactSaveType
ArtifactType
AuthScheme
CliCategories
Bases: StrEnum
All possible categories for CLI commands.
Note: The order of the categories is important. The same order is used to sort the commands in the CLI help output.
ColorVariants
ContainerEngineType
ContainerRegistryFlavor
CuratedVisualizationSize
DatabaseBackupStrategy
DeploymentStatus
DescribedValuesEnum
Bases: StrEnum
Enum abstraction displaying enum descriptions.
Functions
described_values() -> list[dict[str, str | None]]
classmethod
Helper - returns a list of dictionaries describing the enum values.
Returns:
| Type | Description |
|---|---|
list[dict[str, str | None]]
|
A list of dictionary objects with descriptions. |
Source code in src/zenml/utils/enum_utils.py
68 69 70 71 72 73 74 75 76 77 78 79 80 | |
value_description_index() -> dict[str, str]
abstractmethod
classmethod
Helper utility to describe enum values.
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
An dictionary with descriptions for each enum value. |
Source code in src/zenml/utils/enum_utils.py
58 59 60 61 62 63 64 65 66 | |
DownloadType
EnvironmentType
ExecutionMode
ExecutionStatus
Bases: StrEnum
Enum that represents the execution status of a step or pipeline run.
Attributes
is_failed: bool
property
Whether the execution status refers to a failed execution.
Returns:
| Type | Description |
|---|---|
bool
|
Whether the execution status refers to a failed execution. |
is_finished: bool
property
Returns whether the execution status is in a finished state.
Returns:
| Type | Description |
|---|---|
bool
|
Whether the execution status is finished. |
is_successful: bool
property
Whether the execution status refers to a successful execution.
Returns:
| Type | Description |
|---|---|
bool
|
Whether the execution status refers to a successful execution. |
GenericFilterOps
GroupType
KubernetesServiceType
LoggingLevels
Bases: Enum
Enum for logging levels.
LogicalOperators
MetadataResourceTypes
ModelStages
OAuthDeviceStatus
OAuthGrantTypes
OnboardingStep
OperatingSystemType
PipelineEvent
Bases: DescribedValuesEnum
Enum representing platform target events for pipelines.
Functions
value_description_index() -> dict[str, str]
classmethod
Helper utility to describe enum values.
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
An dictionary with descriptions for each enum value. |
Source code in src/zenml/enums.py
691 692 693 694 695 696 697 698 699 700 701 | |
PipelineRunEvent
Bases: DescribedValuesEnum
Enum representing platform target events for pipeline runs.
Functions
value_description_index() -> dict[str, str]
classmethod
Helper utility to describe enum values.
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
An dictionary with descriptions for each enum value. |
Source code in src/zenml/enums.py
710 711 712 713 714 715 716 717 718 719 720 | |
PipelineRunTriggeredByType
ResourceRequestStatus
ResponseUpdateStrategy
RunWaitConditionLeaseMode
RunWaitConditionResolution
RunWaitConditionStatus
RunWaitConditionType
SecretResourceTypes
SecretValidationLevel
SecretsStoreType
ServerProviderType
ServiceState
SorterOps
SourceContextTypes
SourceType
StackComponentType
Bases: StrEnum
All possible types a StackComponent can have.
Attributes
plural: str
property
Returns the plural of the enum value.
Returns:
| Type | Description |
|---|---|
str
|
The plural of the enum value. |
supports_multiple_per_stack: bool
property
Whether multiple components of this type can exist in one stack.
Returns:
| Type | Description |
|---|---|
bool
|
True if this component type is repeatable within a stack. |
StackDeploymentProvider
StepRunInputArtifactType
StepRuntime
StepType
StoreType
StrEnum
Bases: str, Enum
Base enum type for string enum values.
Functions
names() -> List[str]
classmethod
Get all enum names as a list of strings.
Returns:
| Type | Description |
|---|---|
List[str]
|
A list of all enum names. |
Source code in src/zenml/utils/enum_utils.py
32 33 34 35 36 37 38 39 | |
values() -> List[str]
classmethod
Get all enum values as a list of strings.
Returns:
| Type | Description |
|---|---|
List[str]
|
A list of all enum values. |
Source code in src/zenml/utils/enum_utils.py
41 42 43 44 45 46 47 48 | |
TaggableResourceTypes
TriggerFlavor
TriggerRunConcurrency
TriggerType
VisualizationResourceTypes
Bases: StrEnum
Resource types that support curated visualizations.
Curated visualizations can be attached to these ZenML resources to provide contextual dashboards and visual insights throughout the ML lifecycle:
- DEPLOYMENT: Server-side pipeline deployments - surface visualizations on deployment monitoring dashboards and status pages
- MODEL: ZenML model entities - surface model evaluation dashboards and performance summaries directly on the model detail pages
- PIPELINE: Pipeline definitions - associate visualizations with pipeline configurations for reusable visual documentation
- PIPELINE_RUN: Pipeline execution runs - attach visualizations to specific run results for detailed analysis and debugging
- PIPELINE_SNAPSHOT: Pipeline snapshots - link visualizations to captured pipeline configurations for version comparison and historical analysis
- PROJECT: Project-level overviews - provide high-level project dashboards and KPI visualizations for cross-pipeline insights