Py之gevent:gevent的简介、安装、使用方法之详细攻略
2023-09-14 09:04:48 时间
Py之gevent:gevent的简介、安装、使用方法之详细攻略
目录
gevent的简介
gevent是一个基于协程的Python网络库,它使用greenlet在libev或libuv事件循环之上提供一个高级的同步API。
1、特点
- 基于libev或libuv的快速事件循环。
- 基于greenlet的轻量级执行单元。
- 重新使用Python标准库中概念的API(例如有事件和队列)。
- 支持SSL的协作套接字
- 通过线程池、dnspython或c-ares执行的协作DNS查询。
- 猴子补丁实用程序,使第三方模块成为合作
- TCP/UDP/HTTP服务器
- 子流程支持(通过gevent.Subprocess)
- 线程池
gevent的安装
pip install gevent
gevent的使用方法
$ git clone https://github.com/gevent/gevent.git
$ cd gevent
$ virtualenv env
$ source env/bin/activate
(env) $ pip install -r dev-requirements.txt
相关文章
- Py之dlib:Python库之dlib库的简介、安装、使用方法详细攻略
- 小米路由器3 opkg安装
- Py之cv2:cv2库(OpenCV,opencv-python)的简介、安装、使用方法(常见函数、方法等)最强详细攻略[通俗易懂]
- 如何Ubuntu20.04系统里安装ROS Noetic的方法
- win7系统快速安装、启动mongodb的详细方法
- CentOS 7下用yum快速安装MongoDB的方法教程
- Windows Sever 2012下Oracle 12c安装配置方法图文教程
- Oracle 12c安装方法及一些使用问题
- Linux系统中安装CVS的指南(linux安装cvs)
- MySQL卸载:彻底清除安装痕迹(mysql怎么卸载彻底)
- SQL Server 2005快速安装指南: 只需几步搞定!(sqlserver2005安装图解)
- 解决方法:修复GRUB启动引导Note to the reviewer: Please note that this suggested title is already more than 25 characters long. Therefore if the title length is a strict requirement please let me know and I will modify it accordingly.(linux安装无法引导)
- 轻松安装MySQL利用CMD一步到位(cmd安装mysql包)
- 安装和配置如何安装和配置MySQL一步步指导新手完成MySQL下载后的安装和配置详细说明MySQL的配置方法和参数设置
- 安装PHP可能遇到的问题“无法载入mysql扩展”的解决方法
- windows下wxPython开发环境安装与配置方法
- Win2008R2安装.NETFramework4的windows6.1-KB958488-V6001-x64出现灾难性故障解决方法
- Windows2012安装IIS和FTP的方法