DocDoeAI / app /utils /ids.py
asnannp's picture
Deploy backend cd4237ff: support routes + rate limit + exam_date nullable + upload 413 fix
7c6ffa6
Raw
History Blame Contribute Delete
104 Bytes
from uuid import uuid4
def prefixed_id(prefix: str) -> str:
return f"{prefix}_{uuid4().hex[:16]}"