Eurasia

来自站长百科
Jiaomh讨论 | 贡献2011年5月10日 (二) 16:42的版本 →‎使用手册
跳转至: 导航、​ 搜索

eurasia 是一种纯异步超轻量级协程框架,或者工具集。主要用于高效能 web 开发,也适用于底层网络开发和其他常规协程应用。自带 wsgi、httptcp 服务器,并具有将常规 IO 转换为协程异步的能力,可以让你用最 pythonic 的方式,编写出优美的程序

Eurasia概况

授权协议:开放源代码

开发语言:Python

操作系统Windows/Linux

官方网站:http://code.google.com/p/eurasia/

软件下载:

Eurasia示例代码

from eurasia.web import httpserver, mainloop
def handler(httpfile):
    httpfile.start_response('200 OK', [('Content-Type', 'text/plain')])
    httpfile.sendall('hello world!')
    httpfile.close()

httpd = httpserver('0.0.0.0:8080', handler)
httpd.start()
mainloop()

使用手册

安装

Eurasia基本使用手册

相关条目

参考来源

http://code.google.com/p/eurasia/