summaryrefslogtreecommitdiff
path: root/kombu/utils/uuid.py
blob: 917eccf322b02f959d352d3ad9d886d6c931de74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""UUID utilities."""
from __future__ import annotations

from typing import Callable
from uuid import UUID, uuid4


def uuid(_uuid: Callable[[], UUID] = uuid4) -> str:
    """Generate unique id in UUID4 format.

    See Also
    --------
        For now this is provided by :func:`uuid.uuid4`.
    """
    return str(_uuid())