helperFunctions.uid module

helperFunctions.uid.create_uid(input_data)

generate a UID (unique identifier) SHA256_SIZE for a byte string containing data (e.g. a binary)

Parameters:

input_data (bytes) – the data to generate the UID for

Returns:

a string containing the UID

Return type:

str

helperFunctions.uid.is_list_of_uids(input_list)

Checks if all elements of a list are valid UIDs

Parameters:

input_list (list[AnyStr] | set[AnyStr]) – the list to check

Returns:

true if input list contains only valid UIDs and false otherwise

Return type:

bool

helperFunctions.uid.is_uid(input_string)

Check if a string is a valid UID

Parameters:

input_string (AnyStr) – the string to check

Returns:

true if input string is a valid uid and false otherwise

Return type:

bool