uvwsgi

当前版本: 0.3.2


uvwsgi是什么?

使用pyuv的简单WSGI服务器
Simple WSGI server using pyuv

安装方式

pip install uvwsgi==0.3.2

相关网址


使用说明

uvwsgi: a Python WSGI server

uvwsgi is a Python WSGI server whhich uses libuv and http-parser libraries also used in Node.JS through their Python binding libraries:

Motivalion

There are abunch of great WSGI servers out there, so why create a new one? I've been playing with Flask and WSGI lately and I wanted to see the guts of it. As you can see the code is pretty short, I expect to make more changes and more features to it though.

Status (状态)

uvwsgi should not be used in production. It's still work in progress.

The project is not very actively maintained at the moment, if you'd like to help please drop me a line!

Installtion

uvwsgi can be easily installed with pip:

pip install uvwsgi

Usage (用法)

Example usage:

from flask import Flask
from uvwsgi import run

app = Flask(__name__)

@app.route('/')
def index():
    return 'hello world!'

if __name__ == '__main__':
    run(app, ('0.0.0.0', 8088))

The uvwsgi command line application can also be used to serve WSGI applications directly. Assuming the code above this lines is stored in a file called tst.py, it can be served as follows:

uvwsgi tst:app --port 8888

NOTE: You need to install the package first in order to have the uvwsgi command available.

Author (作者)

Saúl Ibarra Corretgé <saghul@gmail.com>

License (许可)

Unless stated otherwise on-file uvwsgi uses the MIT license, check LICENSE file.

项目热度

项目信息

分享到

基本信息
开发语言
Python
相关项目
0
相关仓库
0
Watchers
2
Stars
35
Forks
3
版本数量
5
最新发布
2014-12-14
首次发布
2013-08-27
仓库大小
21.5 KB

版本历史
0.3.2
2014-12-14
0.3.1
2014-12-14
0.3.0
2014-12-14
0.2.0
2014-03-24
0.1.0
2013-08-27

贡献者
Saúl Ibarra Corretgé Marc Schlaich