Skip to main content

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 the MIT license.

See what’s new in the latest major release.

Check out the detailed changelog for this version.

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).

You can use pip to install gevent:

pip install gevent

Note: You need Pip 8.0 or later to install the binary wheels for 1.1.

Important: Version 1.1 will be the last gevent series to support Python 2.6. Future major releases will only support Python 2.7 and above.

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

Read the documentation online at http://www.gevent.org. Additional installation information can be found here.

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=maint/1.1.x&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=maint%2F1.1.x https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur/branch/maint%2F1.1.x?svg=true

Metadata

Release files for gevent 1.1.2

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.1.2
File Size Uploaded
gevent-1.1.2.tar.gz 2.0 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for gevent 1.1.2
File
gevent-1.1.2.win-amd64-py3.5.exe Details
gevent-1.1.2.win-amd64-py3.4.exe Details
gevent-1.1.2.win-amd64-py3.3.exe Details
gevent-1.1.2.win-amd64-py2.7.exe Details
gevent-1.1.2.win32-py3.5.exe Details
gevent-1.1.2.win32-py3.4.exe Details
gevent-1.1.2.win32-py2.7.exe Details
gevent-1.1.2-pp253-pypy_41-macosx_10_11_x86_64.whl PyPy 2.53 PyPy 4.1 macOS 10.11+ x86-64 Details
gevent-1.1.2-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
gevent-1.1.2-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
gevent-1.1.2-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.1.2-cp35-cp35m-macosx_10_6_intel.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.1.2-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
gevent-1.1.2-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
gevent-1.1.2-cp34-cp34m-manylinux1_x86_64.whl CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.1.2-cp34-cp34m-macosx_10_6_intel.whl CPython 3.4 CPython 3.4 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.1.2-cp33-cp33m-win_amd64.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-64 Details
gevent-1.1.2-cp33-cp33m-win32.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-32 Details
gevent-1.1.2-cp33-cp33m-manylinux1_x86_64.whl CPython 3.3 CPython 3.3 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 Details
gevent-1.1.2-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
gevent-1.1.2-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details
gevent-1.1.2-cp27-cp27m-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.1.2-cp27-cp27m-macosx_10_6_intel.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.1.2-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: 18.9 MB

Release files / gevent-1.1.2.tar.gz

Download URL gevent-1.1.2.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c
BLAKE2b-256 checksum
How to use checksums
438fcb3224a0e6ab663547f45c10d0651cfd52633fde4283bf68d627084df8cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2.win-amd64-py3.5.exe

Download URL gevent-1.1.2.win-amd64-py3.5.exe
Size 524.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2feb3fddc0240373bfc0176d7625cb667132beef18009bf7101216baafd136e9
BLAKE2b-256 checksum
How to use checksums
5dffdc62db0c71e3b213f16c3665d659e034cae42f262b7afe9feee7a50e7c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2.win-amd64-py3.4.exe

Download URL gevent-1.1.2.win-amd64-py3.4.exe
Size 611.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3c43de92658eb4723572cd7e543340943e96bf4666f92a819d36f93653c39d15
BLAKE2b-256 checksum
How to use checksums
f67a8c6cc3123a0a7a6d35cfdfb104f62a6c5ff0fd0b86a1cd40d6de2da00d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2.win-amd64-py3.3.exe

Download URL gevent-1.1.2.win-amd64-py3.3.exe
Size 612.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f403a6b18b3cdb6de4c0140711de690071783433cd0f325c9e46c585497e580c
BLAKE2b-256 checksum
How to use checksums
84f3100f0d7d46af4e60b12156d02130b846899e525e0a6ad8edb7c549c5e235
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2.win-amd64-py2.7.exe

Download URL gevent-1.1.2.win-amd64-py2.7.exe
Size 615.1 kB
Tags Source
SHA-256 checksum
How to use checksums
911ebb03dee09e841d0f7ee367b1b8380f8918b3e30c3a822bc41599ae74d2a3
BLAKE2b-256 checksum
How to use checksums
f42cc9db95286dbbb4412fb676379e3274ef061795fc118f32058adfc93ee6e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2.win32-py3.5.exe

Download URL gevent-1.1.2.win32-py3.5.exe
Size 483.3 kB
Tags Source
SHA-256 checksum
How to use checksums
192439e55f6f99215ba98f95c53cf990b8380858d195d8c84ad60eb55ef4161b
BLAKE2b-256 checksum
How to use checksums
6b02355f6cdd1b763568f2692fd0d21486d74d17250644159ac36a3defe03deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2.win32-py3.4.exe

Download URL gevent-1.1.2.win32-py3.4.exe
Size 553.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7d8e8ff35decff1c70fd55959e74e5067505862828d875250a840d8031bf48c2
BLAKE2b-256 checksum
How to use checksums
e5e7032c8e95a0e7778af1f144f2ceb8106dd45057f64eb9a106e0d613cad872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2.win32-py2.7.exe

Download URL gevent-1.1.2.win32-py2.7.exe
Size 556.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2f578b4469cbd2c5a59f353dacb81f8435b54afe4ec706c6155900aff39e8a12
BLAKE2b-256 checksum
How to use checksums
52712128d8bba09f37d38458ba580f9519913edce7d48bebbc62c340865861af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-pp253-pypy_41-macosx_10_11_x86_64.whl

Download URL gevent-1.1.2-pp253-pypy_41-macosx_10_11_x86_64.whl
Size 381.6 kB
Tags PyPy 2.53 PyPy 4.1 macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
3963faca1c5e175fdcfeec3ee7116f3d8082be2f94e096871e9b08da10fa4c25
BLAKE2b-256 checksum
How to use checksums
33bfa5c1045eff8ac185967564060ff281ab452efe802251e86c6cacce242c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp35-cp35m-win_amd64.whl

Download URL gevent-1.1.2-cp35-cp35m-win_amd64.whl
Size 382.9 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
58bdc8d1ca56e3dab833c2e2098a9afa98d0ff0f738c63e896138289c2a08b5e
BLAKE2b-256 checksum
How to use checksums
b7340247a22d90de86529a45d1da71179c1038ab1737667e2725580a4f09ea0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp35-cp35m-win32.whl

Download URL gevent-1.1.2-cp35-cp35m-win32.whl
Size 349.2 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
468bc2aea02aa1963bd0c73803f0378530f60af8fc93a576d0ca79285d60e833
BLAKE2b-256 checksum
How to use checksums
c06bc54935cb16904f7b95ae9f1e35e7343b397a05f85c38d45b3cbf4ef2225e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp35-cp35m-manylinux1_x86_64.whl

Download URL gevent-1.1.2-cp35-cp35m-manylinux1_x86_64.whl
Size 1.4 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
4552cc8ffefd4c5301ba75ac2720befb0001bc134e4e8c28475e96992e513300
BLAKE2b-256 checksum
How to use checksums
65ffbf56bd8fcdccb114f808b9add22fe07179f734784b27d0de1ad08f7668e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp35-cp35m-macosx_10_6_intel.whl

Download URL gevent-1.1.2-cp35-cp35m-macosx_10_6_intel.whl
Size 764.5 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
26a622ad8da282b0fea17f3800bfc4eae9be89a53c22ffba5a2b357278b8f8e8
BLAKE2b-256 checksum
How to use checksums
c1f5e01dea62b42af76fd181beae1912008c1cab1e898dc835b3fb7abea2a90a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp34-cp34m-win_amd64.whl

Download URL gevent-1.1.2-cp34-cp34m-win_amd64.whl
Size 384.0 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
c7f86e297b8ffff7e101993980062f053ebda92ed8c40ab3a9c53c50ff9ef408
BLAKE2b-256 checksum
How to use checksums
b86d6407edc3d0770d4c4aaa55fd95946570b1c3af91f5ba25cdf837c7270867
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp34-cp34m-win32.whl

Download URL gevent-1.1.2-cp34-cp34m-win32.whl
Size 357.0 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
7188cbec74276e42ea0671ad479e4209f9f12d82bc542d21217a09f759e647e3
BLAKE2b-256 checksum
How to use checksums
f7a4b194deb2f154b339b5da84a39ab5c2f68010c2a3246c2dd615d03953cc13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp34-cp34m-manylinux1_x86_64.whl

Download URL gevent-1.1.2-cp34-cp34m-manylinux1_x86_64.whl
Size 1.4 MB
Tags CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
720574505391b0f0817b092edfcbb97938d6d407ce912444a92267dab763eb8e
BLAKE2b-256 checksum
How to use checksums
4b2aac2f6cfb4debb3ce3d4d59f08b78fbbdb462d51e9df72b3b2be172ba8758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp34-cp34m-macosx_10_6_intel.whl

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

Release files / gevent-1.1.2-cp33-cp33m-win_amd64.whl

Download URL gevent-1.1.2-cp33-cp33m-win_amd64.whl
Size 384.8 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
2af2b6eae04ccfa0766a135c31056c92a127ebcb172858880d8309a9e57f52d8
BLAKE2b-256 checksum
How to use checksums
1383250e26cd83812fdad9fc9cd33e3b194911f03b82d121c1deb6eb778701bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp33-cp33m-win32.whl

Download URL gevent-1.1.2-cp33-cp33m-win32.whl
Size 356.8 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
9ce82526317a1279de2997e5da2744342ff0bd1459a14d75e749350966ae1e17
BLAKE2b-256 checksum
How to use checksums
ed12586d304577f208e9495a9ec3bacc0fd5730b06242919bcda9f915bc19423
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp33-cp33m-manylinux1_x86_64.whl

Download URL gevent-1.1.2-cp33-cp33m-manylinux1_x86_64.whl
Size 1.3 MB
Tags CPython 3.3 CPython 3.3 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
2cb985038826eb353f5759dda2ec7bca581abf4e5c2e90b95ddb5d976dc785e6
BLAKE2b-256 checksum
How to use checksums
d3375edca7335f0b6899d29dfa5997107f88d93684b6f3d9def7a82386d52c9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl

Download URL gevent-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl
Size 1.3 MB
Tags CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
d072a29ca28bb84d9433434e2675c44ca29635c0aa0ed51b1eecf216991fd204
BLAKE2b-256 checksum
How to use checksums
1a230fec5ea162012f935613c2bec362e31f5695cb35e812cf4c21b835784098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp27-cp27m-win_amd64.whl

Download URL gevent-1.1.2-cp27-cp27m-win_amd64.whl
Size 386.3 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
a4ce00048808d3c2ee7e8c83860595b0d2090724770e499056aec1c8947bd2d1
BLAKE2b-256 checksum
How to use checksums
33435c322f7d58671a8fb9417a169340bc1933b19adc717db79ec48a79b97492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp27-cp27m-win32.whl

Download URL gevent-1.1.2-cp27-cp27m-win32.whl
Size 355.4 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
a51f414f22f31a110823ff0365cb088dc3317a06227c85033d8523dd619ada72
BLAKE2b-256 checksum
How to use checksums
68892a390ab2c690ab74bcd6eae43983e801d9654c7eaf4745d49d68be5d6265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp27-cp27m-manylinux1_x86_64.whl

Download URL gevent-1.1.2-cp27-cp27m-manylinux1_x86_64.whl
Size 1.3 MB
Tags CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
a24fb153e3c65d025c065b140e39998d483d4df6887b02503ba66debf32b49d6
BLAKE2b-256 checksum
How to use checksums
a6dd8bbbc565f3c98b8892d7acb3336239c3708efc32853f5c05f5db9f521ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.1.2-cp27-cp27m-macosx_10_6_intel.whl

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

Release files / gevent-1.1.2-cp26-cp26m-macosx_10_11_intel.whl

Download URL gevent-1.1.2-cp26-cp26m-macosx_10_11_intel.whl
Size 730.2 kB
Tags CPython 2.6 CPython 2.6 pymalloc macOS 10.11+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
ca934dc30f26e84c79e483db4de433702283ff02344d029635730ff9e7c1d416
BLAKE2b-256 checksum
How to use checksums
5a14f50d2ccd306a8d8612df10374b9ebc106f085f7ded93e9a20c7ebf1ac628
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

This release

1.1.2 This release

26 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