Package Bio :: Package Prosite :: Module Prodoc :: Class ExPASyDictionary
[show private | hide private]
[frames | no frames]

Class ExPASyDictionary


Access PRODOC 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 PRODOC. parser is an optional parser (e.g. Prodoc.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 Prodoc 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 Sat Jul 16 15:48:59 2005 http://epydoc.sf.net