policyweaver.core.utility¶
policyweaver.core.utility¶
- class policyweaver.core.utility.Utils¶
Bases:
objectUtility class for common operations in the Policy Weaver application. This class provides static methods for validating email addresses and UUIDs.
- static is_email(email)¶
Validate if the provided string is a valid email address. Args:
email (str): The email address to validate.
- Returns:
bool: True if the email is valid, False otherwise.
- static is_uuid(uuid_string: str) bool¶
Validate if the provided string is a valid UUID. Args:
uuid_string (str): The UUID string to validate.
- Returns:
bool: True if the string is a valid UUID, False otherwise.