Search code examples
uuid

uuidgen alternative


I'm running Windows XP. I don't have Microsoft Visual Studio installed and I don't want to install it.

I need a couple of UUIDs but uuidgen doesn't seem to be on my system.

Is there a single executable out there from a reputable source, that I can download and use to generate UUIDs?


Solution

  • aha, I already have python on my machine:

    C:\WINDOWS>python
    Python 2.6.5 (r265:79096, Mar 19 2010, 21:48::26) [MSC v.1500 32 bit (Intel)] on
    win32
    Type "help", "copyright", "credits" or "licen
    >>> import uuid
    >>> uuid.uuid4()
    UUID('640628d4-4e4d-4a7a-8f9e-24aa6106b56a')