bustard微型的 WSGI 框架

联合创作 · 2023-09-20 05:57

bustard 是一个微型的 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()

运行:

$ python hello.py
WSGIServer: Serving HTTP on ('127.0.0.1', 5000) ...
浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报