from enum import Enum class KompasCommand(str, Enum): OPEN_KOMPAS = "open_kompas" GET_AVAILABLE_ACTIONS = "get_available_actions" IGES = "iges" STATS = "stats" EXPORT_RASTER = "export_raster" PROJECT_SUPPORT = "project_support" @classmethod def has_value(cls, value): return any(value == item.value for item in cls)