A simple python web server frame
Project description
bframe
是一个基于WSGI
的协议的web
框架。它非常像flask
,但也会有django restframework
的味道。
bframe
的初衷是为了学习python
的web
框架,加深对WSGI
及周边生态的了解。当然,若您想更深入的了解python web
开发,请参与进来吧!
安装
pip install -U bframe
快速入门
# app.py
from bframe import Frame
app = Frame(__name__)
@app.get("/")
def home():
return "hello world"
if __name__ == "__main__":
app.run()
启动项目
python app.py
LINKS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bframe-0.0.16.tar.gz
(17.9 kB
view hashes)
Built Distribution
bframe-0.0.16-py3-none-any.whl
(33.0 kB
view hashes)