Skip to main content

werkzeug + twisted.web

Project description

Build Status Code Coverage Requirements Status 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-21.8.0.tar.gz (100.6 kB view details)

Uploaded Source

Built Distribution

klein-21.8.0-py2.py3-none-any.whl (88.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: klein-21.8.0.tar.gz
  • Upload date:
  • Size: 100.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/57.1.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

File hashes

Hashes for klein-21.8.0.tar.gz
Algorithm Hash digest
SHA256 901dae754366e0a655d67afa02b4fb6c825de4bb26d7a3784b1634907e6dfed6
MD5 98c5101185c7fe2bd1e0a80ef0489e07
BLAKE2b-256 6ce3829c28e1cac2430777d47043b09bc18be25945adf1b6804278a25e7f7af9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: klein-21.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 88.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/57.1.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

File hashes

Hashes for klein-21.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5231df96787d13b498fbd75b37d4fb3920f8249364d06159c687ede4b8a2464d
MD5 7dec5e47951dadea6d58766e06ada5e5
BLAKE2b-256 fe50c30cf52974b5f11cd2afb3eae99e8955906ad9f9852d2ecd858a32fd732d

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