Mercurial > repos > eric-rasche > apollo
comparison list_organisms.py @ 0:6002cc0df04e draft
planemo upload for repository https://github.com/TAMU-CPT/galaxy-webapollo commit 4e5a5af7689f1713c34a6ad9a9594c205e762fdd
author | eric-rasche |
---|---|
date | Tue, 03 May 2016 13:38:55 -0400 |
parents | |
children | d4ae83dedb14 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6002cc0df04e |
---|---|
1 #!/usr/bin/env python | |
2 import json | |
3 import argparse | |
4 from webapollo import WebApolloInstance | |
5 | |
6 if __name__ == '__main__': | |
7 json | |
8 parser = argparse.ArgumentParser(description='Sample script to add an attribute to a feature via web services') | |
9 parser.add_argument('apollo', help='Complete Apollo URL') | |
10 parser.add_argument('username', help='WA Username') | |
11 parser.add_argument('password', help='WA Password') | |
12 | |
13 args = parser.parse_args() | |
14 | |
15 wa = WebApolloInstance(args.apollo, args.username, args.password) | |
16 print json.dumps(wa.organisms.findAllOrganisms(), indent=2) | |
17 |