This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 2bceb490224e93490c31d47c08bbfd27883209ce
tree 0349f8c92997f000d9d66741bdec88c24eb0c5ec
parent 020de8f22803873fec7adaa854c26988dac62bee
tree 0349f8c92997f000d9d66741bdec88c24eb0c5ec
parent 020de8f22803873fec7adaa854c26988dac62bee
itty /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Mar 07 12:51:56 -0800 2009 | |
| |
LICENSE | Fri Apr 17 10:26:44 -0700 2009 | |
| |
README.rst | Mon Mar 09 00:17:26 -0700 2009 | |
| |
__init__.py | Sun Mar 08 14:19:09 -0700 2009 | |
| |
examples/ | ||
| |
itty.py | ||
| |
setup.py | Sat Nov 07 20:53:43 -0800 2009 |
README.rst
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.
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. :)








