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

uuid.uuid1

Prev: uuid.UUID | Up: uuid | Next: uuid.uuid3
Rel: uuid.bytes_, uuid.Enum, uuid.getnode, uuid.int_
Ref: docs.python.org — uuid.uuid1
Tags: #public #python3 #stdlib #uuid


Import

import uuid
from uuid import uuid1

Signature & Overview

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

Generate a UUID from a host ID, sequence number, and the current time.

Usage

import uuid

u = uuid.uuid1()
assert u.version == 1

Gotchas

REPL Inspect

from uuid import uuid1
help(uuid1)

Linked from

Related notes