Mercurial > repos > stevecassidy > alveoimport
view alveo_api_key.py @ 14:a38315ecf593 draft
planemo upload for repository https://github.com/Alveo/alveo-galaxy-tools commit b5b26e9118f2ad8af109d606746b39a5588f0511-dirty
author | stevecassidy |
---|---|
date | Wed, 01 Nov 2017 01:18:15 -0400 |
parents | 3a9f20428cff |
children | 5e1b7d922ea3 |
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("ERROR: " + str(e), file=sys.stderr) sys.exit(1) if __name__ == '__main__': main()