Python in HTML

Mitja Trampus nun at example.com
Fri Jun 23 15:00:40 EDT 2006


brochu121 at gmail.com wrote:
> Does anyone know of a way to embed python scripts into html, much like
> you would javascript or php?

Two very different things, JS and PHP... First make sure you know what you're after.

If you want PHP-like embedding of code, google for "python server pages". Several 
implementations are available:
- an apache handler that comes with mod_python
- a java servlets based one (were not aware of it before, doesn't seem very practical)
- spyce - can act as a simple standalone http server or can be used with 
apache/IIS/whatever (by proxying requests)
- probably more



More information about the Python-list mailing list