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

Class EUtilsDB

RegisterableObject --+    
                     |    
              DBObject --+
                         |
         TextLikeMixin --+
                         |
                        EUtilsDB


Implement DBObject for accessing EUtils databases at NCBI.
Method Summary
  __init__(self, name, db, rettype, abbrev, doc, failure_cases, delay, timeout)
Initialize an EUtilsDB connection for retrieval.
    Inherited from DBObject
  __getitem__(self, key)
  get(self, key, default)
S.get(key[, default]) -> data
  get_as(self, key, to_io, default)
S.get_as(key[, to_io][, default]) -> object
  set(self, key, data)

Method Details

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

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:
Bio.config.DBRegistry.DBObject.__init__

Generated by Epydoc 2.1 on Thu Aug 10 20:01:11 2006 http://epydoc.sf.net