| | |
- exceptions.Exception(exceptions.BaseException)
-
- Error
-
- Fault
- ProtocolError
- ResponseError
- Binary
- DateTime
- ExpatParser
- Marshaller
- MultiCall
- MultiCallIterator
- ServerProxy
- SlowParser
- Transport
-
- SafeTransport
- Unmarshaller
class ExpatParser |
| | |
Methods defined here:
- __init__(self, target)
- # fast expat parser for Python 2.0 and later. this is about
# 50% slower than sgmlop, on roundtrip testing
- close(self)
- feed(self, data)
|
class Marshaller |
| |
Generate an XML-RPC params chunk from a Python data structure.
Create a Marshaller instance for each set of parameters, and use
the "dumps" method to convert your data (represented as a tuple)
to an XML-RPC params chunk. To write a fault response, pass a
Fault instance instead. You may prefer to use the "dumps" module
function for this purpose. |
| |
Methods defined here:
- __init__(self, encoding=None, allow_none=0)
- dump_array(self, value, write)
- dump_bool(self, value, write)
- dump_date(self, value, write)
- dump_datetime(self, value, write)
- dump_double(self, value, write)
- dump_instance(self, value, write)
- dump_int(self, value, write)
- dump_long(self, value, write)
- dump_nil(self, value, write)
- dump_string(self, value, write, escape=<function escape at 0x11e0b90>)
- dump_struct(self, value, write, escape=<function escape at 0x11e0b90>)
- dump_time(self, value, write)
- dump_unicode(self, value, write, escape=<function escape at 0x11e0b90>)
- dumps(self, values)
Data and other attributes defined here:
- dispatch = {<type 'bool'>: <function dump_bool at 0x11ebc80>, <type 'instance'>: <function dump_instance at 0x11f11b8>, <type 'float'>: <function dump_double at 0x11ebd70>, <type 'int'>: <function dump_int at 0x11ebc08>, <type 'list'>: <function dump_array at 0x11ebed8>, <type 'long'>: <function dump_long at 0x11ebcf8>, <type 'dict'>: <function dump_struct at 0x11ebf50>, <type 'NoneType'>: <function dump_nil at 0x11ebb90>, <type 'str'>: <function dump_string at 0x11ebde8>, <type 'tuple'>: <function dump_array at 0x11ebed8>, ...}
|
class SafeTransport(Transport) |
| |
Handles an HTTPS transaction to an XML-RPC server. |
| |
Methods defined here:
- make_connection(self, host)
Methods inherited from Transport:
- __init__(self, use_datetime=0)
- get_host_info(self, host)
- getparser(self)
- parse_response(self, file)
- request(self, host, handler, request_body, verbose=0)
- send_content(self, connection, request_body)
- send_host(self, connection, host)
- send_request(self, connection, handler, request_body)
- send_user_agent(self, connection)
Data and other attributes inherited from Transport:
- user_agent = 'xmlrpclib.py/1.0.1 (by www.pythonware.com)'
|
Server = class ServerProxy |
| |
uri [,options] -> a logical connection to an XML-RPC server
uri is the connection point on the server, given as
scheme://host/target.
The standard implementation always supports the "http" scheme. If
SSL socket support is available (Python 2.0), it also supports
"https".
If the target part and the slash preceding it are both omitted,
"/RPC2" is assumed.
The following options can be given as keyword arguments:
transport: a transport factory
encoding: the request encoding (default is UTF-8)
All 8-bit strings passed to the server proxy are assumed to use
the given encoding. |
| |
Methods defined here:
- __getattr__(self, name)
- __init__(self, uri, transport=None, encoding=None, verbose=0, allow_none=0, use_datetime=0)
- __repr__(self)
- __str__ = __repr__(self)
|
class ServerProxy |
| |
uri [,options] -> a logical connection to an XML-RPC server
uri is the connection point on the server, given as
scheme://host/target.
The standard implementation always supports the "http" scheme. If
SSL socket support is available (Python 2.0), it also supports
"https".
If the target part and the slash preceding it are both omitted,
"/RPC2" is assumed.
The following options can be given as keyword arguments:
transport: a transport factory
encoding: the request encoding (default is UTF-8)
All 8-bit strings passed to the server proxy are assumed to use
the given encoding. |
| |
Methods defined here:
- __getattr__(self, name)
- __init__(self, uri, transport=None, encoding=None, verbose=0, allow_none=0, use_datetime=0)
- __repr__(self)
- __str__ = __repr__(self)
|
class SlowParser |
| |
Default XML parser (based on xmllib.XMLParser). |
| |
Methods defined here:
- __init__(self, target)
- # this is about 10 times slower than sgmlop, on roundtrip
# testing.
|
class Transport |
| |
Handles an HTTP transaction to an XML-RPC server. |
| |
Methods defined here:
- __init__(self, use_datetime=0)
- get_host_info(self, host)
- getparser(self)
- make_connection(self, host)
- parse_response(self, file)
- request(self, host, handler, request_body, verbose=0)
- send_content(self, connection, request_body)
- send_host(self, connection, host)
- send_request(self, connection, handler, request_body)
- send_user_agent(self, connection)
Data and other attributes defined here:
- user_agent = 'xmlrpclib.py/1.0.1 (by www.pythonware.com)'
|
class Unmarshaller |
| |
Unmarshal an XML-RPC response, based on incoming XML event
messages (start, data, end). Call close() to get the resulting
data structure.
Note that this reader is fairly tolerant, and gladly accepts bogus
XML-RPC data without complaining (but not bogus XML). |
| |
Methods defined here:
- __init__(self, use_datetime=0)
- close(self)
- data(self, text)
- end(self, tag, join=<function join at 0x7e6a28>)
- end_array(self, data)
- end_base64(self, data)
- end_boolean(self, data)
- end_dateTime(self, data)
- end_dispatch(self, tag, data)
- end_double(self, data)
- end_fault(self, data)
- end_int(self, data)
- end_methodName(self, data)
- end_nil(self, data)
- end_params(self, data)
- end_string(self, data)
- end_struct(self, data)
- end_value(self, data)
- getmethodname(self)
- start(self, tag, attrs)
- xml(self, encoding, standalone)
Data and other attributes defined here:
- dispatch = {'array': <function end_array at 0x11f1848>, 'base64': <function end_base64 at 0x11f1938>, 'boolean': <function end_boolean at 0x11f1668>, 'dateTime.iso8601': <function end_dateTime at 0x11f19b0>, 'double': <function end_double at 0x11f1758>, 'fault': <function end_fault at 0x11f1b18>, 'i4': <function end_int at 0x11f16e0>, 'int': <function end_int at 0x11f16e0>, 'methodName': <function end_methodName at 0x11f1b90>, 'name': <function end_string at 0x11f17d0>, ...}
| |