Documente Academic
Documente Profesional
Documente Cultură
Python WSGI
13 ianuarie 2010
Mihai Maruseac
2
Common Gateway Interface
• CGI: delegare creare pagini web către alte aplicații
• CGI script
• 1993, RFC 3875
• Ex: un wiki
• Probleme:
erori de coding → code injection
proces nou
• Alternative:
FastCGI
Module Apache, IIS ISAPI plugins
WSGI
3
Python Web Server Gateway Interface
4
WSGI – Introducere
6
WSGI – PEP 333 (2)
7
WSGI – PEP 333 (3)
• Pot fi înlănțuite
8
WSGI – PEP 333 (4)
9
Integrare cu un server web
• Wrappers
• IIS: isapi-wsgi
• Apache: mod_wsgi, mod_python
• mod_python: din ce în ce mai puțin dezvoltat,
nerecomandat
• wsgiref: zeroconf server (simple_server)
10
Demo Bonus
11
Bibliografie
• http://en.wikipedia.org/wiki/Common_Gateway_Interface
• http://en.wikipedia.org/wiki/Web_Server_Gateway_Interface
• http://pythonpaste.org/do-it-yourself-framework.html
• http://groovie.org/2005/10/06/wsgi-and-wsgi-middleware-is-easy
• http://www.python.org/dev/peps/pep-0333/
• http://lucumr.pocoo.org/2007/5/21/getting-started-with-wsgi
• http://www.xml.com/pub/a/2006/09/27/introducing-wsgi-pythons-secret-web-
weapon.html
• http://webpython.codepoint.net/web_python_tutorial
• http://grep.ro/quickpub/rtt-wsgi
12
The End
?
07.01.09 13