Sample Twisted Klein Application
.. image:: https://api.travis-ci.org/wsanchez/sample-klein-app.svg?branch=master :target: https://travis-ci.org/wsanchez/sample-klein-app :alt: Build Status .. image:: https://codecov.io/github/wsanchez/sample-klein-app/coverage.svg?branch=master :target: https://codecov.io/github/wsanchez/sample-klein-app?branch=master :alt: Code Coverage .. image:: https://requires.io/github/wsanchez/sample-klein-app/requirements.svg?branch=master :target: https://requires.io/github/wsanchez/sample-klein-app/requirements/?branch=master :alt: Requirements Status
A sample application in Python, using the Klein_ web framework.
Klein is a lightweight web framework, similar to Flask_ or Bottle_. The primary differentiator for Klein is that it is built on the Twisted_ framework, which enables one to write asynchronous applications.
This sample application attempts to demonstrate a few things:
handle_errors
to catch exceptions and respond with anasync
/await
... ------------------------------------------------------------------------- ..
.. _composite.py: src/sample_klein_app/application/composite.py .. _dns.py: src/sample_klein_app/application/dns.py .. _hello.py: src/sample_klein_app/application/hello.py .. _math.py: src/sample_klein_app/application/math.py
.. _Bottle: http://bottlepy.org/ .. _Flask: http://flask.pocoo.org/ .. _Klein: https://github.com/twisted/klein/ .. _Twisted: http://twistedmatrix.com/