public
Description: The itty-bitty Python web framework.
Homepage:
Clone URL: git://github.com/toastdriven/itty.git
itty /
name age message
file .gitignore Fri Dec 04 20:14:46 -0800 2009 Ignored more files. [toastdriven]
file AUTHORS Mon Dec 07 22:35:56 -0800 2009 Previously missed adding akrito to AUTHORS. [toastdriven]
file LICENSE Fri Apr 17 10:26:44 -0700 2009 Making the license explicit and BSD. [toastdriven]
file README.rst Fri Dec 04 20:35:02 -0800 2009 Fixed the static file serving example. Thanks t... [toastdriven]
file __init__.py Sun Mar 08 14:19:09 -0700 2009 Added config file support and swappable WSGI se... [toastdriven]
directory examples/ Thu Dec 10 09:43:23 -0800 2009 Added a Diesel adapter. [toastdriven]
file itty.py Thu Dec 10 09:43:23 -0800 2009 Added a Diesel adapter. [toastdriven]
file setup.py Sat Nov 07 20:53:43 -0800 2009 Fixed how setup loads the description and added... [toastdriven]
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:

Thanks

Thanks go out to Matt Croydon & Christian Metts for putting me up to this late at night. The joking around has become reality. :)