werkzeug + twisted.web
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 @route('/') def home(request): return 'Hello, world!' run("localhost", 8080)
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|klein-17.10.0-py2.py3-none-any.whl (30.4 kB) Copy SHA256 hash SHA256||Wheel||py2.py3|
|klein-17.10.0.tar.gz (26.7 kB) Copy SHA256 hash SHA256||Source||None|