nustack
ReferenceStd

nu.std.uuid

Mirrors uuid 1-1: UUID is the class (a Form); uuid1/uuid3/uuid4/uuid5 are the module-level generator functions.

from nu.std.uuid import UUID, uuid4

Value type

NameSortSignatureEffectMeaning
UUIDFormUUID.of(...) (via from_str/from_bytes/from_int)pureUUID; .version/.variant/.time/.clock_seq/.node, .hex/.urn/.bytes/.bytes_le/.int_, comparison

Functions

NameSortSignatureEffectMeaning
uuid4ScalarQueryuuid4()non-detrandom UUID (version 4)
uuid1ScalarQueryuuid1(node=None, clock_seq=None)non-dethost/time UUID (version 1)
uuid3ScalarQueryuuid3(namespace, name)purename-based MD5 UUID (version 3)
uuid5ScalarQueryuuid5(namespace, name)purename-based SHA-1 UUID (version 5)

On this page