Security and Identifier Modules

uuid

Creates and parses immutable UUID identifiers. Python 3.13 offers random version 4, name-based versions 3 and 5, and time-based version 1. Version 1 can reveal machine-related information; UUIDs are identifiers, not authentication tokens or guaranteed collision-free values.

Formal Syntax & Structure

python syntaxpython
import uuid

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
from uuid import UUIDidentifier = UUID("12345678-1234-4234-8234-123456789abc")print(identifier.version)print(len(identifier.bytes))
Python Reference