Skip to main content

FastWeb is a Python fast web frame refered by Tornado

Project description

依赖 Tornado 开发的快速构建web应用的框架。

示例

下面是一个简单的例子:

import fastweb.API
import fastweb.UI

class MainHandler(API):
    def get(self):
        self.write("Hello, world")

class UIModule(UI):
    def render(self):
        self.render_string('index.vm')

def make_app():
    return tornado.web.Application([
        (r"/", MainHandler),
    ])

if __name__ == "__main__":
    app = make_app()
    app.listen(8888)
    tornado.ioloop.IOLoop.current().start()

安装

python setup install

Project details


Release history Release notifications | RSS feed

This version

1.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastweb-1.0.2.tar.gz (8.8 kB view hashes)

Uploaded Source

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