Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63898

Re: a web UI to invoke a python script at server side

Date 2014-01-14 14:22 +0100
From Jean-Michel Pichavant <jeanmichel@sequans.com>
Subject Re: a web UI to invoke a python script at server side
Newsgroups comp.lang.python
Message-ID <mailman.5454.1389705749.18130.python-list@python.org> (permalink)

Show all headers | View raw


----- Original Message ----- 

> Hey guys,

> I'm working on to provide a lightweight web UI for providing an
> interface to invoke a python script(a sequential script which could
> involve some system calls) at the server side. The UI should collect
> some parameters for input into this python script, and conversely
> the output of the script needs to be returned to the web client
> side.

> I haven't done much web programming before, can you provide some
> hints on how this is usually implemented ?

> Thanks
> Frank
> --
> https://mail.python.org/mailman/listinfo/python-list

Hi Frank,

Have a look at http://flask.pocoo.org/
This is a micro web framework.

Build your "hello world" web app, once it's working, look at the flask tutorial, you won't use the database but it'll give you a good overview of how things are organized.

Flask support python 3 but your web server may not. You may need to stick with python 2.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: a web UI to invoke a python script at server side Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-01-14 14:22 +0100

csiph-web