smartrpyc.client.base
The Client object
This is the main Client class.
-
class smartrpyc.client.Client(address=None)
-
packer
alias of MsgPackSerializer
Exceptions handling
Warning
There is some work in progress here..
-
class smartrpyc.client.RemoteException(exc, msg)
Wrapper around a remote exception.
Ideally, this should fake to be an instance of the remote
exception too, but that’s not the case yet.. :(
Eg:
>>> exc = RemoteException('ValueError', 'Invalid value')
>>> isinstance(exc, RemoteException)
True
>>> isinstance(exc, ValueError)
True
Client Middleware
-
class smartrpyc.client.ClientMiddlewareBase
Base class for client middleware.
(mostly a reminder for methods signatures, subclassing from
this is not mandatory).
-
post(request, response)
-
pre(request)