comparison ebeye_urllib.py @ 2:6155fa39a899 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ebi_tools commit 19ea4feff5ccf3744c549b9a67259947a1cb90ba
author iuc
date Sat, 21 Jan 2017 14:40:54 -0500
parents e2e9fae080ad
children a1ef6c88ee37
comparison
equal deleted inserted replaced
1:d4e7e110dfdb 2:6155fa39a899
3 # Script derived from the EB-eye (REST) Python client available at 3 # Script derived from the EB-eye (REST) Python client available at
4 # http://www.ebi.ac.uk/Tools/webservices/services/eb-eye_rest 4 # http://www.ebi.ac.uk/Tools/webservices/services/eb-eye_rest
5 # and distributed under the Apache License 5 # and distributed under the Apache License
6 # ====================================================================== 6 # ======================================================================
7 # Load libraries 7 # Load libraries
8 import os
8 import platform 9 import platform
9 import os 10 import re
10 import urllib 11 import urllib
11 import re 12 import urllib2
13 from gzip import GzipFile
12 from optparse import OptionParser 14 from optparse import OptionParser
13 from gzip import GzipFile 15 from StringIO import StringIO
16
14 from xmltramp2 import xmltramp 17 from xmltramp2 import xmltramp
15 # python2
16 from StringIO import StringIO
17 import urllib2
18 # python3
19 # import urllib.request as urllib2
20
21 18
22 # Service base URL 19 # Service base URL
23 baseUrl = 'http://www.ebi.ac.uk/ebisearch/ws/rest' 20 baseUrl = 'http://www.ebi.ac.uk/ebisearch/ws/rest'
24 21
25 # Debug level 22 # Debug level