Skip to main content

werkzeug + twisted.web

Project description

Build Status Code Coverage Python Version Compatibility

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-23.12.0.tar.gz (103.3 kB view details)

Uploaded Source

Built Distribution

klein-23.12.0-py2.py3-none-any.whl (92.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: klein-23.12.0.tar.gz
  • Upload date:
  • Size: 103.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for klein-23.12.0.tar.gz
Algorithm Hash digest
SHA256 1e83d172cdd411f814743b4a6979459662bab36c1164a704214f41e27127efd2
MD5 f51f89b1ec0cb90d3793fc855de856c9
BLAKE2b-256 e85b4ae403d11ace8ca043a41f100ab99a3a46ebaaea8e872ab41608532af0bb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: klein-23.12.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 92.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for klein-23.12.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c99f0c3f69046191d3550d19744d58fb58c7d7c11a5c18aee6770c3058e0097e
MD5 3ffe34f731fcdabd692e86a6a7b43d44
BLAKE2b-256 7b57c3ada7bfbedda681f882ef6bc20e7588aaf79c21c6fff39ddcb25ced688c

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