source: orange-bioinformatics/orangecontrib/bio/obiKEGG/service.py @ 1873:0810c5708cc5

Revision 1873:0810c5708cc5, 472 bytes checked in by Ales Erjavec <ales.erjavec@…>, 7 months ago (diff)

Moved '_bioinformatics' into orangecontrib namespace.

RevLine 
[1532]1"""
[1733]2
[1532]3"""
[1541]4from __future__ import absolute_import
[1532]5
6KEGG_WDSL = "http://soap.genome.jp/KEGG.wsdl"
7
[1733]8REST_API = "http://rest.kegg.jp/"
[1553]9
[1532]10
[1733]11def slumber_service():
[1532]12    """
[1733]13    Return a rest based service using `slumber` package
14    """
15    import slumber
16    if not hasattr(slumber_service, "_cached"):
17        slumber_service._cached = slumber.API(REST_API)
18    return slumber_service._cached
[1532]19
20
[1541]21from . import conf
22
[1733]23default_service = slumber_service
[1541]24
[1733]25web_service = slumber_service
Note: See TracBrowser for help on using the repository browser.