| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
fmms
14年前发布

超轻量级协程框架 Eurasia

     <div id="p_fullcontent" class="detail">     <p>eurasia 是一种纯异步超轻量级协程框架,或者工具集。主要用于高效能 web 开发,也适用于底层网络开发和其他常规协程应用。自带 wsgi、http 和 tcp 服务器,并具有将常规 IO 转换为协程异步的能力,可以让你用最 pythonic 的方式,编写出优美的程序。</p>     <p>示例代码:</p>     <pre class="brush:python; toolbar: true; auto-links: false;">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()</pre>     <p><br /> 此软件被Zoom.Quiet  评为国产神作!<br /> <br /> </p>     <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1323612416421" target="_blank">http://www.open-open.com/lib/view/home/1323612416421</a></p>    </div>     
 本文由用户 fmms 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1323612416421.html
Python Web框架