Package Bio :: Package SwissProt :: Module SProt :: Class ExPASyDictionary
[show private | hide private]
[frames | no frames]

Class ExPASyDictionary


Access SwissProt at ExPASy using a read-only dictionary interface.
Method Summary
  __init__(self, delay, parser)
__init__(self, delay=5.0, parser=None)
  __getitem__(self, id)
__getitem__(self, id) -> object
  __len__(self)
  __setitem__(self, key, item)
  clear(self)
  copy(self)
  get(self, id, failobj)
  has_key(self, id)
has_key(self, id) -> bool
  items(self)
  keys(self)
  update(self)
  values(self)

Method Details

__init__(self, delay=5.0, parser=None)
(Constructor)

__init__(self, delay=5.0, parser=None)

Create a new Dictionary to access SwissProt. parser is an optional parser (e.g. SProt.RecordParser) object to change the results into another form. If set to None, then the raw contents of the file will be returned. delay is the number of seconds to wait between each query.

__getitem__(self, id)
(Indexing operator)

__getitem__(self, id) -> object

Return a SwissProt entry. id is either the id or accession for the entry. Raises a KeyError if there's an error.

has_key(self, id)

has_key(self, id) -> bool

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