Pyroutes
A really small framework for rapid development of small python web applications
Install / Use
/learn @klette/PyroutesREADME
pyroutes
A really small framework for rapid development of small python web applications
Why?
I got tired of dealing with the same boring WSGI stuff every time I wanted to make a small web-utility in django, but I didn't want to go to far away from it, so I made this little thing to ease the work a bit.
How it works
Example::
from pyroutes import application, route
@route('/')
def index(request, name='world'):
return 'Hello %s!' % name
The above creates a complete WSGI compliant application. Result::
GET /
Hello world!
GET /foo
Hello foo!
See http://readthedocs.org/docs/pyroutes/ for more information.
Templating
pyroutes includes a small xml-based templating system called xml-template. For more information about xml-template, check out its bzr repo from http://bzr.sesse.net/xml-template XML-Template is released under the GPLv2 license.
For more information about usage, see the wiki example.
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate 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
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
