Duke-GCB/bespin-jobtoken-generator

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Bespin Job Token Generator

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.

Generating Job Tokens
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

Creating Bespin Job Tokens via the API
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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.