Mercurial > repos > stevecassidy > alveoimport
view alveo_api_key.py @ 18:5e1b7d922ea3 draft default tip
planemo upload for repository https://github.com/Alveo/alveo-galaxy-tools commit 53cde5cc9b8c1adcccdc3cfa52d8ca82079aeda7
author | stevecassidy |
---|---|
date | Mon, 15 Jan 2018 18:34:57 -0500 |
parents | a38315ecf593 |
children |
line wrap: on
line source
from __future__ import print_function import argparse import sys from util import write_key def parser(): p = argparse.ArgumentParser(description="Retrieves Alveo Item Lists") p.add_argument('--api_key', required=True, action="store", type=str, help="Alveo API key") p.add_argument('--output_path', required=True, action="store", type=str, help="File to store the API key in") return p.parse_args() def main(): args = parser() try: write_key(args.api_key, args.output_path) except Exception as e: print(e, file=sys.stderr) # print("ERROR: " + str(e), file=sys.stderr) sys.exit(1) if __name__ == '__main__': main()