Datasets:

Languages:
English
ArXiv:
License:
mattdeitke's picture
refactor
62cd5a4
raw
history blame
308 Bytes
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))