Skip to main content

werkzeug + twisted.web

Project description

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.

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:

For more information about contributing, see the contributor guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

klein-15.2.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

klein-15.2.0-py2.py3-none-any.whl (21.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file klein-15.2.0.tar.gz.

File metadata

  • Download URL: klein-15.2.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for klein-15.2.0.tar.gz
Algorithm Hash digest
SHA256 08bf030b6f81cb188d5f8092a58443df9446931b223fad02ccf07447c4c9c599
MD5 5609f4a4f49e50e75fc83a766685bc84
BLAKE2b-256 2a0b35c2170b009c5f41025ffc8d1d33bf5ae014914addc0f9a8687448fd238f

See more details on using hashes here.

Provenance

File details

Details for the file klein-15.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for klein-15.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1cfd394e8927fc90bf5cc1e520a204a872c851fb3133ddf1e81b8ca5c14884ac
MD5 77bd2453b16072ec7b1a69701ce6ff2e
BLAKE2b-256 f9d985b6dd909735b97f65ee64f6e204746fb01e3969b64c8be8cc794c6c1ba6

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page