Skip to main content

twork is a server-app framework based on tornado

Project description

# twork

**twork** is a server-app framework based on **tornado**

## Features

### Web App Framework

Control/Model separation, users simply writing Application Model

### Unified Infrastructure

access logging, status statistics, overload protection, IP checking and so on

### Open Design

Not only for web framework, can be directly embedded other control model, like
that the custom protocol server-app.

## Install

pip install twork

## TworkApp Builder
Create your own project based on twork, **virtualenv** is recommend.

+ twork-admin -app=$APP -prefix=~/workspace
+ write your web request handler in $APP/$APP/web/action, and should be Inherited
from twork.web.action.BaseHandler

### Environment
+ [virtualenv](http://www.virtualenv.org/en/latest/) is a tool to create
isolated Python environments

## Usage
Enter your virtualenv first

+ cd ~/workspace/$APP
+ make install
+ tworkd --app_module=$APP.twork_injection

Case
------------
+ http://localhost:8000/v1.0/twork/stat

## Requirements
The following libraries are required

+ tornado==2.4.1
+ setproctitle==1.1.8
+ nose==1.3.3

## Issues

Please report any issues via [github issues](https://github.com/bufferx/twork/issues)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

twork-2.0.0.4-py2.7.egg (47.1 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