Skip to content

Instantly share code, notes, and snippets.

@lmorduch
lmorduch / validate_uuid4.py
Last active September 19, 2018 19:03 — forked from ShawnMilo/validate_uuid4.py
Validating a uuid4 with Python.
from uuid import UUID
def validate_uuid4(uuid_string):
"""
Validate that a UUID string is in
fact a valid uuid4.
Happily, the uuid module does the actual
checking for us.