Storm
a Tornado-like web framework based on uvloop and Cython
Install / Use
/learn @jiajunhuang/StormREADME
Storm: A super fast web framework based on uvloop
Storm是基于uvloop和Cython的一个web框架,其特性为响应巨快,主要得益于libuv和 Cython的速度和框架的精简。
$ git clone git@github.com:jiajunhuang/storm
$ cd storm
$ make
$ PYTHONPATH=. python3 demo/main.py
Demo:
import logging
from storm.app import Application
from storm.handler import RequestHandler
class RootHandler(RequestHandler):
def initialize(self):
logging.debug("initialize been called")
async def get(self):
self.write({
"hello": "world"
})
handler_classes = [
(r"/", RootHandler),
]
Application(
handler_clses=handler_classes,
debug=False,
).run()
$ PYTHONPATH=. python3 demo/main.py
storm的IOPS约为13106.53,远超Tornado(约2015.07 ),略低于Sanic(约17353.71 ) storm将在后续优化对象的消耗上,目标是超过Sanic。
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
