Created
February 14, 2018 22:51
-
-
Save PeteGabriel/38c2eeee3fae25d5ac4f69bbea8452ab to your computer and use it in GitHub Desktop.
Generator of guid in cmd line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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