Home | Trees | Index | Help |
---|
Package musicbrainz2 :: Module webservice :: Class WebService |
|
object
--+ |IWebService
--+ | WebService
An interface to the MusicBrainz XML web service via HTTP.
By default, this class uses the MusicBrainz server but may be configured for accessing other servers as well using theconstructor
. This implements IWebService
, so additional documentation on
method parameters can be found there.
Method Summary | |
---|---|
Constructor. | |
Query the web service via HTTP-GET. | |
Send data to the web service via HTTP-POST. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
host='musicbrainz.org',
port=80,
pathPrefix='/ws',
username=None,
password=None,
realm='musicbrainz.org',
opener=None)
|
get(self, entity, id_, include=(), filter={}, version='1')Query the web service via HTTP-GET. Returns a file-like object containing the result or raises aWebServiceError . Conditions leading to
errors may be invalid entities, IDs, include or
filter parameters and unsupported version numbers.
|
post(self, entity, id_, data, version='1')Send data to the web service via HTTP-POST. Note that this may require authentication. You can set user name, password and realm in theconstructor .
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 | http://epydoc.sf.net |