Python, WSGI, legacy web application

Ben Finney ben at
Thu Nov 23 00:39:16 CET 2006

Howdy all,

I'm working on a web application that is starting to gain a lot of
back-end code written in Python. However, all the current interface
code is written in legacy PHP. I'd like to slowly introduce new
features as Python WSGI programs.

Is it possible to write a Python WSGI program that talks to a PHP
program as its "back end"? Where can I find out how to do this,
preferably with examples?

The ideal here is to keep all the existing code as is, but write
little or no new PHP code. Instead, iteratively change the interface,
replacing pieces of the monolithic legacy PHP interface with modular
WSGI programs over time.

 \       "I don't know anything about music. In my line you don't have |
  `\                          to."  -- Elvis Aaron Presley (1935-1977) |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list