Skip to main content

module  pixeltable.functions.uuid

Pixeltable UDFs for UUID.

udf  to_string()

Signature
Convert a UUID to its string representation. Parameters:
  • u (pxt.UUID): The UUID to convert.
Returns:
  • pxt.String: The string representation of the UUID, in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Examples: Convert the UUID column id in an existing table tbl to a string:

udf  uuid4()

Signature
Generate a random UUID (version 4). Equivalent to uuid.uuid4().

udf  uuid7()

Signature
Generate a time-based UUID. Equivalent to uuid.uuid7().
Last modified on June 24, 2026