comparison egquery.py @ 9:4dc2757b8ce6 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 851b88d92fa7740880a5edf407f629bf3f7f7bf0
author iuc
date Fri, 04 Oct 2024 14:36:18 +0000
parents 7fe990069458
children
comparison
equal deleted inserted replaced
8:7fe990069458 9:4dc2757b8ce6
1 #!/usr/bin/env python
2
3 import argparse
4
5 import eutils
6
7
8 if __name__ == '__main__':
9 parser = argparse.ArgumentParser(description='EGQuery', epilog='')
10 parser.add_argument('term', help='Query')
11
12 parser.add_argument('--user_email', help="User 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
17 args = parser.parse_args()
18
19 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email)
20
21 payload = {
22 'term': args.term,
23 }
24 results = c.gquery(**payload)
25 print(results)