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

Get gevent

Install Python 2.6, 2.7, 3.3 or 3.4 along with the greenlet extension (Python 3.5 has preliminary support). Or install PyPy 4.0.1 or above (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).

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 cffi tox 'cython>=0.23.4' git+git://github.com/gevent/gevent.git#egg=gevent

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

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.1rc3.tar.gz (1.8 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.1rc3.win-amd64-py3.5.exe (512.6 kB view details)

Uploaded Source

gevent-1.1rc3.win-amd64-py3.4.exe (599.8 kB view details)

Uploaded Source

gevent-1.1rc3.win-amd64-py3.3.exe (600.7 kB view details)

Uploaded Source

gevent-1.1rc3.win-amd64-py2.7.exe (603.6 kB view details)

Uploaded Source

gevent-1.1rc3.win32-py3.5.exe (471.8 kB view details)

Uploaded Source

gevent-1.1rc3.win32-py3.4.exe (541.6 kB view details)

Uploaded Source

gevent-1.1rc3.win32-py3.3.exe (541.4 kB view details)

Uploaded Source

gevent-1.1rc3.win32-py2.7.exe (545.1 kB view details)

Uploaded Source

gevent-1.1rc3-py3.5-macosx-10.6-intel.egg (458.5 kB view details)

Uploaded Egg

gevent-1.1rc3-py3.4-macosx-10.6-intel.egg (459.9 kB view details)

Uploaded Egg

gevent-1.1rc3-py3.3-macosx-10.11-x86_64.egg (454.4 kB view details)

Uploaded Egg

gevent-1.1rc3-py2.7-macosx-10.6-intel.egg (457.1 kB view details)

Uploaded Egg

gevent-1.1rc3-py2.6-macosx-10.11-intel.egg (710.9 kB view details)

Uploaded Egg

gevent-1.1rc3-pp27-none-macosx_10_11_x86_64.whl (368.8 kB view details)

Uploaded PyPymacOS 10.11+ x86-64

gevent-1.1rc3-cp35-none-win_amd64.whl (372.4 kB view details)

Uploaded CPython 3.5Windows x86-64

gevent-1.1rc3-cp35-none-win32.whl (338.8 kB view details)

Uploaded CPython 3.5Windows x86

gevent-1.1rc3-cp35-cp35m-macosx_10_6_intel.whl (462.9 kB view details)

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

gevent-1.1rc3-cp34-none-win_amd64.whl (373.5 kB view details)

Uploaded CPython 3.4Windows x86-64

gevent-1.1rc3-cp34-none-win32.whl (346.6 kB view details)

Uploaded CPython 3.4Windows x86

gevent-1.1rc3-cp34-cp34m-macosx_10_6_intel.whl (464.3 kB view details)

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

gevent-1.1rc3-cp33-none-win_amd64.whl (374.5 kB view details)

Uploaded CPython 3.3Windows x86-64

gevent-1.1rc3-cp33-none-win32.whl (346.4 kB view details)

Uploaded CPython 3.3Windows x86

gevent-1.1rc3-cp33-cp33m-macosx_10_11_x86_64.whl (458.9 kB view details)

Uploaded CPython 3.3mmacOS 10.11+ x86-64

gevent-1.1rc3-cp27-none-win_amd64.whl (375.8 kB view details)

Uploaded CPython 2.7Windows x86-64

gevent-1.1rc3-cp27-none-win32.whl (345.0 kB view details)

Uploaded CPython 2.7Windows x86

gevent-1.1rc3-cp27-none-macosx_10_6_intel.whl (461.6 kB view details)

Uploaded CPython 2.7macOS 10.6+ Intel (x86-64, i386)

gevent-1.1rc3-cp26-none-macosx_10_11_intel.whl (715.3 kB view details)

Uploaded CPython 2.6macOS 10.11+ Intel (x86-64, i386)

File details

Details for the file gevent-1.1rc3.tar.gz.

File metadata

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

File hashes

Hashes for gevent-1.1rc3.tar.gz
Algorithm Hash digest
SHA256 cb94ffdf4bd147261b6b72423d208075c32c5989c2a55473d0c99c0cdb41e19d
MD5 cc96707c13ce2014dad386784fa105f5
BLAKE2b-256 6ddcaf0e8e0e77b4b0a058414bb2b30bb0693a802bd12c52ac663194388e335d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc3.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 d1d029c82114b98fc245448269685968f6325651ed3373e2c6a723c3f76008c0
MD5 4e883d39379692b2a39b2e84e9600981
BLAKE2b-256 c2192dbeb37622986976349b8afe4926c2980c3ca20bd3fe8b02bed89cc1e86e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc3.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 f8a078f818dffb0f69797e66eb49c4e2ae7904a74a33e77f11f7632bedf0e645
MD5 9b6fdf93e17dd530026fc143089851db
BLAKE2b-256 f652f04a40642980dac7426b81ffdc2e5004d703201550c235fd4a822c63e607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc3.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 06686c8b2cebcb0dc4e7aa124a14037b2dd34a78a05a61a1e0a33c266f40818b
MD5 65e67e158d7f8448cda8572ceb79ec2f
BLAKE2b-256 35ec89af91f605a0fea6456de3d82bf97a9e2c6fa3d4a08348b4c081ca5d018b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc3.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 bbfeb570c528a46b1186d1fc2d60e1bbf22146a5d14b832f441a6d9f014f8546
MD5 715b387e7e749ba637655be4a68ea25c
BLAKE2b-256 79c83639063cae789d83fe3532a9c83b8bc81862ea788b4b07236e8b46510cff

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3.win32-py3.5.exe.

File metadata

File hashes

Hashes for gevent-1.1rc3.win32-py3.5.exe
Algorithm Hash digest
SHA256 364ddcdfa33f8cb1148a0c282861d7b8ff27b7f3507b81e22a1b2d0042fb068d
MD5 eb65d3b427806648677b99752ffdc8d3
BLAKE2b-256 bd7bc09686eec3177905dacb15e49ec48db9951225afff66d66b0726e4f6b231

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3.win32-py3.4.exe.

File metadata

File hashes

Hashes for gevent-1.1rc3.win32-py3.4.exe
Algorithm Hash digest
SHA256 7ea1e77c5c78e5b2c5f10c4a4e398c92525179b3a4f23205f688ce80d6251949
MD5 2b3e208f8c3c99886b3c1090760dffec
BLAKE2b-256 e17592a99e53c1728d66f6dc71b41312ff11cba298d6d0e5c2b7faf3c5053fae

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3.win32-py3.3.exe.

File metadata

File hashes

Hashes for gevent-1.1rc3.win32-py3.3.exe
Algorithm Hash digest
SHA256 0a18db9f59e40105ccb1c29775d7dce8a5f7bf553f081b787bd855804c62da4d
MD5 b5b5440cef0547d14c227d591f257f90
BLAKE2b-256 70b3305e2c4e0d343357d21e1ab543e7504fb8940fbcd35d9acfd6352c92f44a

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3.win32-py2.7.exe.

File metadata

File hashes

Hashes for gevent-1.1rc3.win32-py2.7.exe
Algorithm Hash digest
SHA256 04d207f40036b967e8e6710dcff409d9a40172e8ff6c02e2a77245bf15499a29
MD5 0bc66e3fa7f29bf1e22b7610e46bf1c4
BLAKE2b-256 5cc8f10f458170e6199ed37fdbddd2d977b5ac1e960258a95f87ea1a86a3ef43

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-py3.5-macosx-10.6-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1rc3-py3.5-macosx-10.6-intel.egg
Algorithm Hash digest
SHA256 ece5b5c6d9526c3d76037c492a21202f1a26521ee31c27defcf597113588c369
MD5 5929133c50f8a2b872ee243b143de6d5
BLAKE2b-256 fdd74db991ff727b42562b9a47f09dd45c0aa47e7037b45ea531db095d834842

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-py3.4-macosx-10.6-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1rc3-py3.4-macosx-10.6-intel.egg
Algorithm Hash digest
SHA256 6b3b5447a04cca92469d628717141988c7d62a55cc30a7e699e272e07d6781da
MD5 16299f341aa540a3701c9b97447edf4f
BLAKE2b-256 b05497a5c05c44756d8a3c1376882d168b99206017f7c5bc04a889ea6f7ea74d

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-py3.3-macosx-10.11-x86_64.egg.

File metadata

File hashes

Hashes for gevent-1.1rc3-py3.3-macosx-10.11-x86_64.egg
Algorithm Hash digest
SHA256 7923d2b9e9e694d8baa184e49746b1d660d5fe6e5011a49300e1f8f841a3827c
MD5 15c2012c9ecfb9cf65b60f3c4fd34bd4
BLAKE2b-256 2f1237e74bc153f0e281e8c753fa011348b0425a42e30ae8ee64655d2fb21829

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc3-py2.7-macosx-10.6-intel.egg
Algorithm Hash digest
SHA256 a54bef7b1f68992a292becdf5e7a72c52eb8be43543c6c44a434d3bd75e957de
MD5 f961ca7f1a9393bdc4ae9c1525143681
BLAKE2b-256 4f4115cbbb9c5de3170730ee55f244510f25e069b6c31a9fa5669370e2babf13

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-py2.6-macosx-10.11-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1rc3-py2.6-macosx-10.11-intel.egg
Algorithm Hash digest
SHA256 48123fd27f18560cd04dc34a71175edc025df1ccf05660eb3d62871e0e62cb4f
MD5 8218b1def8e23219c4cb7e51d41ddc0c
BLAKE2b-256 596300641030de91aeeda602e8c1466d32a9b960441804dd36c987fb80c70255

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-pp27-none-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-pp27-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 c5ab08a8a6b07de7a275ac62980b99c21d41fd8bffca624a00dfb8181f368369
MD5 2f5aeddb7179c21db673fcba3ffd7c27
BLAKE2b-256 fd1fa8705262a24067c76b779b95bf810f882d79d72a64c899bd73425303c6f9

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 84952422fe25ce56034cae15b16e0d2a447be5b42f1635c29ff9466d46056e74
MD5 eaa9d7524ecc2bedcd30874a64cd3162
BLAKE2b-256 3f652935132514a62bfbd6e67456418eca67fc3371a9e6f04d0483542192f76b

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp35-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp35-none-win32.whl
Algorithm Hash digest
SHA256 360d63d9d752d0895382f542dfeaf9d06e1f21eaf9c64fc2f94e8d945d2aab59
MD5 f2470549252a3e3e10b9ba24540f503e
BLAKE2b-256 e12f58219de768ab97124e5a36233a55a200eac63f98be0da6f7faf0cf9371b1

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 e7c297da6b9857497913a9e5352c1ed3818a020e23503ea6be81ce0ed4ac7d35
MD5 4607682425254287b273bcbfb94703b9
BLAKE2b-256 e9f08f558b42ef73b277a458d37042e067e98593c6a7f6a82b56e8271fe98557

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 dcfb3ddd2f620fff7d5c60ecb311d7d87a8d7cbc4c3d78be18ff0b5978df30c6
MD5 62e9c683a9bd641b8b3f7578fcff56ce
BLAKE2b-256 d740f84127d899723ac113721136df2fad1bad8d5efafce91d97529ba68ce130

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp34-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp34-none-win32.whl
Algorithm Hash digest
SHA256 95189d2c5fb99ff9460a45736502dcf1e4c5cdc91f8659be4f957fcf8b0aefbc
MD5 21635b8fbb62d247e57c0aaa9adf39b5
BLAKE2b-256 0e206e96c1b60cb85e9915bdad2cd4d60ad0f24be88244d49da3ee687ec8b85f

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 8f105b72749e518a5f770ec4162bd95bb11505677fe68440aa987f09c9feb534
MD5 c6bbd16363800b956a03fec9a9b3bf5e
BLAKE2b-256 b68a9621c8e5031508498a4c67f6d8f6be7e00c309b811c22c33f63d43b590c1

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 c865346c934bfa9a22b6eac3a1936cfcd75a44e6b1370b6647d274c653c9f40a
MD5 0b38ff7b4547d3edc066f95b51de2d17
BLAKE2b-256 fdd1a7e0da5638e3d3ae05bf74597f0ac6132ae8b4e2305b170326ab43bae882

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp33-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp33-none-win32.whl
Algorithm Hash digest
SHA256 1ef8c9b68f1854f5897e518314c724bc0c73d99639a8208e774da29334e18149
MD5 fff9b5379f403edf4a7f5447eda25c75
BLAKE2b-256 af6f8b44e20cc85986803a11353e2fc387b7fda1154db5eb1280da31664daecf

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp33-cp33m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp33-cp33m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 025790256f1efe6a3474c76b313fe3fe22bac97a9cf2d78cd1a2ed562e0e17f4
MD5 4fa72618a8edda5ccde986eff031125b
BLAKE2b-256 5315b35af331b195841747f71eacccdc339e62301aea4fafbe9b4b1ffaad76b1

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 0aa88ef62b560cd0b1daecb30712c96cc5226f0141a00854c06b63c5760ad260
MD5 d71dccd85c890bb17623f288eccf0f49
BLAKE2b-256 ae3f179537ee22ef66e73744bfc971b3c6762adc6a44f04a6a0a4a279173e30a

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp27-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp27-none-win32.whl
Algorithm Hash digest
SHA256 9f6e7f4c5ad83dcda1a683058b896be6cccff7cadaef55c7182e9a4afff76a2e
MD5 efa15668198474bc0895edc96d535536
BLAKE2b-256 d732dc2d0bd05e8df45e1a2e7d4ef744a6a8e4ce3435749babb163437286fe3c

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp27-none-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp27-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 36475b97b21425a85f5793cd06fa42ed1deb90269adfe4f8bad30e34a9ce7fe3
MD5 d0a094961ca458c8af2462175217c509
BLAKE2b-256 3c9993bacbc9a80b4fc4121504dd4d540381078797f8fb4e7a449378b67b762f

See more details on using hashes here.

File details

Details for the file gevent-1.1rc3-cp26-none-macosx_10_11_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc3-cp26-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 c65c79a6561d609ef4acf5b44d6c2f1cdb4c2253576e7e3065bb2df9666b9677
MD5 e8b2e58314202da59298e253cdf53910
BLAKE2b-256 93b31552772fb025e0ad0de93953d510c75166da843645935530da46b080822d

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