Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

python web framework

Project description

# txweb

TOUGHSTRUCT项目WEB框架,基于Python2.7, twisted, cyclone组成的WEB开发框架。

## 快速安装

pip install -U https://github.com/talkincode/txweb/archive/master.zip

## 创建项目

以下指令会从github下载应用模板并创建应用目录,目录名就是应用名,参数 -U 表示重新下载,否则直接取本地缓存

txwebctl –create -U –dir=appdir

## 运行项目

以下指令会在8888端口(可选)监听http请求,–logging=none是由于cyclone内部自动打印日志,与txweb日志打印重复,所以关掉。

txwebctl –port=8888 –dir=appdir –conf=appdir/etc/appname.json -logging=none

[May 25 09:30:13 appname] Log opened. [May 25 09:30:13 appname] add free route [/:<class ‘appname.handlers.index.IndexHandler’>] [May 25 09:30:13 appname] Application starting on 8888 [May 25 09:30:13 appname] Starting factory <txweb.web.Application instance at 0x105731e18>

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
txweb-0.0.8.macosx-10.11-x86_64.tar.gz (33.9 kB) Copy SHA256 hash SHA256 Dumb Binary any
txweb-0.0.8-py2-none-any.whl (45.1 kB) Copy SHA256 hash SHA256 Wheel 2.7

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page