Package biblio :: Package webquery :: Module isbndb :: Class IsbndbQuery
[hide private]
[frames] | no frames]

Class IsbndbQuery

source code

            object --+            
                     |            
          impl.ReprObj --+        
                         |        
 basewebquery.BaseWebquery --+    
                             |    
basewebquery.BaseKeyedWebQuery --+
                                 |
                                IsbndbQuery

Instance Methods [hide private]
 
__init__(self, key, timeout=5.0, limits=None)
C'tor, accepting an access key.
source code
 
query_service(self, index, value, results)
A generalised query for ISBNdb.
source code
 
query_bibdata_by_isbn(self, isbn, format='bibrecord')
Return publication data based on ISBN.
source code
 
query_author_by_name(self, name, fields=None)
Search author data based on name.
source code
 
query_author_by_id(self, auth_id, fields=None)
Search author data based on ID.
source code

Inherited from basewebquery.BaseWebquery: request

Inherited from impl.ReprObj: __repr__, __str__, __unicode__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]

Inherited from basewebquery.BaseWebquery (private): _repr_fields

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, key, timeout=5.0, limits=None)
(Constructor)

source code 
C'tor, accepting an access key.
Parameters:
  • root_url - See BaseWebquery. Either this or the sub_url passed to request must include a keyword formatting for the access key, i.e. %(key)s.
  • key - The access or PAI key to be passed to the webservice for access.
  • timeout - See BaseWebquery.
  • limits - See BaseWebquery.
Overrides: object.__init__

query_service(self, index, value, results)

source code 

A generalised query for ISBNdb.

This serves a general way of accessing all the methods available for ISBNdb. It also normalises the ISBN to a suitable form for submission. Note that it is probably possible to form a bad query with the wrong combination of parameters.

Parameters:
  • index (string) - The index to search in ISBNdb.
  • value (string) - The value to search for in the index..
  • results (iterable) - A list of the data to include in the response.
Returns:
The response received from the service.

query_bibdata_by_isbn(self, isbn, format='bibrecord')

source code 
Return publication data based on ISBN.
Parameters:
  • isbn (string) - An ISBN-10 or ISBN-13.
  • format (string) - The desired format for the results.
Returns:
Publication data in Xisbn XML format.

query_author_by_name(self, name, fields=None)

source code 
Search author data based on name.
Parameters:
  • name (string) - The name to search for.
  • fields (iterable) - What result blocks to return..
Returns:
Publication data in ISBNdb XML format.

query_author_by_id(self, auth_id, fields=None)

source code 
Search author data based on ID.
Parameters:
  • auth_id (string) - The ISBN "person_id" to search for.
  • fields (iterable) - What result blocks to return..
Returns:
Publication data in ISBNdb XML format.