Gevent 事件循环

发布日期 :2021-01-18 08:00:16 UTC      

分类 :Python技术文档

访问量: 513 次浏览

链接 : https://www.osgeo.cn/gevent/

Gevent是一个 coroutine 基于 Python 使用的网络库 greenlet 在 libev 或 libuv 事件循环。功能包括:基于的快速事件循环 libev 或 libuv . 基于greenlets的轻量级执行单元。重新使用Python标准库中的概念的API (例如 events 和 queues )。Cooperative sockets with SSL support。 Cooperative DNS queries 通过线程工具、dnspython或c-ares执行。 Monkey patching utility 使第三方模块变得合作。 TCP/UDP/HTTP服务器。子流程支持(通过 gevent.subprocess )。线程池。