Last active
November 5, 2015 04:19
-
-
Save alexphelps/94c21569effbb1c07893 to your computer and use it in GitHub Desktop.
Cleaned UUID for Token
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
""" | |
Clean the dashes from a UUID to a create | |
a resonably acceptable API Token | |
""" | |
import uuid | |
uuidtoken = str(uuid.uuid4()) | |
token = filter(lambda x: x != '-', uuidtoken) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment