Package cobra :: Class CobraProxy
[hide private]
[frames] | no frames]

Class CobraProxy

source code


A proxy object for remote objects shared with Cobra

A few optional keyword arguments are handled by all cobra protocols:
    retrymax    - Max transparent reconnect attempts
    timeout     - Socket timeout for a cobra socket
    authinfo    - A dict, probably like {'user':'username','passwd':'mypass'}
                  ( but it can be auth module specific )
    msgpack     - Use msgpack serialization

Also, the following protocol options may be passed through the URI:

msgpack=1
authinfo=<base64( json( <authinfo dict> ))>

Instance Methods [hide private]
 
__init__(self, URI, retrymax=None, timeout=None, **kwargs) source code
 
_cobra_getsock(self) source code
 
_cobra_newsock(self)
This is only used by *clients*
source code
 
__getstate__(self) source code
 
__setstate__(self, sdict) source code
 
__hash__(self) source code
 
__nonzero__(self) source code
 
__repr__(self) source code
 
__str__(self) source code
 
__eq__(self, obj) source code
 
__ne__(self, obj) source code
 
__setattr__(self, name, value) source code
 
__getattr__(self, name) source code
 
__enter__(self) source code
 
__exit__(self, extype, value, tb) source code