扭曲克莱因应用样品
sample-klein-app的Python项目详细描述
python中使用Kleinweb框架的示例应用程序。
klein是一个轻量级web框架,类似于Flask或Bottle。 klein的主要区别在于它建立在Twisted 框架,它允许一个人编写asynchronous应用程序。
此示例应用程序试图演示以下几点:
- Basic usage of Klein. See hello.py.
- Using URL path components as arguments. See math.py.
- Use of ^{tt1}$ to catch exceptions and respond with an appropriate error. See math.py.
- Composition of Klein applications. See composite.py.
- Using Twisted to write asynchronous code using ^{tt2}$/^{tt3}$. See dns.py.