Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63898
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <prvs=084fb7db4=jeanmichel@sequans.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.021 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'parameters': 0.04; 'output': 0.05; 'app,': 0.09; 'framework.': 0.09; 'subject:script': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"hello': 0.16; 'guys,': 0.16; 'script,': 0.16; 'sequential': 0.16; 'side.': 0.16; 'url:pocoo': 0.16; 'subject:python': 0.16; 'hey': 0.18; 'input': 0.22; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'stick': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'returned': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'usually': 0.31; 'invoke': 0.31; 'interface': 0.32; 'url:python': 0.33; '-----': 0.33; 'implemented': 0.33; 'not.': 0.33; 'could': 0.34; 'but': 0.35; 'done': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'should': 0.36; 'server': 0.38; 'thank': 0.38; 'url:mail': 0.40; 'how': 0.40; 'providing': 0.61; 'you.': 0.62; 'information': 0.63; 'received:194': 0.64; 'provide': 0.64; 'notice:': 0.67; 'frank': 0.68; 'hints': 0.68; 'person,': 0.68; 'privileged.': 0.69; 'disclose': 0.74; 'lightweight': 0.84; 'working,': 0.84; 'medium.': 0.91 |
| X-IronPort-AV | E=Sophos;i="4.95,658,1384297200"; d="scan'208";a="2333005" |
| X-Virus-Scanned | amavisd-new at zimbra.sequans.com |
| Date | Tue, 14 Jan 2014 14:22:21 +0100 (CET) |
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| To | Frank Cui <ycui@outlook.com> |
| In-Reply-To | <BAY176-W23C53A692D142119FA0C9EDABF0@phx.gbl> |
| Subject | Re: a web UI to invoke a python script at server side |
| MIME-Version | 1.0 |
| X-Mailer | Zimbra 7.2.4_GA_2900 (ZimbraWebClient - GC32 (Win)/7.2.4_GA_2900) |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | base64 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5454.1389705749.18130.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1389705751 news.xs4all.nl 2957 [2001:888:2000:d::a6]:40821 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:63898 |
Show key headers only | 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
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