My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

Eurasia 高效能服务器

欢迎加入 Eurasia 用戶組 以获取最新动向及技术支持!

欲快速了解 eurasia 技术敬请阅读 官方文档

这里提供集成安装包 下载

$ tar -xjf eurasia-3.1-snapshot.tar.bz2
$ cd eurasia-3.1-snapshot
$ sudo /PATH/TO/DEST/bin/python2.6 setup.py install

快速用例:

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 的读法在 这里

Powered by Google Project Hosting