| |
- exceptions.Exception(exceptions.BaseException)
-
- Error
-
- Fault
- ProtocolError
- ResponseError
- gzip.GzipFile(io.BufferedIOBase)
-
- GzipDecodedResponse
- Binary
- DateTime
- ExpatParser
- Marshaller
- MultiCall
- MultiCallIterator
- ServerProxy
- SlowParser
- Transport
-
- SafeTransport
- Unmarshaller
class DateTime |
|
DateTime wrapper for an ISO 8601 string or time tuple or
localtime integer value to generate 'dateTime.iso8601' XML-RPC
value. |
|
Methods defined here:
- __cmp__(self, other)
- __eq__(self, other)
- __ge__(self, other)
- __gt__(self, other)
- __init__(self, value=0)
- __le__(self, other)
- __lt__(self, other)
- __ne__(self, other)
- __repr__(self)
- __str__(self)
- decode(self, data)
- encode(self, out)
- make_comparable(self, other)
- timetuple(self)
|
class GzipDecodedResponse(gzip.GzipFile) |
|
a file-like object to decode a response encoded with the gzip
method, as described in RFC 1952. |
|
- Method resolution order:
- GzipDecodedResponse
- gzip.GzipFile
- io.BufferedIOBase
- _io._BufferedIOBase
- io.IOBase
- _io._IOBase
- __builtin__.object
Methods defined here:
- __init__(self, response)
- close(self)
Data and other attributes defined here:
- __abstractmethods__ = frozenset([])
Methods inherited from gzip.GzipFile:
- __repr__(self)
- fileno(self)
- Invoke the underlying file object's fileno() method.
This will raise AttributeError if the underlying file object
doesn't support fileno().
- flush(self, zlib_mode=2)
- read(self, size=-1)
- readable(self)
- readline(self, size=-1)
- rewind(self)
- Return the uncompressed stream file position indicator to the
beginning of the file
- seek(self, offset, whence=0)
- seekable(self)
- writable(self)
- write(self, data)
Data descriptors inherited from gzip.GzipFile:
- closed
- filename
Data and other attributes inherited from gzip.GzipFile:
- max_read_chunk = 10485760
- myfileobj = None
Methods inherited from _io._BufferedIOBase:
- detach(...)
- Disconnect this buffer from its underlying raw stream and return it.
After the raw stream has been detached, the buffer is in an unusable
state.
- read1(...)
- Read and return up to n bytes, with at most one read() call
to the underlying raw stream. A short result does not imply
that EOF is imminent.
Returns an empty bytes object on EOF.
- readinto(...)
Data and other attributes inherited from io.IOBase:
- __metaclass__ = <class 'abc.ABCMeta'>
- Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly, and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as 'virtual subclasses' -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function, but the registering ABC won't show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
Methods inherited from _io._IOBase:
- __enter__(...)
- __exit__(...)
- __iter__(...)
- x.__iter__() <==> iter(x)
- isatty(...)
- Return whether this is an 'interactive' stream.
Return False if it can't be determined.
- next(...)
- x.next() -> the next value, or raise StopIteration
- readlines(...)
- Return a list of lines from the stream.
hint can be specified to control the number of lines read: no more
lines will be read if the total size (in bytes/characters) of all
lines so far exceeds hint.
- tell(...)
- Return current stream position.
- truncate(...)
- Truncate file to size bytes.
File pointer is left unchanged. Size defaults to the current IO
position as reported by tell(). Returns the new size.
- writelines(...)
Data and other attributes inherited from _io._IOBase:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
|
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_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>)
- dump_struct(self, value, write, escape=<function escape>)
- dump_unicode(self, value, write, escape=<function escape>)
- dumps(self, values)
Data and other attributes defined here:
- dispatch = {<type 'bool'>: <function dump_bool>, <type 'instance'>: <function dump_instance>, <type 'float'>: <function dump_double>, <type 'int'>: <function dump_int>, <type 'list'>: <function dump_array>, <type 'long'>: <function dump_long>, <type 'dict'>: <function dump_struct>, <type 'NoneType'>: <function dump_nil>, <type 'str'>: <function dump_string>, <type 'tuple'>: <function dump_array>, ...}
|
class SafeTransport(Transport) |
|
Handles an HTTPS transaction to an XML-RPC server. |
|
Methods defined here:
- __init__(self, use_datetime=0, context=None)
- make_connection(self, host)
Methods inherited from Transport:
- close(self)
- ##
# Clear any cached connection object.
# Used in the event of socket errors.
- get_host_info(self, host)
- getparser(self)
- parse_response(self, response)
- 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)
- single_request(self, host, handler, request_body, verbose=0)
Data and other attributes inherited from Transport:
- accept_gzip_encoding = True
- encode_threshold = None
- 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:
- __call__(self, attr)
- A workaround to get special attributes on the ServerProxy
without interfering with the magic __getattr__
- __getattr__(self, name)
- __init__(self, uri, transport=None, encoding=None, verbose=0, allow_none=0, use_datetime=0, context=None)
- __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:
- __call__(self, attr)
- A workaround to get special attributes on the ServerProxy
without interfering with the magic __getattr__
- __getattr__(self, name)
- __init__(self, uri, transport=None, encoding=None, verbose=0, allow_none=0, use_datetime=0, context=None)
- __repr__(self)
- __str__ = __repr__(self)
|
class SlowParser |
|
Default XML parser (based on xmllib.XMLParser). |
|
Methods defined here:
- __init__(self, target)
- # this is the slowest parser.
|
class Transport |
|
Handles an HTTP transaction to an XML-RPC server. |
|
Methods defined here:
- __init__(self, use_datetime=0)
- close(self)
- ##
# Clear any cached connection object.
# Used in the event of socket errors.
- get_host_info(self, host)
- getparser(self)
- make_connection(self, host)
- parse_response(self, response)
- 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)
- single_request(self, host, handler, request_body, verbose=0)
Data and other attributes defined here:
- accept_gzip_encoding = True
- encode_threshold = None
- 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>)
- 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>, 'base64': <function end_base64>, 'boolean': <function end_boolean>, 'dateTime.iso8601': <function end_dateTime>, 'double': <function end_double>, 'fault': <function end_fault>, 'i4': <function end_int>, 'i8': <function end_int>, 'int': <function end_int>, 'methodName': <function end_methodName>, ...}
| |