-Stateful remote procedure call
's for python over a persistent tcp
+Stateful remote procedure calls for python over a persistent
-The general idea of puck is to do transperent RPC in python over
-the wire, while transfering all infomation needed. This means, that
+The general idea of puck is to do transparent RPC in python over
+the wire, while transferring all information needed. This means, that
each time you would do a method invocation, the endpoint will be
contacted, the method will be run and the remote stack will be
-updated, and the result sent back to the callee.
-from puck.endpoint import Endpoint
- def __init__(self, depth, parent=None):
- if self.depth < self.MAX_DEPTH:
- return Dummy(self.depth + 1, self)
- raise ValueError('Maximum depth of %d reached' % self.MAX_DEPTH)
-p = Endpoint('localhost', 8080)
-from puck.client import Client
-c = Client('localhost', 8080)
-assert d.depth == 1, 'Depth was not 1'
-for i in range(dummy.MAX_DEPTH):
-assert len(dummies) == dummy.MAX_DEPTH, 'Not enough dummies created'
+updated, and the result sent back to the caller.