File size: 308 Bytes
62cd5a4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import uuid
def get_uid_from_str(string: str) -> str:
"""Generates a UUID from a string.
Args:
string (str): String to generate a UUID from.
Returns:
str: UUID generated from the string.
"""
namespace = uuid.NAMESPACE_DNS
return str(uuid.uuid5(namespace, string))
|