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 or libuv.

  • 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 was written by Denis Bilenko.

Since version 1.1, gevent is maintained by 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.

Get gevent

gevent runs on Python >= 2.7, Python >= 3.4, or PyPy >= 5.5 (including PyPy2 and PyPy3). 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 cffi 'cython>=0.27' 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:

(env) $ pip install -e .
(env) $ cd src/greentest
(env) $ python ./testrunner.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
python testrunner.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

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

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-1.3b2.tar.gz (4.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gevent-1.3b2-pp260-pypy_41-macosx_10_13_x86_64.whl (688.4 kB view details)

Uploaded PyPymacOS 10.13+ x86-64

gevent-1.3b2-pp259-pypy_41-win32.whl (663.4 kB view details)

Uploaded PyPyWindows x86

gevent-1.3b2-cp37-cp37m-macosx_10_9_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

gevent-1.3b2-cp36-cp36m-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.6mWindows x86-64

gevent-1.3b2-cp36-cp36m-win32.whl (1.9 MB view details)

Uploaded CPython 3.6mWindows x86

gevent-1.3b2-cp36-cp36m-manylinux1_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.6m

gevent-1.3b2-cp36-cp36m-macosx_10_6_intel.whl (3.1 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ Intel (x86-64, i386)

gevent-1.3b2-cp35-cp35m-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.5mWindows x86-64

gevent-1.3b2-cp35-cp35m-win32.whl (1.9 MB view details)

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5m

gevent-1.3b2-cp35-cp35m-macosx_10_6_intel.whl (3.1 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ Intel (x86-64, i386)

gevent-1.3b2-cp34-cp34m-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.4mWindows x86-64

gevent-1.3b2-cp34-cp34m-win32.whl (2.0 MB view details)

Uploaded CPython 3.4mWindows x86

gevent-1.3b2-cp34-cp34m-manylinux1_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.4m

gevent-1.3b2-cp34-cp34m-macosx_10_6_intel.whl (3.1 MB view details)

Uploaded CPython 3.4mmacOS 10.6+ Intel (x86-64, i386)

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

Uploaded CPython 2.7mu

gevent-1.3b2-cp27-cp27m-win_amd64.whl (2.1 MB view details)

Uploaded CPython 2.7mWindows x86-64

gevent-1.3b2-cp27-cp27m-win32.whl (2.0 MB view details)

Uploaded CPython 2.7mWindows x86

gevent-1.3b2-cp27-cp27m-manylinux1_x86_64.whl (4.2 MB view details)

Uploaded CPython 2.7m

gevent-1.3b2-cp27-cp27m-macosx_10_9_x86_64.whl (2.2 MB view details)

Uploaded CPython 2.7mmacOS 10.9+ x86-64

File details

Details for the file gevent-1.3b2.tar.gz.

File metadata

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

File hashes

Hashes for gevent-1.3b2.tar.gz
Algorithm Hash digest
SHA256 5228eac9e9db939f880c5aba6c9a570983182a752286469f3e2b31b6e05e665e
MD5 e0dd38897b2c85b04a678f7fdd44a1ca
BLAKE2b-256 65cd3f5ca1f1e045085a2a2db9c0a146eebb1e9104f2a289f093f3e8fe82d82a

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-pp260-pypy_41-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-pp260-pypy_41-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 61d7c3e127537840547279902ccedea314ab09330e37377f641875c04984e6db
MD5 96899b492b3e0fe98f2e23b1359c7294
BLAKE2b-256 4415d2d949e603b1f4758ef8625df4385f067fc714fc18c9734c52064679cd24

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-pp259-pypy_41-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-pp259-pypy_41-win32.whl
Algorithm Hash digest
SHA256 33a19402812976d45b82bab1d93c90a8f51eab6786140bb92590db7be8647e56
MD5 14ce4347676430bf18d2c9b28073e57d
BLAKE2b-256 7a9fd2bd6d23e5334337b9abef286b0bda04f290b2cac7e635375a3d43da7bbe

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f564484fba9c1eedff0318e8bb647577bca69ea207b199403f9d9119c7333528
MD5 c0c1186f7d791fd076c66d6398423877
BLAKE2b-256 7b68de53733015dfea80e7f60a792cb5c1e85ce161cbcb648417526bcc1f68e5

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3fd9489bea7b19b9857df73630ced4e7e0bd2f0ade78dcbfd73563301f5c4e9f
MD5 3588470a139446459086660639415f40
BLAKE2b-256 309d66675fff9181548d5753fb7fef563fbde50da3efc4d4adccc1375a2da187

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 42df288abe8e0f042eccf76d9b6a7deb9e22216c71a021bba14c062e0cbc3fb5
MD5 d89e9de0eed6179054e954fe21dc0a6d
BLAKE2b-256 15f1429d0fb59ecd42f04b3b447f15036a58213fb3d10b1d8b336ce0b1745556

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 55c11d28b39f0307339924e110d13f3270d4dbc635cfb4db942920e60e3421ef
MD5 0df33c8b9ee2ed98ae3399a703d39850
BLAKE2b-256 21b1690a73399e5585523429d5cdfb939f3a91b5c337d820cac2107e74261553

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 ffacc298e9c6b8a45c811465293837e94d3644717c488b4e7b339189affeb39a
MD5 c4a0b5754445faf81fecdb06de475b91
BLAKE2b-256 d59738c53b09cb4420f9cec1a9bcc1e22dc22739e7b8e85eb0c4338737c659dd

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 169371e9b424c19b3a51438e9d3444954c3b272d71ee0be7dee52e1a00bb86f1
MD5 9d6e8ee12ad5e3044d6396ddb7698ac3
BLAKE2b-256 6eab5800e8e8e6ada7b80b7523640289e913bff200b6c2e9c4fcc3477301e360

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 6aa885f1029a02708047e180f581b1ff135a6fcf938c4b78776917e1051c8f67
MD5 741d4cbe7ae79f8b98cc5eb63f984574
BLAKE2b-256 9e8274720b2a4cef50f349ad74ea4463e861f07155f5fb1539a89a40581cf9f4

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9fe8ba0909cf31a2d963e18be7bf199c6141f718429b8c559d352b7bd4b1cb6d
MD5 924dfe850ba56777cc20fb6d53ce2011
BLAKE2b-256 063aa814ffd7453ac78bbca245abf3b99ff16d0c0f20f40dc0abb417610018ea

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 5fb53489fa4640eb92a9ca03c75a6091b3f6b72a4adf1ccfc79713d01b0664e5
MD5 4a8b49645b7ad6c9df488a7fb2d4fc9f
BLAKE2b-256 5aad6e451ff294c6da9b03cd957ec3129bf27b5722bb591e0569e8cbb81e35d9

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 979dccd3402a839f686819d12aeabb0d793e4be7fd8d008de4daa5d8747c2c32
MD5 8b745f3dbe3974c5f5a2c4e7e2e22631
BLAKE2b-256 36674869cabf643c9b503630fe753b36116e84a99f863aeb78528b490bc2e751

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 6933811dba662deb72320f856d14a21175f787f2f7a0f6639eee0406e5e076fb
MD5 e2c9868db9797f1c98c878483eeae43c
BLAKE2b-256 10a8e207b8635d48629b3cbc88553b169a314d2099711e720046bbde5f7343de

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 42b6e660626ceae7f91b2c289ea207f7abfc8aeb3c80cd2753518201051eb4d3
MD5 125ff2b6804a9c0c077511b6a5a3b45e
BLAKE2b-256 9e6a9bdafe7adb764217e8ed0b9be184396f8bd4eb517fff94830e84a0423a38

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 f2cccca68386d20d5a6df3b15c164fd2092262f1bea9a3ae373a7d2ab4bd92c6
MD5 41ec1ec201a0f6015110ff85e6db940d
BLAKE2b-256 5a92bf7cfdc652bdef7e67df23c470e4e88379da4d05aa7b26c7868a6beca06c

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1a4bbe1a63594bb39a5946eabdd5211daf648d67216c66349c1fa000592541bf
MD5 37221071a13416e37987f1e51fec10f4
BLAKE2b-256 9202a9090dd20cc935a9b7fc05c470246f724b0d99745078cf5d5c919208389d

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 89c2f7ca9cc08dfd19ec77e76195c8011b08ed49ecfb4f4420141475047eb131
MD5 c78dc0b5d8da0f8ff112fa6cdd966963
BLAKE2b-256 3a301143622b21cadb7a9821f7e61ff2a744461eefafead7cc144ca7d06a9a02

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 6ad1bb7087292550a9285b32b4fcb024b034fde00a1268a6c01593ba84bb3fc2
MD5 7cd7d325b424e8beb169877cf83d7de5
BLAKE2b-256 9e51907438455f2ca3d62330927cea2c9235c31253a7f917951fe499a0f152b2

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fe72cb7161e6be161c5a58f657f1d448282a950c247fa34b14882e16ee52a213
MD5 a4b6ff372be8929f1278513caf795466
BLAKE2b-256 04c530602d5a5d19f7c695bf6e46e4390abfc1918a5af6459497fc76d0448e5e

See more details on using hashes here.

File details

Details for the file gevent-1.3b2-cp27-cp27m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3b2-cp27-cp27m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 55f485452d94acda2b883a539445e1ffbffed83449b336f76a441c36925c0fe2
MD5 80e7397cc2d1d47fa5b8746cb24238bf
BLAKE2b-256 90eb3253b6f35f0824fec7fa234ac987aade1b2c6ea93bdc7650c26e5375886a

See more details on using hashes here.

Supported by

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