guid

Convert UUID 32-character hex string into a "YouTube-style" short id and back

Convert UUID 32-character hex string into a "YouTube-style" short id and back Question: I’m assigning all my MongoDB documents a GUID using uuid.uuid1(). I want a way I can derive an 11 character, unique, case-sensitive YouTube-like ID, such as 1_XmY09uRJ4 from uuid’s resulting hex string which looks like ae0a0c98-f1e5-11e1-9t2b-1231381dac60 I want to be able to …

Total answers: 3

How to generate unique 64 bits integers from Python?

How to generate unique 64 bits integers from Python? Question: I need to generate unique 64 bits integers from Python. I’ve checked out the UUID module. But the UUID it generates are 128 bits integers. So that wouldn’t work. Do you know of any way to generate 64 bits unique integers within Python? Thanks. Asked …

Total answers: 5

How to create a GUID/UUID in Python

How to create a GUID/UUID in Python Question: How do I create a GUID/UUID 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? Asked By: Jonathon Watney || Source Answers: The uuid module …

Total answers: 9