comparison einfo.py @ 0:92bd8a680b9d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 15bcc5104c577b4b9c761f2854fc686c07ffa9db
author iuc
date Thu, 07 Jul 2016 02:41:02 -0400
parents
children c8d4ea6376a7
comparison
equal deleted inserted replaced
-1:000000000000 0:92bd8a680b9d
1 #!/usr/bin/env python
2 import argparse
3 import eutils
4
5
6 if __name__ == '__main__':
7 parser = argparse.ArgumentParser(description='EInfo', epilog='')
8 parser.add_argument('--db', help='Database to use')
9 parser.add_argument('--user_email', help="User email")
10 parser.add_argument('--admin_email', help="Admin email")
11 args = parser.parse_args()
12
13 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email)
14 payload = {}
15 if args.db is not None:
16 payload['db'] = args.db
17 payload['version'] = '2.0'
18 print c.info(**payload)