Re: python scripts for web

2012-10-23 Thread chip9munk
On Friday, October 19, 2012 12:32:48 PM UTC+2, Gilles wrote: > In that case, are you sure a web script is a good idea? If you're > thinking web to make it easy for people to upload data, click on a > button, and get the results back, you might want to write the UI in > Python but write the number c

Re: python scripts for web

2012-10-19 Thread Gilles
On Thu, 18 Oct 2012 23:05:48 -0700 (PDT), chip9m...@gmail.com wrote: >these scripts will do a lot of calculation on a big dataset, and it is >possible that there will be many requests in a short period of time. In that case, are you sure a web script is a good idea? If you're thinking web to make

Re: python scripts for web

2012-10-18 Thread chip9munk
On Thursday, October 18, 2012 11:10:45 PM UTC+2, Zero Piraeus wrote: > WSGI would enable you to write a persistent application that sits > around waiting for requests and returns responses for them as and > when, as opposed to a simple CGI script that gets started each time a > request comes in, an

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 12:03, wrote: > yes, but as I have just answered to Zero, is using mod_wsgi a better strategy? WSGI would enable you to write a persistent application that sits around waiting for requests and returns responses for them as and when, as opposed to a simple CGI script that ge

Re: python scripts for web

2012-10-18 Thread chip9munk
thank you guys for pointing the double posting issue out, I am having some issues with the news server i am using, so I am doing this via google.groups at the time! :) i think i managed to fix it -- http://mail.python.org/mailman/listinfo/python-list

Re: python scripts for web

2012-10-18 Thread chip9munk
On Thursday, October 18, 2012 12:02:40 PM UTC+2, Zero Piraeus wrote: > Assuming your scripts accept the request as sent and return an > appropriate response, they are CGI scripts (unless there's some > wrinkle in the precise definition of CGI that escapes me right now). yes, they are, but, I came

Re: python scripts for web

2012-10-18 Thread chip9munk
thank you for the answer! On Thursday, October 18, 2012 12:03:02 PM UTC+2, Chris Angelico wrote: > CGI is a protocol between Apache and your script. What you want to do > is set up Apache to call your CGI scripts. yes, but as I have just answered to Zero, is using mod_wsgi a better strategy? --

Re: python scripts for web

2012-10-18 Thread rurpy
On 10/18/2012 04:02 AM, Zero Piraeus wrote:> On 18 October 2012 05:22, wrote: >>[...] > By the way: are you using Google Groups? It's just that I'm led to > understand that it's recently started to misbehave [more than it used > to], and your replies are addressed to both > and , > which is red

Re: python scripts for web

2012-10-18 Thread Chris Angelico
On Thu, Oct 18, 2012 at 8:22 PM, wrote: > On Thursday, October 18, 2012 10:42:56 AM UTC+2, Zero Piraeus wrote: >> That is exactly what a webserver does. Is there some reason you don't >> want to use e.g. Apache to handle the requests? > > no reason at all. so i guess the solution is much easier t

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 05:22, wrote: > So i guess in that case i do not need cgi or anything? Assuming your scripts accept the request as sent and return an appropriate response, they are CGI scripts (unless there's some wrinkle in the precise definition of CGI that escapes me right now). > Than

Re: python scripts for web

2012-10-18 Thread chip9munk
On Thursday, October 18, 2012 10:42:56 AM UTC+2, Zero Piraeus wrote: > That is exactly what a webserver does. Is there some reason you don't > want to use e.g. Apache to handle the requests? no reason at all. so i guess the solution is much easier then I have anticipated. So i guess in that case

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 04:10, wrote: > I will give you an example. So let us say I create two simple python > scripts, one does the sum of two numbers > the other one does the multiplication. SO now I want to put these > scripts on the server. Now let us say there is a web page that would > like t

Re: python scripts for web

2012-10-18 Thread chip9munk
To explain, I am basically doing different algorithms and would like to make them work and be accessible as I mentioned in the example... and to add them to the functionality of a specific page... so I have experience in programming, just no experience in web development etc.. On Thursday, Oct

Re: python scripts for web

2012-10-18 Thread Zero Piraeus
: On 18 October 2012 03:18, wrote: > Here is what I need to do: on some webpage (done in php, or any other > different technology), user inputs some data, that data and the > request then goes to the server where python scripts calculate > something and return the result to the users end. > > No

python scripts for web

2012-10-18 Thread chip9munk
Hello all! Please help me start learning about this thing. Sorry for my inexperience! Here is what I need to do: on some webpage (done in php, or any other different technology), user inputs some data, that data and the request then goes to the server where python scripts calculate something an