Skip to content

Bean-jun/bframe

 
 

Repository files navigation

bframe是一个基于WSGI的协议的web框架。它非常像flask,但也会有django restframework的味道。

bframe的初衷是为了学习pythonweb框架,加深对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

项目文档: https://github.com/PyWebBuilders/bframe-docs

项目DEMO: https://github.com/PyWebBuilders/Plats.git

About

A simple python web server frame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.4%
  • HTML 5.4%
  • JavaScript 3.2%
  • CSS 1.3%
  • Shell 0.5%
  • Makefile 0.1%
  • Batchfile 0.1%