Tori Framework

Author:Juti Noppornpitak <jnopporn@shiroyuki.com>

Tori is a micro framework based on Facebook’s Tornado framework 2.x and supports both Python 2.6+, including Python 3.3+.

Differences in Idea

As you may know that there already exists number of web framework, Tori is made for the different purposes.

  1. It is to simplify the setup process.
  2. Everything in Tori, beside what Tornado provides, is designed for applications developed on the concepts of aspect-oriented programming (AOP) and dependency injections (DI) which heavily relies on Imagination Framework.
  3. Free to design the structure of the application in the way everyone wants.
  4. Many built-in components are designed for re-usability with or without Tornado and Imagination Framework.

Differences in Code

Even though Tori is based on Tornado, there are a few elements that differ from the Tornado.

  1. The setup script is different as Tori acts as a wrapper for Tornado’s Application.
  2. Tori Framework uses Jinja2 as the default template engine.
  3. Tori Framework’s controller extends Tornado’s RequestHandler with the integration with Tori’s session controller.
  4. Tori Framework can define more than one route to static resource.

Prerequisites

Module Required Third-party Modules
tori.application tornado 2.4+
tori.controller tornado 2.4+
tori.socket tornado 2.4+
tori.db pymongo 2.3+ / sqlalchemy 0.7+
tori.session redis 2.7+
tori.template jinja2 2.6+

Note

It is not required to have all of them. You can install only what you need.

Installation

You can install via PIP command or easy_install command or you can download the source code and run python setup.py install.

Warning

There is no plan on supporting the legacy releases of Python as the project moves forward to Python 3.3 or higher. Python 2.7 is the last series of Python 2 being supported by the project. Python 2.6 seems to be working but the framework is not tested.

Table of Content

Indices and Modules

Project Versions

Table Of Contents

Next topic

Manual

This Page