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.
  _get(self, key)
Implementation of retrieval -- used DBIds client from EUtils.
    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)
  _convert_to(self, data, to_io)
S._convert_to(data, to_io) -> another data type
  _make_pickleable(self, data)
S._make_pickleable(key, data) -> pickleable_obj
  _set(self, key, data)
S._set(key, data)
  _unmake_pickleable(self, pickleable_obj)
S._unmake_pickleable(key, pickleable_obj) -> data
    Inherited from TextLikeMixin
  _check_for_errors(self, handle, failure_cases)

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__

_get(self, key)

Implementation of retrieval -- used DBIds client from EUtils.
Overrides:
Bio.config.DBRegistry.DBObject._get

Generated by Epydoc 2.1 on Mon Aug 27 16:13:10 2007 http://epydoc.sf.net