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.17.tar.gz
(20.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bframe-0.0.17-py3-none-any.whl
(35.2 kB
view details)
File details
Details for the file bframe-0.0.17.tar.gz.
File metadata
- Download URL: bframe-0.0.17.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
475d7994df55ba489147943169196e509fe0faeae7f4a0b6a4a78474f7e3357e
|
|
| MD5 |
241e48382ef670783e0b4e5681afc35b
|
|
| BLAKE2b-256 |
eecceedc513b9a4db1993c639949e64856ae720c19be4f81008eab7a09161b0a
|
File details
Details for the file bframe-0.0.17-py3-none-any.whl.
File metadata
- Download URL: bframe-0.0.17-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff89b6990cb41ab9cd9861daebd1642559fadbc53eaf2f490412ae2972f1a60d
|
|
| MD5 |
18a724ecae0001654b95f2bc117cf70c
|
|
| BLAKE2b-256 |
5f4468c95fb2190e7805b543d2a1038b5e8336749400f69e24a4e5fb48055f62
|