Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'wed,': 0.03; 'instance,': 0.05; 'subject:Python': 0.06; 'python': 0.08; 'interpreter,': 0.09; 'pm,': 0.10; 'scripts': 0.10; 'received:209.85.214.174': 0.14; 'received:mail-iw0-f174.google.com': 0.14; 'wrote:': 0.14; '.py': 0.16; 'angelico': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'jython': 0.16; 'subject:server': 0.16; 'header:In-Reply-To:1': 0.21; "aren't": 0.22; "user's": 0.23; 'systems.': 0.23; "doesn't": 0.25; 'server.': 0.25; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'subject:web': 0.29; 'server': 0.29; 'distributing': 0.30; 'to:addr:python-list': 0.33; 'generally': 0.33; 'rather': 0.34; 'install': 0.34; 'chris': 0.34; 'normally': 0.34; 'tools.': 0.34; 'all.': 0.35; 'options:': 0.35; 'quite': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'two': 0.37; 'think': 0.38; 'anything': 0.38; 'run': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'hosting': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'format': 0.40; 'your': 0.60; 'collection': 0.72; 'browser.': 0.77; 'gain': 0.79; 'drive.': 0.91; 'browsers': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=g3TdyFSOLzOSK0T93NHL8633payDqREEjvRNNPGjDfs=; b=QaUglbiC4GrwohGjiyo36hqNQ13ndRZjI0lVqx/N+dszkbKtFT860fbDvWUQjoXMdB j36nd4MNZwJz+1TYu7kedD3NRA5odwxrolP38EUQwKuoFDWKAv9z/3c9z5vCxBZdHrrd BXVhP1P747xDwQiv1fgj9rcW+FWKuqcib7BCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wY5E85rOGmzQ8Q6BQS1s3AFeVKsSowE9cN2ZcS6rXD37dgDwuY2zRTT6VgSX28Pi4A MLvUarqz8ilpmUwVS9p0cGM5TcJmpVYCkHJto1DdLTpuftLALPyAwComH9CXasENES8F kUZm2h+wGpPTDdycmkYLfd8lCyXxQ2kit8DBQ= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 8 Jun 2011 14:04:01 +1000 Subject: Re: Running a Python script on a web server From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307505844 news.xs4all.nl 49178 [::ffff:82.94.164.166]:46216 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7210 On Wed, Jun 8, 2011 at 1:10 PM, Abhijeet Mahagaonkar wrote: > So i have requested a server space so I need some inputs on how i will be > able to "host" these scripts on a webserver and have them run on browsers > rather than on individual systems. Python doesn't normally run in a web browser. There's two easy options: 1) Use very simple web hosting that lets people download scripts and run them. Anything can do this, but all you gain is that they don't have to keep a collection of scripts / EXEs on their hard drives. 2) Run the Python scripts on the web server. I don't know whether this is even possible in your situation; it would turn them into quite different tools. I have no experience with it, but Jython can make applets. Again, though, these would be quite different tools from simple Python scripts. Web browsers aren't generally happy for in-browser scripts to, for instance, read and write files on the user's hard drive. I think you're ultimately going to need to keep on distributing those scripts. But if you get your users to install a Python interpreter, they need only install it once and then you can distribute all your scripts in .py format rather than py2exeing them all. Chris Angelico