This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import traceback | |
class WebApp(object): | |
def __init__(self, obj): | |
self.obj = obj | |
def __call__(self, environ, start_response): | |
try: | |
path = filter(bool, environ["PATH_INFO"].split("/")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from SOAPpy import WSDL | |
>>> wsdl = 'http://soap.genome.jp/KEGG.wsdl' | |
>>> serv = WSDL.Proxy(wsdl) | |
>>> pathways = serv.list_pathways('map') | |
>>> ps=pathways | |
>>> ps[0] | |
<SOAPpy.Types.structType item at 37525944>: {'definition': 'Glycolysis / Gluconeogenesis - Reference pathway', 'entry_id': 'path:map00010'} | |
>>> ps[0].__dict__ | |
{'_attrs': {}, | |
'_cache': None, |
NewerOlder