Skip to content

hdx.utilities.uuid

module hdx.utilities.uuid

Functions

get_uuid() → str

Get an UUID.

Returns

  • str — A UUID

is_valid_uuid(uuid_to_test: str, version: int = 4) → bool

Check if uuid_to_test is a valid UUID.

Parameters

  • uuid_to_test : str — UUID to test for validity

  • version : int — UUID version. Defaults to 4.

Returns

  • bool — Current script's directory