Name: bespin-jobtoken-generator
Owner: Duke Center for Genomic and Computational Biology
Description: null
Created: 2017-11-08 16:00:28.0
Updated: 2017-11-08 18:53:35.0
Pushed: 2017-11-08 19:00:24.0
Homepage: null
Size: 2
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Python script to generate human-readable, random job tokens. Prints out a shuffled list of words separated by a -
, followed by a 3-digit random integer.
des.py words.txt [optional random seed] > codes.txt
Where wordlist contains groups of words. One word per line, and groups separated by a blank line. A words.txt
like this:
ge
ow
would produce codes like:
ge-cat-643
-dog-217
st-job-tokens.py codes.txt https://bespin.domain.com/api some-admin-auth-token
Where bespin.domain.com
is the FQDN of the server running bespin-api, and some-admin-auth-token
is a token used for authenticating an admin user.