toastdriven / itty
- Source
- Commits
- Network (12)
- Issues (0)
- Graphs
-
Branch:
master
Daniel Lindsley (author)
Sat Jan 23 01:39:38 -0800 2010
itty /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Dec 04 20:14:46 -0800 2009 | |
| |
AUTHORS | Sat Jan 23 01:39:49 -0800 2010 | |
| |
LICENSE | Fri Apr 17 10:26:44 -0700 2009 | |
| |
README.rst | Fri Dec 04 20:35:02 -0800 2009 | |
| |
__init__.py | Sun Mar 08 15:47:18 -0700 2009 | |
| |
benchmarks.rst | Fri Dec 18 21:56:38 -0800 2009 | |
| |
examples/ | Sat Jan 23 01:39:49 -0800 2010 | |
| |
itty.py | Sat Jan 23 01:39:49 -0800 2010 | |
| |
setup.py | Sat Jan 23 01:39:49 -0800 2010 |
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. :)
