Skip to content

Instantly share code, notes, and snippets.

@PeteGabriel
Created February 14, 2018 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeteGabriel/38c2eeee3fae25d5ac4f69bbea8452ab to your computer and use it in GitHub Desktop.
Save PeteGabriel/38c2eeee3fae25d5ac4f69bbea8452ab to your computer and use it in GitHub Desktop.
Generator of guid in cmd line
import uuid
import sys
if len(sys.argv) <= 1:
print(uuid.uuid1())
else:
for x in range(0, int(sys.argv[1])):
print(uuid.uuid1())
#usage
#gen_guid 3
# 889470b8-11d9-11e8-9a10-9061ae5a3e9d
# 8896d292-11d9-11e8-a15e-9061ae5a3e9d
# 8896d293-11d9-11e8-b9e4-9061ae5a3e9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment