bustard微型的 WSGI 框架
bustard 是一個(gè)微型的 WSGI 框架。
主要特性:
-
router
-
orm
-
request and response
-
cookies and session
-
template engine
-
wsgi server
安裝:
pip install bustard pip install psycopg2 # if you need orm feature
示例:
from bustard.app import Bustard
app = Bustard()
@app.route('/')
def helloword(request):
return 'hello world'
if __name__ == '__main__':
app.run()
運(yùn)行:
$ python hello.py
WSGIServer: Serving HTTP on ('127.0.0.1', 5000) ...評(píng)論
圖片
表情
