Skip to main content

Coroutine-based network library

Project description

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

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

Important: gevent 1.1.x will be the last series of gevent releases to support Python 2.6. The next major release 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

Project details


Release history Release notifications | RSS feed

This version

1.1.0

Download files

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

Source Distribution

gevent-1.1.0.tar.gz (2.0 MB view details)

Uploaded Source

Built Distributions

gevent-1.1.0.win-amd64-py3.5.exe (523.1 kB view details)

Uploaded Source

gevent-1.1.0.win-amd64-py3.4.exe (610.3 kB view details)

Uploaded Source

gevent-1.1.0.win-amd64-py3.3.exe (611.1 kB view details)

Uploaded Source

gevent-1.1.0.win-amd64-py2.7.exe (614.1 kB view details)

Uploaded Source

gevent-1.1.0.win32-py3.5.exe (482.3 kB view details)

Uploaded Source

gevent-1.1.0.win32-py3.4.exe (552.1 kB view details)

Uploaded Source

gevent-1.1.0.win32-py3.3.exe (551.9 kB view details)

Uploaded Source

gevent-1.1.0.win32-py2.7.exe (555.6 kB view details)

Uploaded Source

gevent-1.1.0-py2.7-macosx-10.6-intel.egg (671.3 kB view details)

Uploaded Source

gevent-1.1.0-pp250-pypy_41-macosx_10_11_x86_64.whl (378.0 kB view details)

Uploaded PyPy macOS 10.11+ x86-64

gevent-1.1.0-pp240-pp240u-macosx_10_11_x86_64.whl (379.5 kB view details)

Uploaded PyPy macOS 10.11+ x86-64

gevent-1.1.0-cp35-cp35m-win_amd64.whl (382.0 kB view details)

Uploaded CPython 3.5m Windows x86-64

gevent-1.1.0-cp35-cp35m-win32.whl (348.3 kB view details)

Uploaded CPython 3.5m Windows x86

gevent-1.1.0-cp35-cp35m-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.5m

gevent-1.1.0-cp35-cp35m-macosx_10_6_intel.whl (471.3 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

gevent-1.1.0-cp34-cp34m-win_amd64.whl (383.2 kB view details)

Uploaded CPython 3.4m Windows x86-64

gevent-1.1.0-cp34-cp34m-win32.whl (356.1 kB view details)

Uploaded CPython 3.4m Windows x86

gevent-1.1.0-cp34-cp34m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.4m

gevent-1.1.0-cp34-cp34m-macosx_10_6_intel.whl (472.4 kB view details)

Uploaded CPython 3.4m macOS 10.6+ intel

gevent-1.1.0-cp33-cp33m-win_amd64.whl (383.9 kB view details)

Uploaded CPython 3.3m Windows x86-64

gevent-1.1.0-cp33-cp33m-win32.whl (355.9 kB view details)

Uploaded CPython 3.3m Windows x86

gevent-1.1.0-cp33-cp33m-macosx_10_11_x86_64.whl (466.7 kB view details)

Uploaded CPython 3.3m macOS 10.11+ x86-64

gevent-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 2.7mu

gevent-1.1.0-cp27-cp27m-win_amd64.whl (385.5 kB view details)

Uploaded CPython 2.7m Windows x86-64

gevent-1.1.0-cp27-cp27m-win32.whl (354.5 kB view details)

Uploaded CPython 2.7m Windows x86

gevent-1.1.0-cp27-cp27m-macosx_10_6_intel.whl (469.4 kB view details)

Uploaded CPython 2.7m macOS 10.6+ intel

gevent-1.1.0-cp26-cp26m-macosx_10_11_intel.whl (722.0 kB view details)

Uploaded CPython 2.6m macOS 10.11+ intel

File details

Details for the file gevent-1.1.0.tar.gz.

File metadata

  • Download URL: gevent-1.1.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gevent-1.1.0.tar.gz
Algorithm Hash digest
SHA256 34f7a5eca1326affe149eaa5467220d89002facd338028d2340868015407ae75
MD5 24b3e44134fbff250526f3b949763f99
BLAKE2b-256 0f904c77e7bace6ce72123bcadbf385ef466c7237846fbef03f786eaad4f84e6

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win-amd64-py3.5.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 96bfb403d5b8efd833b6081bef2154d2af87b18db0aadcd9b95d985c53439e65
MD5 1bfc40279d2e8235e89baf8db8fb381f
BLAKE2b-256 7a746856f78bfd5d03a528a005fa74045b355a4142d2acf6bcddcb5c7a88ad0a

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win-amd64-py3.4.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 d79470cbfbc0e05cb88c5e4b3568f227749b9c10024f7a48c84b37cce94f9c67
MD5 9950fb27732eab373b458b8a4919a517
BLAKE2b-256 a421f21e5f48be95de03c27aa13eed564e44eac1513ef2cc0647421e07a61855

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win-amd64-py3.3.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 4d2e8273e20b18f8eedc65d8384ac9554aa40174c80fa7471d1d237d791ca93a
MD5 3429b482a5e79b738b7110f4452b0476
BLAKE2b-256 4e97e76f93a611e7aeb76e962674dd9af9cbfdbcc164c6e93941f26c4527a578

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 01bbb8c904b313d83a43b2aef4f7453ca9723fe840cfdee6205ad21f0d85b34c
MD5 b8d25417bd17457f8f1eec345fe72108
BLAKE2b-256 be5c1515113f15c210a5e9047dd28ad4047c29ec7e9ca6299418c81f84ce6ab1

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win32-py3.5.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win32-py3.5.exe
Algorithm Hash digest
SHA256 9330fec5a049ca48bf8f429a469a96586e3567a61016e3236b27e2633e26295f
MD5 39ee6f3ca7cb62224595b2a7af42f623
BLAKE2b-256 a9be282aaa1fce35fc39cb4d92b449a769c702741b280a17ddc8197e5a44d87e

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win32-py3.4.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win32-py3.4.exe
Algorithm Hash digest
SHA256 29aa5abfa92a1b7497e208e073d8cceea71e9add6138c928865f9fbd5bb35390
MD5 ebe3dffeeddaf9c35ea7133325d58599
BLAKE2b-256 d5cbd145c6c6d0ee87583c440d0ba697bcb4ba9b1450a1d9b40cc8167458b482

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win32-py3.3.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win32-py3.3.exe
Algorithm Hash digest
SHA256 0a9a2afdfc2226ec783cbbedd8681cfb0f39fc1504d6c591520ae5a6591b6732
MD5 26c1a55495cb4035356f4d82461c3775
BLAKE2b-256 6a74320d758717c274dddd0043c91b7a45213a00edbe1a4012a5cf98e1652440

See more details on using hashes here.

File details

Details for the file gevent-1.1.0.win32-py2.7.exe.

File metadata

File hashes

Hashes for gevent-1.1.0.win32-py2.7.exe
Algorithm Hash digest
SHA256 ee86e890af6e57640fd1474cbee1e68aca12d8c7989b10de057f77da34c14a81
MD5 90e8b6ab1a3d0956fc94b62c00898a20
BLAKE2b-256 5d7c2c27c3d5603b01e5e1be3161342c66c9ffad6e6dc717165a2681e481c95f

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-py2.7-macosx-10.6-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1.0-py2.7-macosx-10.6-intel.egg
Algorithm Hash digest
SHA256 675afbf760ff34feb343b66fcf46ea2662f96018543526e7dc7530e73854f178
MD5 a33f61cd9c98ae7611679c72c33123a1
BLAKE2b-256 8ece21a226300d50801b3ab4a5aeff8f8a97e03d5557f78a16034ec3e98649e9

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-pp250-pypy_41-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-pp250-pypy_41-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 57855ea3d583eace62064b05072ce70882b1586d1d15211a542539effe16a9d7
MD5 dcb5ab921b0e390dadeb690cf16c5b72
BLAKE2b-256 7bada7878bfb71f5288ba14e8d293ef68d0dd636ad5bafaf0396f2a12f6167fa

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-pp240-pp240u-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-pp240-pp240u-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 d40b1f09a7f7f484ff209933fc624ef886b75c6f6ba5fa62ee13e0f7308ea06f
MD5 7b75f099f1d899b4707840aee690d80b
BLAKE2b-256 44be2a267b698502e52d8c434c005da48ace9f4c80b559ed6f30ab18a4a5beb7

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 c143f6d8719a92bc8d56a0ec288f6c69a36f7a7012e20d2dabb565ac0344fa0c
MD5 875e7cf944d554cbc57603af14612f18
BLAKE2b-256 6085b6783294cd5c023ac306618b2545d5bc17cff4478d89147d6d6e2652b748

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 af93dd804d4f88951a6754c39593d853f2856084754a4aeea44a178c60ff5c93
MD5 0dc7ee2ca5ba896693bbc258ea6d74a1
BLAKE2b-256 fcc1ee2f4fa57a46b2a27aef26de02899fb893f4c063b0a30fbd966f0c9c82a6

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d7f874a8f02d216d5b64a3ac519f83c86d46f439400d9a26d1e0fdbb49c6cdbd
MD5 a6cc47ddde7cac111caadb3ee886a951
BLAKE2b-256 d631d297b556f7620a5a2abbf5d036e726d12bf79191622465ad504182897ae3

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 04d4865352e8d2842e8e77cf6da8e03a9a60ea2ba7cbe44e3baacbdf33e4a80c
MD5 c94a8db76d933b6762dfd14e435ee51f
BLAKE2b-256 242be46f81d4430b1a09524693ab56b552ffb928cf25a8a86cab2cb363a1f3ba

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 d3113da9e3ec61849ee96879ceea9451a21581df28b723e97da05c8454c9166a
MD5 6efe553d2e9c2bc3f201b20006d0c679
BLAKE2b-256 569b071742caffca38aa25afcd2809f7e8bb389e255cb9bb909759ef5a1995f4

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 49a0bf297c01fb3b4949feb10a8c610af06d1bc062194a84697a4392657f0856
MD5 73bc279253f9893ea682e45cf354e29e
BLAKE2b-256 d846aeca56c8ef12080c72d968d0412666131c0d503d69507185720cc9e5cdad

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7dd7fce88d833d9a48040f12c7eda05e434d034e0c999c7bbf93e7e6037ac398
MD5 c3c594e905ffa0d520d542311f1f268d
BLAKE2b-256 93c2b9ba5a193699a620e99d03fc3440414ee37c3b1cc01a48c56734480ef170

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 74c97d01e87cab2374e5a5856a026c4124b048e80f6c80091d30a2a8b4726671
MD5 02d01c4f64c90f4dfdf347c9ab25eeac
BLAKE2b-256 4f69d7a91cf946c5adeee23f404463f6c373812401de1b6035d3725b9d7a459e

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp33-cp33m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 1069562e006031eaa403b0ca661af30dc501ddfefcf8abe7c7273a9fa214bfa7
MD5 ff6f51cd02f58cda5d46f2345209c769
BLAKE2b-256 d0695c370a76713baf7c2833657d76197b1b0ebd520d3205162e5b267214d454

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp33-cp33m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 058f1467bd5c9b96a2e044db7e44451ec729e649601f8c633dbd8a5df2ce565d
MD5 3d571b73c3bfac561d0896ea14a328d5
BLAKE2b-256 ae1a955b0d7cd98e56163585c2349b467f00bbf329e0f2c7f2350511bf207b68

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp33-cp33m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp33-cp33m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 dc1a127d1b5d08ab278983c16f78f1300c0a078d6851f7bb760376a166397c96
MD5 faf843319c1af76ce20379c83073d6a7
BLAKE2b-256 6e978bf087b196398a2e69b047e45abf2485997bb168b253376ebb7ff7123ad2

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8f5b91ad942febacb5815507649c21c07c894e271cba0821736677ddc5dc9757
MD5 20f785fba267c5b1ef49eff8f5dcf49b
BLAKE2b-256 bf2089166d1a4b9d6f320ba4097237b5192f857703f31d7611a20b15e451a16e

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 1d2660964a702f4f9bf0c0fe390874fe5ba5e46705e2cfde743cc269d1463700
MD5 8502eec784177cb027b7d19bb81b1bcd
BLAKE2b-256 8e31f7de6bfbb129ba1d7a5a2d439bb07e863915721053fde5497b66e52fc8c1

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 356b37b462af52d831051771b7e7c0476c7d58e98b1f456525c15be0996e7cfb
MD5 786563130a0db79a799f5bccaffd2629
BLAKE2b-256 4472fb131cdd703e673011a99b2f66c78dfdd126be4d4f1afc6307425cbf145b

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 5c2b22c80d6cb99939e0c786952b060b855c3f98f72d3e0f1485e7fc1a2dc863
MD5 e8174e8f9fc35c8254057175ce79b8cd
BLAKE2b-256 4fa27e4e7c783d4557877e442efed1a4ce5930cdd2a35a069acd7989c92acb02

See more details on using hashes here.

File details

Details for the file gevent-1.1.0-cp26-cp26m-macosx_10_11_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1.0-cp26-cp26m-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 06de0b038f263d1f46c5d9038ffc26b9bd6084d98c5c3b281e75a2717e020ba1
MD5 82a7a9b4c4c3b2f62e5ba8ae50e41298
BLAKE2b-256 97b3ac1bc71adbaaf107b5bf5f88bf5b2fc66b998f9529dd22a667153d5eac91

See more details on using hashes here.

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