On Tue, Sep 7, 2010 at 1:48 PM, steve <[email protected]> wrote: > Hello Naman, > > > On 09/06/2010 06:32 PM, naman jain wrote: > >> Hello, >> >> I want to do something through python what applets do in java. >> Through a website I want people to log in and do some tests locally on >> their >> machines and send the results >> to the server. >> >> According to my understanding we have methods like applets or flash to do >> something >> locally on the client machine. >> >> Is there any way in python we can achieve it ? >> > > The only reason why Java applets or Flash can 'do something locally on the > client machine' is because the browser 'allows' it do so use using plugins > like a Java runtime or a flash player. Basically, browsers by themselves are > incapable of executing any code(*). So, if you want to execute python code > from a browser, your clients would will need a browser that supports python > runtime, which afaik does not exist. > > Ok.
> Most people use Javascript (which most people enable on their browsers > these days) for basic client side execution or Java/Flash, which have client > side, browser/runtime/OS specific quirks. > > > I have my test scripts in python(which do some communication and file >> transfer to serial devices connected locally), and I would like to avoid >> rewriting them in java. >> >> > Judging by what you require, you'd be better off creating a standalone > downloadable executable. > But a standalone downloadable executable needs to communicate back the results to the server. So you mean the applet launches it locally and keeps track of it to send the results back. -Naman _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
