Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

gevent

gevent is a coroutine-based Python networking library.

Features include:

  • Fast event loop based on libev.

  • Lightweight execution units based on greenlet.

  • Familiar API that re-uses concepts from the Python standard library.

  • Cooperative sockets with SSL support.

  • DNS queries performed through c-ares or a threadpool.

  • Ability to use standard library and 3rd party modules written for standard blocking sockets

gevent is inspired by eventlet but features 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 is licensed under MIT license.

Get gevent

Gevent runs on Python >= 2.6, Python >= 3.3, or PyPy >= 4.0.1 (but not PyPy3) (Note: PyPy is not supported in Windows). On all platforms, installing setuptools is recommended (this is done automatically if working in a virtual environment).

While gevent v1.1 is not yet released, it has release candidates which are currently considered quite stable, with many bugfixes over v1.0. v1.1 is also necessary if you are running OS X 10.11 and/or Python 3. To install one of these release candidates, you can run:

pip install --pre gevent

Download the latest release from Python Package Index or clone the repository.

Read the documentation online at http://www.gevent.org

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

Development

To install the latest development version:

pip install setuptools 'cython>=0.23.4' git+git://github.com/gevent/gevent.git#egg=gevent

To hack on gevent (using a virtualenv):

$ git clone https://github.com/gevent/gevent.git
$ cd gevent
$ virtualenv env
$ source env/bin/activate
(env) $ pip install -r dev-requirements.txt

Running Tests

There are a few different ways to run the tests. To simply run the tests on one version of Python during development, try this:

python setup.py develop
cd greentest
PYTHONPATH=.. python testrunner.py --config ../known_failures.py

Before submitting a pull request, it’s a good idea to run the tests across all supported versions of Python, and to check the code quality using pep8 and pyflakes. This is what is done on Travis CI. Locally it can be done using tox:

pip install tox
tox

The testrunner accepts a --coverage argument to enable code coverage metrics through the coverage.py package. That would go something like this:

cd greentest
PYTHONPATH=.. python testrunner.py --config ../known_failures.py --coverage
coverage combine
coverage html -i
<open htmlcov/index.html>

Builds on Travis CI automatically submit updates to coveralls.io.

https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github

Continuous integration

A test suite is run for every push and pull request submitted. Travis CI is used to test on Linux, and AppVeyor runs the builds on Windows.

https://travis-ci.org/gevent/gevent.svg?branch=master https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur?svg=true

Metadata

Release files for gevent 1.1rc5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gevent 1.1rc5
File Size Uploaded
gevent-1.1rc5.tar.gz 1.9 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for gevent 1.1rc5
File
gevent-1.1rc5.win-amd64-py3.5.exe Details
gevent-1.1rc5.win-amd64-py3.4.exe Details
gevent-1.1rc5.win-amd64-py3.3.exe Details
gevent-1.1rc5.win-amd64-py2.7.exe Details
gevent-1.1rc5.win32-py3.5.exe Details
gevent-1.1rc5.win32-py3.4.exe Details
gevent-1.1rc5.win32-py3.3.exe Details
gevent-1.1rc5.win32-py2.7.exe Details
gevent-1.1rc5-pp240-pp240u-macosx_10_11_x86_64.whl PyPy 2.40 PyPy 2.40 macOS 10.11+ x86-64 Details
gevent-1.1rc5-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
gevent-1.1rc5-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
gevent-1.1rc5-cp35-cp35m-macosx_10_6_intel.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.1rc5-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
gevent-1.1rc5-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
gevent-1.1rc5-cp34-cp34m-macosx_10_6_intel.whl CPython 3.4 CPython 3.4 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.1rc5-cp33-cp33m-win_amd64.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-64 Details
gevent-1.1rc5-cp33-cp33m-win32.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-32 Details
gevent-1.1rc5-cp33-cp33m-macosx_10_11_x86_64.whl CPython 3.3 CPython 3.3 pymalloc macOS 10.11+ x86-64 Details
gevent-1.1rc5-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
gevent-1.1rc5-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details
gevent-1.1rc5-cp27-cp27m-macosx_10_6_intel.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.1rc5-cp26-cp26m-macosx_10_11_intel.whl CPython 2.6 CPython 2.6 pymalloc macOS 10.11+ Intel (x86-64, i386) Details

Total release size: 12.3 MB

Release files / gevent-1.1rc5.tar.gz

Download URL gevent-1.1rc5.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
7c6fe06b9264530eec74789c00ef0952a630b88a585815182758148c3d539d31
BLAKE2b-256 checksum
How to use checksums
a58769b0c608cdb44e1dd996a31f566ecf1936b02183f75d7ac73a38da334800
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win-amd64-py3.5.exe

Download URL gevent-1.1rc5.win-amd64-py3.5.exe
Size 518.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b3bcf4fb49f127cd4f6f4245206b08eb48360b2e6ba113992d031232a9f0c07c
BLAKE2b-256 checksum
How to use checksums
1299f3156685d38c2ea8b9c7f04f9852895e36da8e8f7fee0719daab194fda2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win-amd64-py3.4.exe

Download URL gevent-1.1rc5.win-amd64-py3.4.exe
Size 605.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2465e526d6af72b8f91d32b4933ce1381b639a1838d26b6de430060efb597e8e
BLAKE2b-256 checksum
How to use checksums
603a002ee729230604e01550de1fd90773f393da43e13e8788c26a25f0245619
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win-amd64-py3.3.exe

Download URL gevent-1.1rc5.win-amd64-py3.3.exe
Size 606.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5082231ccaf2f71e18b16e1f346348722b18b5fdf120c2cd3b169b5c5605adb0
BLAKE2b-256 checksum
How to use checksums
c68299331128430a783a5b1591911d240874f6f7f0997fe22f7ba1dbfcc8a725
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win-amd64-py2.7.exe

Download URL gevent-1.1rc5.win-amd64-py2.7.exe
Size 609.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f04121221c1c9e56563210a0cd799f8338d27ca1b44bd7ae67c5e1952a7da512
BLAKE2b-256 checksum
How to use checksums
e13bb84544e04cff75676e12c3f45ca7b8506bc18bc9c37db2df11f051b640bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win32-py3.5.exe

Download URL gevent-1.1rc5.win32-py3.5.exe
Size 477.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9adafe7510f43363e08ee97b4e8f1815ac7fa8b91788e1bc14d5fc1a4af60f02
BLAKE2b-256 checksum
How to use checksums
0216748a502a0b53e27a6d5099db00602e3e8e594c03d9ab895b400e1406a7f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win32-py3.4.exe

Download URL gevent-1.1rc5.win32-py3.4.exe
Size 547.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b12a4b146655952f931ac57d989c85c8c2e3a154e5bd40baaadc098d7f10b14a
BLAKE2b-256 checksum
How to use checksums
907687b2eae2524a03e4dff21e375276dbd6aee09b80913551a21a873df386a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win32-py3.3.exe

Download URL gevent-1.1rc5.win32-py3.3.exe
Size 547.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b322d62af71a202b2f510ed45ae3e90285d2d7691d4495bb1c3b245d410b60e7
BLAKE2b-256 checksum
How to use checksums
598ab688e231e497492a377e7842421bccb7f14307daa19608cb6ed4aca582fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5.win32-py2.7.exe

Download URL gevent-1.1rc5.win32-py2.7.exe
Size 550.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0ee7eb15857600133ad64bb150d698324b8659e2ac481b377523da0e5a1d28cd
BLAKE2b-256 checksum
How to use checksums
2eda9e8120884e964f4c851ba046c951c8fa558e719600d72dbce4e7be5304fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-pp240-pp240u-macosx_10_11_x86_64.whl

Download URL gevent-1.1rc5-pp240-pp240u-macosx_10_11_x86_64.whl
Size 374.7 kB
Tags PyPy 2.40 macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
9bebba85c0409650bf0026a578aa4e8cd2decb78a65d62349b0c0e731989491e
BLAKE2b-256 checksum
How to use checksums
fdc6ba3ce5e41f6d1701a418837c76850fc9052c7201ede84e1f10dbf4075123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp35-cp35m-win_amd64.whl

Download URL gevent-1.1rc5-cp35-cp35m-win_amd64.whl
Size 377.2 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
d9caf3a5558bc7ae91dcc567af359029127510a35b1ec036e4653e47674becca
BLAKE2b-256 checksum
How to use checksums
9f48674c7794c98cd64f48949746e1e9386ab2efa4402a6acd28f8179e85043b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp35-cp35m-win32.whl

Download URL gevent-1.1rc5-cp35-cp35m-win32.whl
Size 343.6 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
eb3df2656d843ff528f53ad49775e372e73f18a9b5b5aefde227149b854d6137
BLAKE2b-256 checksum
How to use checksums
0dd201e98a90b1707b4c117575a4026b8b96723598a9c3f4c946835c1cef4bea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp35-cp35m-macosx_10_6_intel.whl

Download URL gevent-1.1rc5-cp35-cp35m-macosx_10_6_intel.whl
Size 466.5 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
99f4c4489b70ce850d4f4acf4e8174360da3564f094e96b9ec4a051c2ae66f87
BLAKE2b-256 checksum
How to use checksums
4c33ce97ab6dbd71f3bd01c1992e0f3df26a983fa7d94b02c844cc912d6524b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp34-cp34m-win_amd64.whl

Download URL gevent-1.1rc5-cp34-cp34m-win_amd64.whl
Size 378.3 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
18fb494fbc994d411518ba185722c3d5dee93be244a822d43d0db4833adfeb48
BLAKE2b-256 checksum
How to use checksums
68e7fef696952861581073c8c59313fd13a79ff893570fca7edaa37922fae0d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp34-cp34m-win32.whl

Download URL gevent-1.1rc5-cp34-cp34m-win32.whl
Size 351.4 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
d716259d7e5715d7b9d801994cd1d71d6a7bb2cc28273b1fd6d1ce374d1bc8be
BLAKE2b-256 checksum
How to use checksums
86aa88718018fcadcc62a637db15c19099a22acaa1179e12f6bf2f0fbf8575ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp34-cp34m-macosx_10_6_intel.whl

Download URL gevent-1.1rc5-cp34-cp34m-macosx_10_6_intel.whl
Size 467.7 kB
Tags CPython 3.4 CPython 3.4 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
f0af50f2e55221f193c01f378d6bbf0e5cc898af54ab7d61996b1854b0de85f3
BLAKE2b-256 checksum
How to use checksums
e5535f1b55c1918807aedc9463fc095b4b1da07e21628d061314174986261866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp33-cp33m-win_amd64.whl

Download URL gevent-1.1rc5-cp33-cp33m-win_amd64.whl
Size 379.3 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
ae627468551dea73310934392f79d134d0c3fd26cd31e2640120b32b9ca43c3c
BLAKE2b-256 checksum
How to use checksums
6227b0386e844765d838fc4ec8c88a262f2b2155fbe5820ce98d8c661615d07e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp33-cp33m-win32.whl

Download URL gevent-1.1rc5-cp33-cp33m-win32.whl
Size 351.2 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
c9da0b1b1afbc553e4ea55a38bff0a2aa821e4b2d05bc604e170cdb2f333852c
BLAKE2b-256 checksum
How to use checksums
bc36a897799b50db7beb1ef1b2815015d5b1eb6185a3dc465a8b7a1c2f8f9752
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp33-cp33m-macosx_10_11_x86_64.whl

Download URL gevent-1.1rc5-cp33-cp33m-macosx_10_11_x86_64.whl
Size 462.1 kB
Tags CPython 3.3 CPython 3.3 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
559e0d09ba1a5ce5a7c034dfa6f5740b391b3614d1c16607ad8d711d03603ead
BLAKE2b-256 checksum
How to use checksums
3d9c78b157cea1afb1d5ced0f56a19721d16d05b3e62a08c5c4584815808063a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp27-cp27m-win_amd64.whl

Download URL gevent-1.1rc5-cp27-cp27m-win_amd64.whl
Size 380.7 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
359607ad5d5a0ee5f7e3241b4770819c1bdb3d7d2f7e272310b7f9eb8669e777
BLAKE2b-256 checksum
How to use checksums
c3a27ed53a822c48e0cb5037d70f3390e99cb90763bc2e0f96053651a9a600c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp27-cp27m-win32.whl

Download URL gevent-1.1rc5-cp27-cp27m-win32.whl
Size 349.8 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
2eb61cc562e576a691a22c7a89138fcbe65a7fb0a2f278429258a5a9fdf93266
BLAKE2b-256 checksum
How to use checksums
8364db9e4f78bbf716414ee3e90cdf15d6f20d039d0ed19e8a6ee3f39662ff5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp27-cp27m-macosx_10_6_intel.whl

Download URL gevent-1.1rc5-cp27-cp27m-macosx_10_6_intel.whl
Size 464.9 kB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
6c9f68369d3b177e4f8d76d432fee4581d784e90c0e319d6e2b299b518ce9bb8
BLAKE2b-256 checksum
How to use checksums
7338f220740cdf1f9729323bc488e3c359fe5d7f4aa039b4b5857c4404034f23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1rc5-cp26-cp26m-macosx_10_11_intel.whl

Download URL gevent-1.1rc5-cp26-cp26m-macosx_10_11_intel.whl
Size 717.6 kB
Tags CPython 2.6 CPython 2.6 pymalloc macOS 10.11+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
d8de06614473fb7fca2324422d82f4e8a794911d8744f7bab325378d4268d3ae
BLAKE2b-256 checksum
How to use checksums
96000272d59bbf7227e2b0b3c7455d0dd557e025e48df083544f128b6d53f4a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.5.0

23 release files

1.3.7

23 release files

1.3.6

23 release files

1.3.5

21 release files

1.3.4

22 release files

1.3.2

16 release files

1.3.1

21 release files

1.3.0

21 release files

1.2.1

28 release files

1.2.0

21 release files

1.1.2

26 release files

This release

1.1rc5 This release

23 release files

1.0.2

7 release files

1.0.1

1 release file

1.0

1 release file

0.13.7

7 release files

0.13.6

1 release file

0.13.5

1 release file

0.13.4

1 release file

0.13.3

1 release file

0.13.2

7 release files

0.13.1

7 release files

0.13.0

7 release files

0.12.2

1 release file

0.12.1

1 release file

0.12.0

1 release file

0.11.2

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.3

1 release file

0.9.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page