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

Class Dictionary

source code

Access PubMed using a read-only dictionary interface.

Methods:

Instance Methods [hide private]
 
__init__(delay=5.0, parser=None)
Create a new Dictionary to access PubMed.
source code
 
__len__(self) source code
 
clear(self) source code
 
__setitem__(self, key, item) source code
 
update(self) source code
 
copy(self) source code
 
keys(self) source code
 
items(self) source code
 
values(self) source code
bool
has_key(S, id) source code
 
get(self, id, failobj=None) source code
object
__getitem__(S, id)
Return the Medline entry.
source code
Method Details [hide private]

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

source code 

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__(S, id)
(Indexing operator)

source code 

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.

Returns: object