On Sun, 8 Jun 2003 01:05:31 +0000 (UTC), [EMAIL PROTECTED] wrote:

> Hi everyone,
> I'm curious if anyone has any input on how python is for web based
> applications -- handling forms, querying databases, and all that other fun
> stuff. I know things like Perl and PHP are used everyday for many many web
> and cgi applications. But how about Python?

If you are used to php, take a look at spyce, which works over CGI, FastCGI
and mod_python (for Apache):
http://spyce.sourceforge.net/

Python has full support for Postgresql and MySQL through standard DB apis.


Best regards,
--
rnc <nieder|at|mail.ru>

If you want to do Python CGI, there is a python module called 'cgi'
I've used it, and it works just fine.

Once imported, it does the forms data collecting for you (just like php's
global variables)
and puts them into a python dictionary with the form element names as the
keys.

To handle cookies, there's also a python module called 'Cookie'

For databases, python is well supported and has advanced interfaces to
PostgreSQL and mySQL.

I have also used the Odbc interface on win32.

So i guess a quick (i think i should say detailed look) at the module
documentation will throw more
light.

There is also the new PSP (Python Server Pages) i've seen mentioned on some
websites and by the last post, though i've never used them.
They seem cool, but they work on Jython, which inturn depends on Java. So i
don't know how well they will catch up.

Finally (just for kicks) if you wanted you could script windows ASP with
Python.

PHEW!

I hope my anwer gives you some head start.

Enjoy




--
[EMAIL PROTECTED] mailing list

Reply via email to