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

Uploaded Source

Built Distribution

klein-20.6.0-py2.py3-none-any.whl (118.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: klein-20.6.0.tar.gz
  • Upload date:
  • Size: 125.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for klein-20.6.0.tar.gz
Algorithm Hash digest
SHA256 6584b9cdff4959b9dcee95a1c1c20010f521a2a12c4ff3cdd8b903a9b0e993f6
MD5 a9b4905d10e16d7b8a48272ef1e24a37
BLAKE2b-256 83b43642700d37b513ef1574e18f89aa545a9dca8986ab5d137e743623e24797

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: klein-20.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 118.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for klein-20.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 00a74f4da360259cfa0a3cfb949fa04f7c17cd8698b64b3c1a3ad2cd6c52dc8b
MD5 d88dfc4114bd5798934ca372fa7e7128
BLAKE2b-256 4bc6b8bb2eec20538cfb9221351c3d6d769bf0da5baebf0323334774fe3077a1

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