Common Lisp
Clack
Ruby には Rack
Perl には PSGI
.NET には OWin
などなど
Pythonには
WSGIがある
WSGI/PEP3333
Web Server Gateway Interface
PEP (Python Enhancement Proposal) 3333
PythonにおけるRFC
https://www.python.org/dev/peps/pep-3333/
WSGI
規約のみ
def hello(environ, start_response):
start_response(‘200 OK’,
[(‘Content-type’, ‘text/plain’)])
return [b”Hello”]
WSGIサーバー
WSGI対応サーバー● wsgiref
● waitress
● gunicorn
● uwsgi
ビューとか
● Jinja2 テンプレートエンジン● Mako テンプレートエンジン● Babel 国際化● WebHelpers2 HTMLユーティリティ● paginate ページネーション
WSGIツールキット
● Paste
● WebOb
● Werkzeug
● Zope Toolkit
● etc
WSGIのミドルウェア
● repoze.who 認証● repoze.tm2 トランザクション管理● beaker セッション● backlash デバッグコンソール● whitenoise スタティックファイルをホスティング
● webassets スタティックファイルを管理● bowerstatic bowerコンポーネントと連携