uuidutils¶
UUID related utilities and helper functions.
New in version 1.1.
- oslo_utils.uuidutils.generate_uuid(dashed=True)¶
Creates a random uuid string.
- Parameters
dashed (bool) – Generate uuid with dashes or not
- Returns
string
- oslo_utils.uuidutils.is_uuid_like(val)¶
Returns validation of a value as a UUID.
- Parameters
val (string) – Value to verify
- Returns
bool
Changed in version 1.1.1: Support non-lowercase UUIDs.