Skip to main content

infrahub_sdk.uuidt

Functions

generate_uuid

generate_uuid() -> str

encode_number

encode_number(number: int, min_length: int) -> str

Encode a number into a base16 string and ensure the result has a minimum size. If the initial response produced doesn't match the min requirement, random number will be used to fill the gap

Classes

UUIDT

Methods:

short

short(self) -> str

Return the last 8 digit of the UUID (the most random part)

new

new(cls, namespace: str | None = None) -> UUID