一个微型的WSGI Web框架
项目描述
一个微型的WSGI Web框架。
特性
- 路由器 
- ORM 
- 请求和响应 
- Cookie和会话 
- 模板引擎 
- WSGI服务器 
安装
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()
只需将其保存为hello.py并运行
$ python hello.py
WSGIServer: Serving HTTP on ('127.0.0.1', 5000) ...
现在访问 https://:5000,你应该能看到 hello world。
项目详情
下载文件
下载适合您平台的文件。如果您不确定要选择哪个,请了解更多关于 安装包 的信息。
源分布
         bustard-0.1.6.tar.gz  (21.3 kB 查看散列)
      
    构建分布
         bustard-0.1.6-py3-none-any.whl  (26.9 kB 查看散列)