uuid_utils.py 156 B

123456789
  1. import uuid
  2. def is_valid_uuid(uuid_str: str) -> bool:
  3. try:
  4. uuid.UUID(uuid_str)
  5. return True
  6. except Exception:
  7. return False