Package Bio :: Module PubMed :: Class Dictionary
[show private | hide private]
[frames | no frames]

Class Dictionary


Access PubMed using a read-only dictionary interface.

Methods:
Method Summary
  __init__(self, delay, parser)
Dictionary(delay=5.0, parser=None)
  __getitem__(self, id)
S.__getitem__(id) -> object
  __len__(self)
  __setitem__(self, key, item)
  clear(self)
  copy(self)
  get(self, id, failobj)
  has_key(self, id)
S.has_key(id) -> bool
  items(self)
  keys(self)
  update(self)
  values(self)

Method Details

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

Dictionary(delay=5.0, parser=None)

Create a new Dictionary to access PubMed. parser is an optional parser (e.g. Medline.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)

S.__getitem__(id) -> object

Return the Medline entry. id is either the Medline Unique ID or the Pubmed ID of the article. Raises a KeyError if there's an error.

has_key(self, id)

S.has_key(id) -> bool

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