9 lines
254 B
Python
9 lines
254 B
Python
from uuid import UUID, uuid5
|
|
from .data_types import IngestionData
|
|
|
|
null_uuid: UUID = UUID("00000000-0000-0000-0000-000000000000")
|
|
|
|
def identify(data: IngestionData) -> UUID:
|
|
data_id: str = data.get_identifier()
|
|
|
|
return uuid5(null_uuid, data_id)
|