Back
How do I create a GUID in Python that is platform independent? I hear there is a method using ActivePython on Windows but it's Windows only because it uses COM. Is there a method using plain Python?
To create GUID/UUID you can use the following piece of code:-
import uuiduuid.uuid4()str(uuid.uuid4()) uuid.uuid4().hex
import uuid
uuid.uuid4()
str(uuid.uuid4())
uuid.uuid4().hex
31k questions
32.4k answers
500 comments
693 users