Package Bio :: Package dbdefs :: Module prosite
[hide private]
[frames] | no frames]

Source Code for Module Bio.dbdefs.prosite

 1  # Copyright 2002 by Jeffrey Chang.  All rights reserved. 
 2  # This code is part of the Biopython distribution and governed by its 
 3  # license.  Please see the LICENSE file that should have been included 
 4  # as part of this package. 
 5   
 6  from Bio.config.DBRegistry import CGIDB, DBGroup 
 7  from _support import * 
 8   
 9  prosite_expasy_cgi = CGIDB( 
10      name="prosite-expasy-cgi", 
11      doc="Retrieve a prosite entry by ID", 
12      cgi='http://us.expasy.org/cgi-bin/get-prosite-raw.pl', 
13      delay=5.0, 
14      params=[], 
15      key="", 
16      failure_cases=[(has_str("There is currently no PROSITE entry"), 
17                "No PROSITE entry")], 
18      ) 
19   
20  prosite = DBGroup( 
21          name = "prosite", 
22          behavior = "serial" 
23      ) 
24  prosite.add(prosite_expasy_cgi) 
25