Class rpc
Conveniently interact with a remote server
Declaration
class rpc
source linkDocumentation
>>> remote = rpc(address) # doctest: +SKIP
>>> response = yield remote.add(x=10, y=20) # doctest: +SKIP
One rpc object can be reused for several interactions.
Additionally, this object creates and destroys many comms as necessary
and so is safe to use in multiple overlapping communications.
When done, close comms explicitly.
>>> remote.close_comms() # doctest: +SKIP
Methods
▶ def __init__(self, arg=None, comm=None, deserialize=True, timeout=None, ...) def __init__(
self,
arg=None,
comm=None,
deserialize=True,
timeout=None,
connection_args=None,
serializers=None,
deserializers=None,
)
Reexports