API
Low-level UUID implementation for Python.
Exposes UUID (compatible with stdlib uuid.UUID), uuid4(), and randstr_16().
- class picoid.UUID
Bases:
UUIDUUID type compatible with stdlib uuid.UUID, with fast C-backed storage.
- Parameters:
inp (-) – A hyphenated UUID string (32 hex chars with optional hyphens) or exactly 16 bytes.
- Returns:
None (constructor).
- bytes
- bytes_le
- clock_seq
- clock_seq_hi_variant
- clock_seq_low
- fields
- hex
- int
- is_safe
- node
- time
- time_hi_version
- time_low
- time_mid
- urn
- variant
- version
- picoid.randstr_16()
Return 16 random bytes with UUID4 version/variant bits set.
- Parameters:
(none)
- Returns:
16 random bytes with UUID4 version/variant bits set (bytes).
- picoid.uuid4()
Generate a random UUID (version 4).
- Parameters:
(none)
- Returns:
A new random UUID4 instance (UUID).