Mercurial > repos > iuc > ncbi_eutils_epost
comparison einfo.py @ 1:196b8dd07896 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
author | iuc |
---|---|
date | Tue, 30 Oct 2018 19:10:51 -0400 |
parents | 18e6b25259ff |
children | ae3a5d753d42 |
comparison
equal
deleted
inserted
replaced
0:18e6b25259ff | 1:196b8dd07896 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 from __future__ import print_function | |
3 | |
2 import argparse | 4 import argparse |
5 | |
3 import eutils | 6 import eutils |
4 | 7 |
5 | 8 |
6 if __name__ == '__main__': | 9 if __name__ == '__main__': |
7 parser = argparse.ArgumentParser(description='EInfo', epilog='') | 10 parser = argparse.ArgumentParser(description='EInfo', epilog='') |
13 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) |
14 payload = {} | 17 payload = {} |
15 if args.db is not None: | 18 if args.db is not None: |
16 payload['db'] = args.db | 19 payload['db'] = args.db |
17 payload['version'] = '2.0' | 20 payload['version'] = '2.0' |
18 print c.info(**payload) | 21 print(c.info(**payload)) |