source: orange-bioinformatics/obiKEGG2/service.py @ 1532:14a377419a09

Revision 1532:14a377419a09, 525 bytes checked in by ales_erjavec, 2 years ago (diff)

Added KEGG interface using web services

Line 
1"""
2SOAP service client. Needs suds library.
3 
4"""
5
6KEGG_WDSL = "http://soap.genome.jp/KEGG.wsdl"
7
8def suds_service():
9    """ Return an suds service object with kegg api service methods.
10   
11    >>> service = web_service()
12    >>> service.list_databases()
13    [(Definition){...
14
15    """
16    from suds.client import Client
17    # TODO: extend suds.transport HttpTransport
18    # to support keep-alive
19    client = Client(KEGG_WDSL)
20    return client.service
21
22def SOAPy_service():
23    import SOAPy
24
25web_service = suds_service
Note: See TracBrowser for help on using the repository browser.