Package cobra :: Module remoteapp
[hide private]
[frames] | no frames]

Module remoteapp

source code


A utility for creating "remote applications" which are dcode
enabled and cobra driven.  All API arguments/returns *must* be
serializable using msgpack.

NOTE: enabling a dcode server means source for local python modules
      will be delivered directly to clients over the network!

Running a remote application will also attempt to prefer code from
the server rather than the local python current working directory.
( and uses multiprocessing for import/process isolation )

Classes [hide private]
  RemoteAppServer
Functions [hide private]
 
shareRemoteApp(name, appsrv=None, daemon=None)
Fire an appropriate dcode enabled cobra daemon and share the appsrv object with the given name.
source code
 
_getAndRunApp(uri) source code
 
runRemoteApp(uri, join=True) source code
 
execRemoteApp(uri)
Exec a remoteapp without using multiprocessig ( may be needed if fork() causes the child to have an unacceptably dirty environment )
source code
 
main() source code