werkzeug + twisted.web
Project description
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.
Example
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)
Contribute
klein is hosted on GitHub and is an open source project that welcomes contributions of all kinds from the community, including:
code patches,
documentation improvements,
reviews for contributed patches.
For more information about contributing, see the contributor guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for klein-15.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94df5d5e7714679d7c00880b6373677c30fd777ac715ea58d5f89e2d444a305d |
|
MD5 | 4a84648b934375c7fa8e9170304199a4 |
|
BLAKE2b-256 | 8df3d61282b2f160af1a153d750ad0a55e3c8fd874bd969eed88814ad1350bfe |