Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
werkzeug + twisted.web
Python Makefile

This branch is 258 commits ahead, 1 commit behind MostAwesomeDude:master

Merge pull request #69 from hawkowl/tox-tw15

Add Twisted 15.0 in build matrix
latest commit 77cc51c77d
@hynek hynek authored


Klein, a Web Micro-Framework

Build Status

Klein is a micro-framework for developing production-ready web services with Python. It is 'micro' in that it has an incredibly small API similar to Bottle and Flask. It is not 'micro' in that it depends on things outside the standard library. This is primarily because it is built on widely used and well tested components like Werkzeug and Twisted.

A Klein bottle is an example of a non-orientable surface, and a glass Klein bottle looks like a twisted bottle or twisted flask. This, of course, made it too good of a pun to pass up.

Klein's documentation can be found at Read The Docs.


This is a sample Klein application that returns 'Hello, world!', running on port 8080.

from klein import run, route

def home(request):
    return 'Hello, world!'

run("localhost", 8080)
Something went wrong with that request. Please try again.