ppsplib is PPSP library.
This support DistributeObject and RPC model written by Python.
BioinfoSarangNet CVS, project name : ppsplib
2002-10-24 current version 0.1
Install method
python setup.py install
Example in server-side
import ppsplib class MyClientHandler(ppsplib.ClientHandler): get getHello(self, aName): return "Hello %s!"%aName addr = 'localhost',8999 #MyClientHandler.allowAnonymous=1 # if server want anonymous login server = ppsplib.PPSPServer(addr, MyClientHandler) server.serve_forever()
Example in client-side
client = ppsplib.PPSPClient(addr) client.login('id', 'passwd') #client.login() # if server support anonymous, empty parameters client.getHello('yong')
Additional example is in UnitTest code.
User database for login
1) dictionary in ppsplib.py manual addition in userDb in isValidUserForDict function {'id', crypWord('id'+'pass')}
2) using BSD db manual addition in 'ppsplib_userdb' in isValidUserForBsdDb function