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

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

While gevent v1.1 is not yet released, it has release candidates which are currently considered quite stable, with many bugfixes over v1.0. v1.1 is also necessary if you are running OS X 10.11 and/or Python 3 or PyPy. To install one of these release candidates, you can run:

pip install --pre gevent

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 '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=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.1rc4.tar.gz (1.9 MB view details)

Uploaded Source

Built Distributions

gevent-1.1rc4.win-amd64-py3.5.exe (517.9 kB view details)

Uploaded Source

gevent-1.1rc4.win-amd64-py3.4.exe (605.1 kB view details)

Uploaded Source

gevent-1.1rc4.win-amd64-py3.3.exe (606.0 kB view details)

Uploaded Source

gevent-1.1rc4.win-amd64-py2.7.exe (608.9 kB view details)

Uploaded Source

gevent-1.1rc4.win32-py3.5.exe (477.1 kB view details)

Uploaded Source

gevent-1.1rc4.win32-py3.4.exe (547.0 kB view details)

Uploaded Source

gevent-1.1rc4.win32-py3.3.exe (546.8 kB view details)

Uploaded Source

gevent-1.1rc4.win32-py2.7.exe (550.4 kB view details)

Uploaded Source

gevent-1.1rc4-pp240-pp240u-macosx_10_11_x86_64.whl (374.6 kB view details)

Uploaded PyPymacOS 10.11+ x86-64

gevent-1.1rc4-cp35-cp35m-win_amd64.whl (376.9 kB view details)

Uploaded CPython 3.5mWindows x86-64

gevent-1.1rc4-cp35-cp35m-win32.whl (343.3 kB view details)

Uploaded CPython 3.5mWindows x86

gevent-1.1rc4-cp35-cp35m-macosx_10_6_intel.whl (466.4 kB view details)

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

gevent-1.1rc4-cp34-cp34m-win_amd64.whl (378.1 kB view details)

Uploaded CPython 3.4mWindows x86-64

gevent-1.1rc4-cp34-cp34m-win32.whl (351.2 kB view details)

Uploaded CPython 3.4mWindows x86

gevent-1.1rc4-cp34-cp34m-macosx_10_6_intel.whl (467.7 kB view details)

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

gevent-1.1rc4-cp33-cp33m-win_amd64.whl (379.0 kB view details)

Uploaded CPython 3.3mWindows x86-64

gevent-1.1rc4-cp33-cp33m-win32.whl (351.0 kB view details)

Uploaded CPython 3.3mWindows x86

gevent-1.1rc4-cp33-cp33m-macosx_10_11_x86_64.whl (427.2 kB view details)

Uploaded CPython 3.3mmacOS 10.11+ x86-64

gevent-1.1rc4-cp27-cp27m-win_amd64.whl (380.4 kB view details)

Uploaded CPython 2.7mWindows x86-64

gevent-1.1rc4-cp27-cp27m-win32.whl (349.6 kB view details)

Uploaded CPython 2.7mWindows x86

gevent-1.1rc4-cp27-cp27m-macosx_10_6_intel.whl (464.8 kB view details)

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

gevent-1.1rc4-cp26-cp26m-macosx_10_11_intel.whl (717.7 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for gevent-1.1rc4.tar.gz
Algorithm Hash digest
SHA256 655ae4075c92e3462a8ecabd069ac3149633167f74a3b03654c92ab6d62b0b4c
MD5 4abe8a99979dd095b145bb2e083dc4ff
BLAKE2b-256 dca04dc1e3da135f8099cb77a7d5de7e19148e6076e698bfcd16b4df57c234d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 dc22c785311e83ef21ef23c6128c40c0301d618f167d8ef4086354244b678d66
MD5 cac0729c3496fb5590a4e2eb13a824e6
BLAKE2b-256 cbcacc06b736361c126efe5d3d4a83c519d1ba27477a3f0317b7b3a769af01fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 23b20029361bedf755def23dba962c5aba25acdaf444c8c3fb2ebc36c0bf80bd
MD5 abc668357d74a9bf6e81daf79f5d9f7b
BLAKE2b-256 b9d8ad42ace02a3610da0c4685efdc8ec7a2ba4d7b848fe09f8befb8104ee275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 15fb4bf76dfda0e35a3dad67dd0196d0959e3f5e1bdb0cc9e81d4337ce9e685d
MD5 06b786460c92bb0bd2c5bf17108199dd
BLAKE2b-256 9dedbd6537a6aaf60d36280dabfbbc4f5935f50af17db881bb60328d2c1c95bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 9f0a3220638f70c9128ab26e5c57560bf4a87d0830356ce87598c5bd121f81ff
MD5 6f10348827ae1a5e904670f5ef6653e4
BLAKE2b-256 e105266f208aa1e8fd794792790de021849020e3e985dc884339347416028963

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win32-py3.5.exe
Algorithm Hash digest
SHA256 191c16bc288dab6d692e244abf9caa394dda5db489df574e8b2c06416fd1beb7
MD5 931edf17a8f9e5ef6affdc7b90aa82a6
BLAKE2b-256 ca5a8af68d9b43bd00545b2dc503d29b12c908c90c870fb17d5db981b10bd107

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win32-py3.4.exe
Algorithm Hash digest
SHA256 6c178f966ea2b2d0721e34fb8548f7f71c653fa5a9093041cfcd2654a1896e04
MD5 ea0574610fa522e64f91bd06e2adc4ff
BLAKE2b-256 8da1661b627d3e151768106698c71c2d9c9c2d73fdc7bb5031d060c870554bec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win32-py3.3.exe
Algorithm Hash digest
SHA256 a22785bc51dd1cdceccd0f6085b2d96fd0b5a3f2dc65cc6a355f102abc9a4365
MD5 d2c4c8780d91e77450a545bc49e960ef
BLAKE2b-256 8b1b59cffb1febf726b3d6b34a8227f53e2fd8b6d82c5a63b7a34c5ba5ad823f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4.win32-py2.7.exe
Algorithm Hash digest
SHA256 c3e994df0f3d0005540ebe874a650f0e4d2d5718aba7ca55211d88ea210b48c1
MD5 eb894a437f9b9cb9ad762d28ec7fc371
BLAKE2b-256 9f07b1f117f4b1370806d2aebfe284e1c57cc3678d2e31cca777278798da1df9

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-pp240-pp240u-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-pp240-pp240u-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 95076a1fef833adc445f08b9268ac66ba663170cc5ede5f251fce46cf4edb606
MD5 4bb059f58c05d9f9135e7a92a7755ca1
BLAKE2b-256 604d47c9836de868c6afdf750d91005b06e73e43f5f8fa70ffdc6847452384bd

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 48c458e505bfe09297e80354b938737cd590eab2b1328ed15d035c7de6f4b7cc
MD5 7324ec89a7c398c8d9fe191476b23b92
BLAKE2b-256 9d1defde2bb2b55d15b4f7ac539671aef7db4fdf8ed11beff16ab512d3a4f1f1

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 a5d157fa3ac832bfaa08b5f83bcd8a9252f7a34cd2968ccc0aaa25d29c9de089
MD5 75ee9355122bb4de6fb0dfe3d8552ab1
BLAKE2b-256 d78980556ba511969ed071c430929f5433d4a72188a21c00c2ea59f6f230a584

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3dd6443d921d8e4798eb60115fd04873e8d544683f53a8ecca556426db9853c4
MD5 9453beb01eb97ccf7f958a7300d0e9d2
BLAKE2b-256 4560591c171d79540e1d188697708be0b021ed68ec9d1cae8dceb2e2b65b63bb

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 977ae9a6d04a0c22f8c0128139d58e42f5f9a6aa4e8b3a537405bb947f022efc
MD5 d767f972cbbd00cf4fcc563e64b15cfd
BLAKE2b-256 5c142186b6353864fe67ea1d41c0403bd8d02049c393704b9801337c31d666b6

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 a67b9f924c4995bae944bd26f214ca5f372b7031d70e2118f9019f5df4c62af5
MD5 1e6109f2855ea70439291cb167523d9e
BLAKE2b-256 0a047141742caf733713349afb20a9d0dfb826dc1aed24b2dde54507b09c89f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 203ec6842e18ec8a02efd542958ca5e31ff03b2d0b25dcae8d8ada742925ff46
MD5 df56525853ed24b3b07d795a0eb226fa
BLAKE2b-256 ee2b6f7b31f6fd3dd17761788ead5cd891603e12a8e22849cd7e3a62c5ad98b3

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp33-cp33m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 1b2e76671a26a555c4839704c086e422ef1d85059579f58d112160ddb0a4ff6d
MD5 f35a0f8e190d0b22449be33958af892d
BLAKE2b-256 19898004c86b2c6744a752a5c7bd89d53af7302ea6cade3e9680869eae2ee280

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp33-cp33m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 f04a646cb6a69876166e2a7233dadf680d4687645e3af2ec19d82cb09697f0e7
MD5 2ad18faa903273c2929cf1019f094518
BLAKE2b-256 5bb3a943d9d4a312c645e02ca85bda9cbdf351acc7c67a4e6fe68b9505dd39d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc4-cp33-cp33m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 01127f8297b7efb02a0c63d850d2e52157a8723cdb7553501668411ca78bdb88
MD5 de5be33807dd1b7ea8969aae10ba5297
BLAKE2b-256 78df5a327852b9026483d04fa4110dd42e11ce34e785259445ad7312e989ed4b

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 9a55b0146f77292d06ea4e2beabfa7f08590805ffed2202c232b3a4cad4ba8b9
MD5 b228d17075a7cd3151e12caef94cc005
BLAKE2b-256 d31a6d970109fdf0f6d40346b80b813158d5ef290d3f68c2b854033798c321d9

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 50761a178bcbae62b11d5a41e9486147f842314e2ddd94bcd1354029f87d068e
MD5 785639cc18aa6157d4ab5eeb7d0fb663
BLAKE2b-256 a8ef402a16a2f8467f6471427c33fb2f16a9294a8b2f12aa0bd6d801f87dcb83

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 a8dede295972379774ad3a68447aef313c0ba7d447e345182af8888b81dcb02e
MD5 b54d6a9286cb753c27516d551c91fe95
BLAKE2b-256 3d1a1728e18977c776613399900f7bec07dec0898b303d7954cd81dbb6dd961e

See more details on using hashes here.

File details

Details for the file gevent-1.1rc4-cp26-cp26m-macosx_10_11_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc4-cp26-cp26m-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 048897b0c5bd9c41d1f513ecc611596b373923864bb19d71c3d8bef623953899
MD5 893b10aabfa763ccfb420cd0b50668a0
BLAKE2b-256 c6964feeb382f7f3e68b82e459b63c74b3209e78227dc9e554eef722cdc156c1

See more details on using hashes here.

Supported by

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