On this page
  1. uuid.uuid6
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

uuid.uuid6

Prev: uuid.uuid5 | Up: uuid | Next: uuid.uuid7
Rel: uuid.bytes_, uuid.Enum, uuid.getnode, uuid.int_
Ref: docs.python.org — uuid.uuid6
Tags: #public #python3 #stdlib #uuid


Import

import uuid
from uuid import uuid6

Signature & Overview

uuid.uuid6(node=None, clock_seq=None)

Similar to :func:uuid1 but where fields are ordered differently for improved DB locality.

Usage

import uuid

if hasattr(uuid, 'uuid6'):
    assert uuid.uuid6().version == 6

Gotchas

REPL Inspect

from uuid import uuid6
help(uuid6)

Linked from

Related notes