AetherOrchestrator/Python/AetherCommon/Utils/Check.py

8 lines
213 B
Python

from typing import Any
from AetherAgentsServer.Utils.RE import RE
class Check:
@staticmethod
def is_key(item:Any) -> bool:
return isinstance(item, str) and item != "" and bool(RE.KEY.match(item))