Skip to main content

Coroutine-based network library

Project description


gevent is a coroutine -based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libev or libuv event loop.

Features include:

gevent is inspired by eventlet but features a more consistent API, simpler implementation and better performance. Read why others use gevent and check out the list of the open source projects based on gevent.

gevent was written by Denis Bilenko.

Since version 1.1, gevent is maintained by Jason Madden for NextThought with help from the contributors and is licensed under the MIT license.

See what’s new in the latest major release.

Check out the detailed changelog for this version.

Read the documentation online at

Post feedback and issues on the bug tracker, mailing list, blog and twitter (@gevent).

Installation and Requirements

Supported Platforms

This version of gevent runs on Python 2.7.9 and up, and Python 3.5, 3.6, 3.7 and 3.8. gevent requires the greenlet library and will install the cffi library by default on Windows. The cffi library will become the default on all platforms in a future release of gevent.

This version of gevent also runs on PyPy 7.0 or above. On PyPy, there are no external dependencies.

gevent is tested on Windows, macOS, and Linux, and should run on most other Unix-like operating systems (e.g., FreeBSD, Solaris, etc.)

Older Versions of Python

Users of older versions of Python 2 or Python 3 may install an older version of gevent. Note that these versions are generally not supported.

Python Version

Gevent Version





<= 2.7.8




3.4.0 - 3.4.2





gevent and greenlet can both be installed with pip, e.g., pip install gevent. Installation using buildout is also supported.

On Windows, macOS, and Linux, both gevent and greenlet are distributed as binary wheels.

Installing From Source

If you are unable to use the binary wheels (for platforms where no pre-built wheels are available or if wheel installation is disabled), you can build gevent from source. A normal pip install will fall back to doing this if no binary wheel is available. See Installing From Source for more, including common installation issues.

Extra Dependencies

gevent has no runtime dependencies outside the standard library, greenlet, and (on some platforms) cffi. However, there are a number of additional libraries that extend gevent’s functionality and will be used if they are available. All of these may be installed using setuptools extras, as named below, e.g., pip install gevent[events].


Configurable event support using zope.event is highly recommended for configurable event support.


Enables the new pure-Python resolver, backed by dnspython. On Python 2, this also includes idna. They can be installed with the dnspython extra.


Enhancements to gevent’s self-monitoring capabilities. This includes the psutil library which is needed to monitor memory usage. (Note that this may not build on all platforms.)


A shortcut for installing suggested extras together.


Everything needed to run the complete gevent test suite.

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gevent-20.5.0.tar.gz (5.3 MB view hashes)

Uploaded Source

Built Distributions

gevent-20.5.0-pp27-pypy_73-win32.whl (788.9 kB view hashes)

Uploaded PyPy Windows x86

gevent-20.5.0-cp38-cp38-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

gevent-20.5.0-cp38-cp38-win32.whl (1.4 MB view hashes)

Uploaded CPython 3.8 Windows x86

gevent-20.5.0-cp38-cp38-manylinux2010_x86_64.whl (5.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

gevent-20.5.0-cp38-cp38-macosx_10_14_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

gevent-20.5.0-cp37-cp37m-win_amd64.whl (1.4 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

gevent-20.5.0-cp37-cp37m-win32.whl (1.3 MB view hashes)

Uploaded CPython 3.7m Windows x86

gevent-20.5.0-cp37-cp37m-manylinux2010_x86_64.whl (5.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

gevent-20.5.0-cp37-cp37m-macosx_10_14_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

gevent-20.5.0-cp36-cp36m-win_amd64.whl (1.4 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

gevent-20.5.0-cp36-cp36m-win32.whl (1.3 MB view hashes)

Uploaded CPython 3.6m Windows x86

gevent-20.5.0-cp36-cp36m-manylinux2010_x86_64.whl (5.2 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

gevent-20.5.0-cp36-cp36m-macosx_10_14_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.6m macOS 10.14+ x86-64

gevent-20.5.0-cp35-cp35m-win_amd64.whl (1.4 MB view hashes)

Uploaded CPython 3.5m Windows x86-64

gevent-20.5.0-cp35-cp35m-win32.whl (1.3 MB view hashes)

Uploaded CPython 3.5m Windows x86

gevent-20.5.0-cp35-cp35m-manylinux2010_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

gevent-20.5.0-cp27-cp27mu-manylinux2010_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

gevent-20.5.0-cp27-cp27m-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 2.7m Windows x86-64

gevent-20.5.0-cp27-cp27m-win32.whl (1.3 MB view hashes)

Uploaded CPython 2.7m Windows x86

gevent-20.5.0-cp27-cp27m-manylinux2010_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

gevent-20.5.0-cp27-cp27m-macosx_10_14_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 2.7m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page