Re: [gentoo-user] Python and CGI?
Try posting on comp.lang.python. Lots of friendly people there. On Saturday 07 June 2003 08:38 pm, DAVID wrote: > I don't know about all that, but am getting back into > Python right now. As far as databases, I am currently > writing an app to do some stock analysis for me. > Beancounter (perl) didn't do everything I wanted and > figured I would write my own to learn. > > Haven't written much, but so far have been able to create > database tables and do error checking, create database,... > for MySQL. There is a mysqldb module for it, I think one > for postrgresql also and a few others. > > So as far as databases, looks fine to me from my limit > experience. -- Stephen From here to there and there to here, funny things are everywhere. -- Dr Seuss -- [EMAIL PROTECTED] mailing list
RE: [gentoo-user] Python and CGI?
On Sun, 8 Jun 2003 01:05:31 + (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 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
Re: [gentoo-user] Python and CGI?
On Sun, 8 Jun 2003 01:05:31 + (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 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Python and CGI?
Just came across this: http://www.contentpeople.co.uk/issue3/whatthehellispython.php On Sun, 8 Jun 2003 01:05:31 + (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? Cheers, Mike -><- "And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)" --Larry Wall in <[EMAIL PROTECTED]> SDF Public Access UNIX System - http://sdf.lonestar.org -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Python and CGI?
I don't know about all that, but am getting back into Python right now. As far as databases, I am currently writing an app to do some stock analysis for me. Beancounter (perl) didn't do everything I wanted and figured I would write my own to learn. Haven't written much, but so far have been able to create database tables and do error checking, create database,... for MySQL. There is a mysqldb module for it, I think one for postrgresql also and a few others. So as far as databases, looks fine to me from my limit experience. On Sun, 8 Jun 2003 01:05:31 + (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? Cheers, Mike -><- "And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)" --Larry Wall in <[EMAIL PROTECTED]> SDF Public Access UNIX System - http://sdf.lonestar.org -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
[gentoo-user] Python and CGI?
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? Cheers, Mike -><- "And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)" --Larry Wall in <[EMAIL PROTECTED]> SDF Public Access UNIX System - http://sdf.lonestar.org -- [EMAIL PROTECTED] mailing list