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
Release files for bframe 0.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bframe-0.0.17.tar.gz | 20.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bframe-0.0.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.5 kB
Release files / bframe-0.0.17.tar.gz
| Download URL | bframe-0.0.17.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
475d7994df55ba489147943169196e509fe0faeae7f4a0b6a4a78474f7e3357e
|
|
BLAKE2b-256 checksum How to use checksums |
eecceedc513b9a4db1993c639949e64856ae720c19be4f81008eab7a09161b0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.9
|
Release files / bframe-0.0.17-py3-none-any.whl
| Download URL | bframe-0.0.17-py3-none-any.whl |
|---|---|
| Size | 35.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff89b6990cb41ab9cd9861daebd1642559fadbc53eaf2f490412ae2972f1a60d
|
|
BLAKE2b-256 checksum How to use checksums |
5f4468c95fb2190e7805b543d2a1038b5e8336749400f69e24a4e5fb48055f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.9
|