关于Tornado模块在官方文档上有详细的说明。

核心web框架

  • tornado.web

包含了 Tornado 的大多数重要的功能,尤其是常用的RequestHandler和Application

*   类RequestHandler
*   类Application
*   类HTTPError
*   类ErrorHandler
*   类RedirectHandler
*   类StaticFileHandler
*   类FallbackHandler
*   类OutputTransform
*   类GZipContentEncoding
*   类ChunkedTransferEncoding
*   类UIModule
*   类TemplateModule
*   类URLSpec
  • tornado.httpserver

非阻塞HTTP服务器

  • tornado.template

灵活的输出机制,基于Python的web模版系统

  • tornado.escape

XHTML, JSON, URL 的编码/解码方法

  • tornado.locale

针对本地化和翻译的支持

异步网络

  • tornado.ioloop

核心的I/O循环

  • tornado.iostream

对非阻塞式的 socket 的简单封装,以方便常用读写操作(Convenient wrappers for non-blocking sockets)

  • tornado.httpclient

非阻塞的HTTP客户端(Non-blocking HTTP client)

  • tornado.netutil

其他网络工具(Miscellaneous network utilities)

其他可整合的

  • tornado.auth

第三方登陆,包括 Google OpenID/OAuth、Facebook Platform、Yahoo BBAuth、FriendFeed OpenID/OAuth、Twitter OAuth(Third-party login with OpenID and OAuth)

  • tornado.database

简单的MySQL客户端封装(Simple MySQL client wrapper)

  • tornado.platform.twisted

在Tornado运行基于Twisted的程序(Run code written for Twisted on Tornado)

  • tornado.websocket

与浏览器双向通信(Bidirectional communication to the browser)

  • tornado.wsgi

支持其他的Python框架和服务器(Interoperability with other Python frameworks and servers)

公共工具

  • tornado.autoreload

在开发中自动检测代码变化,调试模式(Automatically detect code changes in development)

  • tornado.gen

简化的异步代码(Simplify asynchronous code)

  • tornado.httputil

处理HTTP头信息和URL(Manipulate HTTP headers and URLs)

  • tornado.options

命令行选项的解析,如传入日志级别(Command-line parsing)

  • tornado.process

多进程的使用工具(Utilities for multiple processes)

  • tornado.stack_context

在异步回调中的异常处理(Exception handling across asynchronous callbacks)

  • tornado.testing

异步单元测试模块(Unit testing support for asynchronous code)

来自:http://www./book/502e5cff3725176a91000004/catalog/2