Size: 1336
Comment:
|
← Revision 4 as of 2012-05-09 16:00:03 ⇥
Size: 1342
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
This support DistributeObject and [RPC] model written by [Python]. | This support DistributeObject and [[RPC]] model written by [[Python]]. |
Line 5: | Line 5: |
BioinfoSarangNet [CVS], project name : ppsplib | BioinfoSarangNet [[CVS]], project name : ppsplib |
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