Using Python on the WWW Guido van Rossum CNRI [email protected].

13
Using Python on the WWW Guido van Rossum CNRI [email protected]

Transcript of Using Python on the WWW Guido van Rossum CNRI [email protected].

Page 1: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

Using Python on the WWW

Guido van RossumCNRI

[email protected]

Page 2: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

Python Today

• OO scripting, prototyping, etc.• Free, Open Source, portable, etc.

• large collection of useful software

• Active, enthousiastic community• newsgroups, mailing lists, websites• Python Consortium being formed• several books, more under way

• Suitable for large projects

Page 3: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

Personal web history

Page 4: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

1992

• Python existed and had socket code & GUI code (stdwin)

• First heard of WWW, used line mode browser to learn about it

• No mosaic yet; one graphical browser (Viola), no source code

• Interest piqued

Page 5: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

First graphical web browser in Python

• http 0.9 - trivial w. Python sockets• html 1.0 (?) - event-driven parser• formatter - several variants• line mode browser followed• feedback to Marc Andreessen• Python still has all these

components (much evolved)

Page 6: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

1994

• I didn’t get CGI!– Mike McLay & Steve Majewski wrote

first CGI module

• Eventually I caught up– Standard cgi module supports file

upload &c

Page 7: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

1995

• I moved to CNRI• Grail browser started

– as demo for annotating web pages– anecdote: Bob Kahn didn’t get open

source, withdrew source distribution

• HTML 3.2, Python applets

Page 8: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

1999

• last release of Grail (0.6)• gave up against netscape & IE• still useful for minority platforms

• URL: http://grail.cnri.reston.va.us

Page 9: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

Python and the web

Page 10: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

Who uses Python on the web?

• Infoseek’s Ultraseek– site search engine– written in Python except for engine

code

• Yahoo mail

Page 11: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

Standard modules

• asyncore/asynchat• urllib;httplib, ftplib, ...; socket• smtplib, nntplib, ...• cgi• “sgmllib”, htmllib• SimpleHttpServer &c

Page 12: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

Standard tools

• webchecker, websucker• ftpmirror

Page 13: Using Python on the WWW Guido van Rossum CNRI guido@python.org.

3rd party modules

• HTMLgen• DocumentTemplate• cookie module• XML SIG• Linbot• Zope