Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test code
import uuid
uid = input('Enter uuid: ')
uid = uid if not uid == '' else str(uuid.uuid1())
print("Using UUID: %s, Variable Type: %s" % (uid, repr(type(uid))))
x = uuid.UUID(uid)
print('version',x.version)
print('time',x.time)
print('node',x.node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment