Guid
Windows globally unique identifier mirroring the native GUID fields.
Constructor
Guid value
Parses canonical GUID text or binary, or copies an existing Guid.
Binary values use the 16-byte native Windows in-memory layout.
Parameters
| Name | Type | Description |
|---|---|---|
value |
(Str | Bin | Guid) |
GUID text, native packet, or Guid. |
Errors
ValueError if the text is invalid or bytes are not exactly 16 long.
Example
Class Fields
Fields
bytesThe raw 16-byte native Windows in-memory GUID packet.
data1The
Data1field.data2The
Data2field.data3The
Data3field.data4The 8-byte
Data4field.
Methods
(eq) other
Compares two GUID values.
(str)()
Returns the canonical hyphenated GUID text.
generate() -> Guid
Generates a random Guid.