comparison epost.py @ 1:28f69754ddc5 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:09:05 -0400
parents 9d18e6815994
children d1789b4821fc
comparison
equal deleted inserted replaced
0:9d18e6815994 1:28f69754ddc5
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='EPost', epilog='') 10 parser = argparse.ArgumentParser(description='EPost', epilog='')
22 payload.update(c.get_history()) 25 payload.update(c.get_history())
23 else: 26 else:
24 payload['id'] = ','.join(merged_ids) 27 payload['id'] = ','.join(merged_ids)
25 payload['WebEnv'] = '' 28 payload['WebEnv'] = ''
26 29
27 print c.post(args.db, **payload) 30 print(c.post(args.db, **payload))