comparison einfo.py @ 3:d1789b4821fc draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit dae34e5e182b4cceb808d7353080f14aa9a78ca9"
author iuc
date Wed, 23 Sep 2020 09:51:30 +0000
parents 28f69754ddc5
children
comparison
equal deleted inserted replaced
2:08412cd072d0 3:d1789b4821fc
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 from __future__ import print_function
3 2
4 import argparse 3 import argparse
5 4
6 import eutils 5 import eutils
7 6
9 if __name__ == '__main__': 8 if __name__ == '__main__':
10 parser = argparse.ArgumentParser(description='EInfo', epilog='') 9 parser = argparse.ArgumentParser(description='EInfo', epilog='')
11 parser.add_argument('--db', help='Database to use') 10 parser.add_argument('--db', help='Database to use')
12 parser.add_argument('--user_email', help="User email") 11 parser.add_argument('--user_email', help="User email")
13 parser.add_argument('--admin_email', help="Admin email") 12 parser.add_argument('--admin_email', help="Admin email")
13 parser.add_argument('--version', action='version', version=eutils.Client.getVersion(), help='Version (reports Biopython version)')
14 args = parser.parse_args() 14 args = parser.parse_args()
15 15
16 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email) 16 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email)
17 payload = {} 17 payload = {}
18 if args.db is not None: 18 if args.db is not None: