Python toplevel in a Web page

F

Franck Ditter

Hello,
I wonder if I can find some source code example
of a Python 3 toplevel box in a Web page.
Something simple, no mySQL, no Django hammer, etc.
Just the basics of the technology to get the
content of a small text editor in which the user
writes some Python script, to be analyzed (eval'ed)
then whose result is to be written in another text box.
Simple, pythonistic.
Thanks for the pointer,

franck
 
C

Carlos Nepomuceno

----------------------------------------
From: (e-mail address removed)
Subject: Python toplevel in a Web page
Date: Thu, 30 May 2013 14:20:18 +0200
To: (e-mail address removed)

Hello,
I wonder if I can find some source code example
of a Python 3 toplevel box in a Web page.
Something simple, no mySQL, no Django hammer, etc.
Just the basics of the technology to get the
content of a small text editor in which the user

Do you mean HTML said:
writes some Python script, to be analyzed (eval'ed)
then whose result is to be written in another text box.

Analyzed by the browser or server side?
 
G

Giorgos Tzampanakis

Hello,
I wonder if I can find some source code example
of a Python 3 toplevel box in a Web page.
Something simple, no mySQL, no Django hammer, etc.
Just the basics of the technology to get the
content of a small text editor in which the user
writes some Python script, to be analyzed (eval'ed)
then whose result is to be written in another text box.
Simple, pythonistic.
Thanks for the pointer,

franck

Just set up a webpage with a text area that sends its content as a POST
request to the server where a cgi script will invoke python to run the
script and respond with the output.

Do you trust all possible users of this application? If not, you should
make sure that the python interpreter is running in a sandbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top