def kegg_list(database, org=None):
 if (isinstance(database, str) and (database in ['pathway', 'module']) and org):
  resp = _q('list', database, org)
 elif (isinstance(database, str) and database and org):
  raise Exception('Invalid database arg for kegg list request.')
 else:
  if (isinstance(database, list) and (len(database) <= 100)):
   database = '+'.join(database)
  elif (isinstance(database, list) and (len(database) > 100)):
   raise Exception('Maximuim number of databases is 100 for kegg list query')
  resp = _q('list', database)
 return resp

def kegg_list ( database , org = None ) : if ( isinstance ( database , str ) and ( database in [ 'pathway' , 'module' ] ) and org ) : resp = _q ( 'list' , database , org ) elif ( isinstance ( database , str ) and database and org ) : raise Exception ( 'Invalid database arg for kegg list request.' ) else : if ( isinstance ( database , list ) and ( len ( database ) <= 100 ) ) : database = '+' . join ( database ) elif ( isinstance ( database , list ) and ( len ( database ) > 100 ) ) : raise Exception ( 'Maximuim number of databases is 100 for kegg list query' ) resp = _q ( 'list' , database ) return resp
kegg list - entry list for database .