I\'m needing to both validate a list of UUID\'s as well as determine the version. For example, using https://www.beautifyconverter.com/uuid-validator.php and entering 25CCCA
def validate_uuid4(uuid_string):
try:
val = UUID(uuid_string, version=4)
except ValueError:
# If it's a value error, then the string
# is not a valid hex code for a UUID.
return False
return True
You can use the above function to go through your list of uuid string and it will tell you whether a particular string in the list if a valid version 4 uuid