Skip to main content
Pre-release

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

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.7, Python >= 3.4, or PyPy >= 5.5 (including PyPy2 and PyPy3) (Note: PyPy is not supported in Windows). On all platforms, installing setuptools is required (this is done automatically if working in a virtual environment).

You can use pip to install gevent:

pip install gevent

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.25' 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 src/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 prospector. 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 src/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 to monitor test coverage.

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

Likewise, builds on Travis CI will automatically submit updates to landscape.io to monitor code health (adherence to PEP8, absence of common code smells, etc).

Code Health

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.2a1

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.2a1
File Size Uploaded
gevent-1.2a1.tar.gz 2.8 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for gevent 1.2a1
File
gevent-1.2a1.win-amd64-py3.5.exe Details
gevent-1.2a1.win-amd64-py3.4.exe Details
gevent-1.2a1.win-amd64-py3.3.exe Details
gevent-1.2a1.win-amd64-py2.7.exe Details
gevent-1.2a1.win32-py3.5.exe Details
gevent-1.2a1.win32-py3.4.exe Details
gevent-1.2a1.win32-py3.3.exe Details
gevent-1.2a1.win32-py2.7.exe Details
gevent-1.2a1-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
gevent-1.2a1-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
gevent-1.2a1-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.2a1-cp35-cp35m-macosx_10_6_intel.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.2a1-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
gevent-1.2a1-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
gevent-1.2a1-cp34-cp34m-manylinux1_x86_64.whl CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.2a1-cp34-cp34m-macosx_10_6_intel.whl CPython 3.4 CPython 3.4 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
gevent-1.2a1-cp33-cp33m-win_amd64.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-64 Details
gevent-1.2a1-cp33-cp33m-win32.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-32 Details
gevent-1.2a1-cp33-cp33m-manylinux1_x86_64.whl CPython 3.3 CPython 3.3 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.2a1-cp27-cp27mu-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 Details
gevent-1.2a1-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
gevent-1.2a1-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details
gevent-1.2a1-cp27-cp27m-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 Details
gevent-1.2a1-cp27-cp27m-macosx_10_6_intel.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386) Details

Total release size: 26.6 MB

Release files / gevent-1.2a1.tar.gz

Download URL gevent-1.2a1.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
50dbb16d206c36085f49da3a07467c0bf059010da4eabd5f1cae9abd97b87ef9
BLAKE2b-256 checksum
How to use checksums
4c852d2b18aa14e5f6cdfc34d6e0882e18948c1be03a725b4f3bf9bfe28e6036
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win-amd64-py3.5.exe

Download URL gevent-1.2a1.win-amd64-py3.5.exe
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a82957becafcd8303387b1d35c06868f1386be1a1db09ff47222ce51c2f7f851
BLAKE2b-256 checksum
How to use checksums
f66d84390c6c20abb366ca973c32fc56373fc4d55bc876e2b909def61fc0f40e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win-amd64-py3.4.exe

Download URL gevent-1.2a1.win-amd64-py3.4.exe
Size 857.7 kB
Tags Source
SHA-256 checksum
How to use checksums
80303b6fe9883a152c1f06191f6e67508334a8370f75b369c21b64915ed8c6d0
BLAKE2b-256 checksum
How to use checksums
a16e0e6c85f78179615caab288db168b44a7d5409e0e9d3ca237e0ef8aa14ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win-amd64-py3.3.exe

Download URL gevent-1.2a1.win-amd64-py3.3.exe
Size 858.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f56da7c85af1cf42143eab089709e798ab402d9d93dc8f375281b241ddd3044b
BLAKE2b-256 checksum
How to use checksums
de21d75215d22043692b023274fd814b326516947ecb7e9afb1bbf645ed56d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win-amd64-py2.7.exe

Download URL gevent-1.2a1.win-amd64-py2.7.exe
Size 862.7 kB
Tags Source
SHA-256 checksum
How to use checksums
416687ae9324a08b5ae738e59f1020b35f3cf7cc705b2a3055903e60df6b8847
BLAKE2b-256 checksum
How to use checksums
cdd46ac29ecf21d7568108d8189361484460161b26bf30770dd4c4b44f3c65d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win32-py3.5.exe

Download URL gevent-1.2a1.win32-py3.5.exe
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d8a7fe83fe8c2a191b876053c0630fdd96ca3b1befdb551fbab4f3591482ed1a
BLAKE2b-256 checksum
How to use checksums
4e642d16265033df75c52b2a1b6469554fdddbb5f51e674ecba1a212b71a65ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win32-py3.4.exe

Download URL gevent-1.2a1.win32-py3.4.exe
Size 803.0 kB
Tags Source
SHA-256 checksum
How to use checksums
895092a4b907f0e7941cb8cb6cb547222669c8d1a820191b302fbc524b847f07
BLAKE2b-256 checksum
How to use checksums
8cfcced6298be547d41370e553c22a0c0444a9ba7ba8967438f9b8ed1aabc7b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win32-py3.3.exe

Download URL gevent-1.2a1.win32-py3.3.exe
Size 803.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d38587e00b3f7a7a756b91f458723a2a39ec741a22515c26b3234a96d7561ff5
BLAKE2b-256 checksum
How to use checksums
85185e2f2cd084e6870c3f48b32fe245af1589135f5aa511740c56cd9b00b205
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1.win32-py2.7.exe

Download URL gevent-1.2a1.win32-py2.7.exe
Size 807.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f55d26f210f3d22afb288bab24903516e5d27edd68846264818222a556f59d48
BLAKE2b-256 checksum
How to use checksums
51a38f674e9608aa46d4b1e4df256513f2788c36b422259366affff2d0489da2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp35-cp35m-win_amd64.whl

Download URL gevent-1.2a1-cp35-cp35m-win_amd64.whl
Size 628.7 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
6ebecfec4e0d97758f637b6128e2e7135dc24de4a59f1f19d6435527d36194b9
BLAKE2b-256 checksum
How to use checksums
2cb9c4219eb13c42a6b56a4da005eda997c9fc68ee2f641917b1e1b37c8f2b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp35-cp35m-win32.whl

Download URL gevent-1.2a1-cp35-cp35m-win32.whl
Size 604.1 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
e62534c6fad2306de22f3cd73d9ca15ed5edefcc7590043028acc985559d306b
BLAKE2b-256 checksum
How to use checksums
7d57340fb0002247c0be04f4c7c07bce6eca582f0021762fff3cc56853d4ff55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp35-cp35m-manylinux1_x86_64.whl

Download URL gevent-1.2a1-cp35-cp35m-manylinux1_x86_64.whl
Size 1.7 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
a928868b4445840e6a36b446b3a764005562105527bcf500d2088a556c1e09c4
BLAKE2b-256 checksum
How to use checksums
56a772527380f2c392f855564c610d0950b8b161ea4da294e45e662a5717e799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp35-cp35m-macosx_10_6_intel.whl

Download URL gevent-1.2a1-cp35-cp35m-macosx_10_6_intel.whl
Size 1.1 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
5522f7040afe592b23cf78e1c7d5209464a4eb0e51e00f42334dc42d3f143be6
BLAKE2b-256 checksum
How to use checksums
bdcb084dfade563c92d927dc96bc6121acf92f3d7eb63e1f5d4406387de7eb38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp34-cp34m-win_amd64.whl

Download URL gevent-1.2a1-cp34-cp34m-win_amd64.whl
Size 629.9 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
0a7624e2610747e8450c807f74dcb490e8f13496acafee99bbe1a7659a76276d
BLAKE2b-256 checksum
How to use checksums
7a14e3628e9fc8ae0ea55532c9f2e92f1d4bd8c0a3ec37261b427baba244b236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp34-cp34m-win32.whl

Download URL gevent-1.2a1-cp34-cp34m-win32.whl
Size 606.4 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
674b6434356765c389733545755b38483d0f7093edf868a9bc4122328d60ee23
BLAKE2b-256 checksum
How to use checksums
77f5c726a915fbc3c0fd2e54253249498712c9c08e85766cfad3864df6f32363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp34-cp34m-manylinux1_x86_64.whl

Download URL gevent-1.2a1-cp34-cp34m-manylinux1_x86_64.whl
Size 1.7 MB
Tags CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
2be3322d4b5f038c437ebb04600fb4340ae1c41045298fc539bde4472a9b90f3
BLAKE2b-256 checksum
How to use checksums
f42d7de7e2a4c07dad6a2eef5368c62449538fa212b14e012c85e54e3ee0ab54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp34-cp34m-macosx_10_6_intel.whl

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

Release files / gevent-1.2a1-cp33-cp33m-win_amd64.whl

Download URL gevent-1.2a1-cp33-cp33m-win_amd64.whl
Size 630.5 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
ca0db60300f43576f26b90e5cb63aa3698c37372aa5b68499a7c394d48119abb
BLAKE2b-256 checksum
How to use checksums
ad1c1b8bc37512d634e40cdc3a4198537615edf485b6cee4e8bb0103d641fe12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp33-cp33m-win32.whl

Download URL gevent-1.2a1-cp33-cp33m-win32.whl
Size 607.1 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
66a7e1345a601defbd7d71e4a26851329ddd066cf8e2bd79787cc3274b13a856
BLAKE2b-256 checksum
How to use checksums
7967ce9d939c8fca95acce67bd2432f9e8370e36da58446092b5debd316469de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp33-cp33m-manylinux1_x86_64.whl

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

Release files / gevent-1.2a1-cp27-cp27mu-manylinux1_x86_64.whl

Download URL gevent-1.2a1-cp27-cp27mu-manylinux1_x86_64.whl
Size 1.6 MB
Tags CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
16b55168ce4c0cb9e6c290d2e0e547bd79d6cd78ba1609f975325e77e9783b68
BLAKE2b-256 checksum
How to use checksums
fb35924be0f6f1405abe57fbf6ef4d67b8747fdc784d6da7bfd1f6f16d6f1c31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp27-cp27m-win_amd64.whl

Download URL gevent-1.2a1-cp27-cp27m-win_amd64.whl
Size 633.4 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
78bac3be862e7fe04fa699fe79357ce4d48eb151df5d3725dc693c089b6e9e2c
BLAKE2b-256 checksum
How to use checksums
7cff151d3d68ebf4af02d1b114ef8888659a52fafcbae773a45635652a47e1ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp27-cp27m-win32.whl

Download URL gevent-1.2a1-cp27-cp27m-win32.whl
Size 605.9 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
8ad884d69a365860c857ca3f06ebd64a126c7a50d2310c891c60e2f51470b1b9
BLAKE2b-256 checksum
How to use checksums
7bf6c45c4ab6e5d5b4fdcf98ad37ecc8dacdd1f84d30ea8829806b9d1bd79684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp27-cp27m-manylinux1_x86_64.whl

Download URL gevent-1.2a1-cp27-cp27m-manylinux1_x86_64.whl
Size 1.6 MB
Tags CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
7e055e686049e6efa513075555e78ee207c63d44321f1f3c661797fea4a065e9
BLAKE2b-256 checksum
How to use checksums
68288cb2d64655333c7ca9fac437b4ec5a32542d97ff85bc82067dca38b7baaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gevent-1.2a1-cp27-cp27m-macosx_10_6_intel.whl

Download URL gevent-1.2a1-cp27-cp27m-macosx_10_6_intel.whl
Size 1.1 MB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
428edaa53e8d104a4c0996ce848af5b681ad6a7664104dd356b0436dedd6ca00
BLAKE2b-256 checksum
How to use checksums
c9c490b681574442bd9fa6bce758ff2dee658ed41c5b84c1038795057b89eee2
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.2a1 This release

25 release files

1.1.2

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