comparison egquery.py @ 3:55b3067762f9 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:50:37 +0000
parents 2791c731fc65
children
comparison
equal deleted inserted replaced
2:1ed9a99b9b1f 3:55b3067762f9
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
8 7
9 if __name__ == '__main__': 8 if __name__ == '__main__':
10 parser = argparse.ArgumentParser(description='EGQuery', epilog='') 9 parser = argparse.ArgumentParser(description='EGQuery', epilog='')
11 parser.add_argument('term', help='Query') 10 parser.add_argument('term', help='Query')
12 # 11
13 parser.add_argument('--user_email', help="User email") 12 parser.add_argument('--user_email', help="User email")
14 parser.add_argument('--admin_email', help="Admin email") 13 parser.add_argument('--admin_email', help="Admin email")
14
15 parser.add_argument('--version', action='version', version=eutils.Client.getVersion(), help='Version (reports Biopython version)')
16
15 args = parser.parse_args() 17 args = parser.parse_args()
16 18
17 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email) 19 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email)
18 20
19 payload = { 21 payload = {