"""Utility functions for the objaverse_xl package.""" | |
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)) | |