Package Bio :: Package config :: Module DBRegistry :: Class EUtilsDB
[hide private]
[frames] | no frames]

Class EUtilsDB

source code

Registry.RegisterableObject --+    
                              |    
                       DBObject --+
                                  |
                  TextLikeMixin --+
                                  |
                                 EUtilsDB

Implement DBObject for accessing EUtils databases at NCBI.

Instance Methods [hide private]
 
__init__(self, name, db, rettype, abbrev=None, doc=None, failure_cases=None, delay=None, timeout=None)
Initialize an EUtilsDB connection for retrieval.
source code
data
_get(self, key)
Implementation of retrieval -- used DBIds client from EUtils.
source code

Inherited from DBObject: __getitem__, get, get_as, set

Inherited from TextLikeMixin (private): _check_for_errors

Method Details [hide private]

__init__(self, name, db, rettype, abbrev=None, doc=None, failure_cases=None, delay=None, timeout=None)
(Constructor)

source code 

Initialize an EUtilsDB connection for retrieval.

name is the name of the object, abbrev is an abbreviation for the name, and doc is some documentation describing the object.

db is the name of the database at NCBI you want to retrieve from (ie. protein, nucleotide, pubmed)

rettype is the type of information to return (ie. gp, gb, fasta, medline)

failure_cases is a list of (Martel Expression, error message) describing patterns of errors in the text returned by the script.

Overrides: Registry.RegisterableObject.__init__

_get(self, key)

source code 

Implementation of retrieval -- used DBIds client from EUtils.

Returns: data
Overrides: DBObject._get