Itty
The itty-bitty Python web framework.
Install / Use
/learn @toastdriven/IttyREADME
======= itty.py
The itty-bitty Python web framework.
itty.py is a little experiment, an attempt at a Sinatra_ influenced
micro-framework that does just enough to be useful and nothing more.
Currently supports:
- Routing
- Basic responses
- Content-types
- HTTP Status codes
- URL Parameters
- Basic GET/POST/PUT/DELETE support
- User-definable error handlers
- Redirect support
- File uploads
- Header support
- Static media serving
Beware! If you're looking for a proven, enterprise-ready framework, you're in the wrong place. But it sure is a lot of fun.
.. _Sinatra: http://sinatrarb.com/
Example
::
from itty import get, run_itty
@get('/') def index(request): return 'Hello World!'
run_itty()
See examples/ for more usages.
Other Sources
A couple of bits have been borrowed from other sources:
-
Django
- HTTP_MAPPINGS
-
Armin Ronacher's blog (http://lucumr.pocoo.org/2007/5/21/getting-started-with-wsgi)
- How to get started with WSGI
Thanks
Thanks go out to Matt Croydon & Christian Metts for putting me up to this late at night. The joking around has become reality. :)
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate 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
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
