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

Class ExPASyDictionary


Access PROSITE 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 PROSITE. parser is an optional parser (e.g. Prosite.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 Prosite 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 Thu Aug 10 20:01:05 2006 http://epydoc.sf.net