Using Python on the WWW Guido van Rossum CNRI [email protected].
-
Upload
agatha-gray -
Category
Documents
-
view
212 -
download
0
Transcript of Using Python on the WWW Guido van Rossum CNRI [email protected].
![Page 2: Using Python on the WWW Guido van Rossum CNRI guido@python.org.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/2.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/3.jpg)
Personal web history
![Page 4: Using Python on the WWW Guido van Rossum CNRI guido@python.org.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/4.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/5.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/6.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/7.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/8.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/9.jpg)
Python and the web
![Page 10: Using Python on the WWW Guido van Rossum CNRI guido@python.org.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/10.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/11.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/12.jpg)
Standard tools
• webchecker, websucker• ftpmirror
![Page 13: Using Python on the WWW Guido van Rossum CNRI guido@python.org.](https://reader036.fdocuments.us/reader036/viewer/2022083005/56649f165503460f94c2c8d8/html5/thumbnails/13.jpg)
3rd party modules
• HTMLgen• DocumentTemplate• cookie module• XML SIG• Linbot• Zope