Skip to content

Enums

zenml.enums

ArtifactStoreFlavor (StackComponentFlavor)

All supported artifact store flavors.

Source code in zenml/enums.py
class ArtifactStoreFlavor(StackComponentFlavor):
    """All supported artifact store flavors."""

    AZURE = "azure"
    LOCAL = "local"
    GCP = "gcp"
    S3 = "s3"

ContainerRegistryFlavor (StackComponentFlavor)

All supported container registry flavors.

Source code in zenml/enums.py
class ContainerRegistryFlavor(StackComponentFlavor):
    """All supported container registry flavors."""

    DEFAULT = "default"

ExecutionStatus (StrEnum)

Enum that represents the current status of a step or pipeline run.

Source code in zenml/enums.py
class ExecutionStatus(StrEnum):
    """Enum that represents the current status of a step or pipeline run."""

    FAILED = "failed"
    COMPLETED = "completed"
    RUNNING = "running"
    CACHED = "cached"

LoggingLevels (Enum)

Enum for logging levels.

Source code in zenml/enums.py
class LoggingLevels(Enum):
    """Enum for logging levels."""

    NOTSET = logging.NOTSET
    ERROR = logging.ERROR
    WARN = logging.WARN
    INFO = logging.INFO
    DEBUG = logging.DEBUG
    CRITICAL = logging.CRITICAL

MetadataContextTypes (Enum)

All possible types that contexts can have within pipeline nodes

Source code in zenml/enums.py
class MetadataContextTypes(Enum):
    """All possible types that contexts can have within pipeline nodes"""

    STACK = "stack"

MetadataStoreFlavor (StackComponentFlavor)

All supported metadata store flavors.

Source code in zenml/enums.py
class MetadataStoreFlavor(StackComponentFlavor):
    """All supported metadata store flavors."""

    SQLITE = "sqlite"
    MYSQL = "mysql"
    KUBEFLOW = "kubeflow"

OrchestratorFlavor (StackComponentFlavor)

All supported orchestrator flavors.

Source code in zenml/enums.py
class OrchestratorFlavor(StackComponentFlavor):
    """All supported orchestrator flavors."""

    LOCAL = "local"
    KUBEFLOW = "kubeflow"
    AIRFLOW = "airflow"

StackComponentFlavor (StrEnum)

Abstract base class for all stack component flavors.

Source code in zenml/enums.py
class StackComponentFlavor(StrEnum):
    """Abstract base class for all stack component flavors."""

StackComponentType (StrEnum)

All possible types a StackComponent can have.

Source code in zenml/enums.py
class StackComponentType(StrEnum):
    """All possible types a `StackComponent` can have."""

    ORCHESTRATOR = "orchestrator"
    METADATA_STORE = "metadata_store"
    ARTIFACT_STORE = "artifact_store"
    CONTAINER_REGISTRY = "container_registry"

    @property
    def plural(self) -> str:
        """Returns the plural of the enum value."""
        if self == StackComponentType.CONTAINER_REGISTRY:
            return "container_registries"

        return f"{self.value}s"