Skip to main content

A simple python web server frame

Project description

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://bean-jun.github.io/bframe-docs/

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

Project details


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.17.tar.gz (20.3 kB view hashes)

Uploaded Source

Built Distribution

bframe-0.0.17-py3-none-any.whl (35.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page