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.
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.
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
Built Distributions
Hashes for gevent-1.1rc4.win-amd64-py3.5.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc22c785311e83ef21ef23c6128c40c0301d618f167d8ef4086354244b678d66 |
|
MD5 | cac0729c3496fb5590a4e2eb13a824e6 |
|
BLAKE2b-256 | cbcacc06b736361c126efe5d3d4a83c519d1ba27477a3f0317b7b3a769af01fc |
Hashes for gevent-1.1rc4.win-amd64-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23b20029361bedf755def23dba962c5aba25acdaf444c8c3fb2ebc36c0bf80bd |
|
MD5 | abc668357d74a9bf6e81daf79f5d9f7b |
|
BLAKE2b-256 | b9d8ad42ace02a3610da0c4685efdc8ec7a2ba4d7b848fe09f8befb8104ee275 |
Hashes for gevent-1.1rc4.win-amd64-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15fb4bf76dfda0e35a3dad67dd0196d0959e3f5e1bdb0cc9e81d4337ce9e685d |
|
MD5 | 06b786460c92bb0bd2c5bf17108199dd |
|
BLAKE2b-256 | 9dedbd6537a6aaf60d36280dabfbbc4f5935f50af17db881bb60328d2c1c95bb |
Hashes for gevent-1.1rc4.win-amd64-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0a3220638f70c9128ab26e5c57560bf4a87d0830356ce87598c5bd121f81ff |
|
MD5 | 6f10348827ae1a5e904670f5ef6653e4 |
|
BLAKE2b-256 | e105266f208aa1e8fd794792790de021849020e3e985dc884339347416028963 |
Hashes for gevent-1.1rc4-pp240-pp240u-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95076a1fef833adc445f08b9268ac66ba663170cc5ede5f251fce46cf4edb606 |
|
MD5 | 4bb059f58c05d9f9135e7a92a7755ca1 |
|
BLAKE2b-256 | 604d47c9836de868c6afdf750d91005b06e73e43f5f8fa70ffdc6847452384bd |
Hashes for gevent-1.1rc4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c458e505bfe09297e80354b938737cd590eab2b1328ed15d035c7de6f4b7cc |
|
MD5 | 7324ec89a7c398c8d9fe191476b23b92 |
|
BLAKE2b-256 | 9d1defde2bb2b55d15b4f7ac539671aef7db4fdf8ed11beff16ab512d3a4f1f1 |
Hashes for gevent-1.1rc4-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5d157fa3ac832bfaa08b5f83bcd8a9252f7a34cd2968ccc0aaa25d29c9de089 |
|
MD5 | 75ee9355122bb4de6fb0dfe3d8552ab1 |
|
BLAKE2b-256 | d78980556ba511969ed071c430929f5433d4a72188a21c00c2ea59f6f230a584 |
Hashes for gevent-1.1rc4-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dd6443d921d8e4798eb60115fd04873e8d544683f53a8ecca556426db9853c4 |
|
MD5 | 9453beb01eb97ccf7f958a7300d0e9d2 |
|
BLAKE2b-256 | 4560591c171d79540e1d188697708be0b021ed68ec9d1cae8dceb2e2b65b63bb |
Hashes for gevent-1.1rc4-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 977ae9a6d04a0c22f8c0128139d58e42f5f9a6aa4e8b3a537405bb947f022efc |
|
MD5 | d767f972cbbd00cf4fcc563e64b15cfd |
|
BLAKE2b-256 | 5c142186b6353864fe67ea1d41c0403bd8d02049c393704b9801337c31d666b6 |
Hashes for gevent-1.1rc4-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67b9f924c4995bae944bd26f214ca5f372b7031d70e2118f9019f5df4c62af5 |
|
MD5 | 1e6109f2855ea70439291cb167523d9e |
|
BLAKE2b-256 | 0a047141742caf733713349afb20a9d0dfb826dc1aed24b2dde54507b09c89f3 |
Hashes for gevent-1.1rc4-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203ec6842e18ec8a02efd542958ca5e31ff03b2d0b25dcae8d8ada742925ff46 |
|
MD5 | df56525853ed24b3b07d795a0eb226fa |
|
BLAKE2b-256 | ee2b6f7b31f6fd3dd17761788ead5cd891603e12a8e22849cd7e3a62c5ad98b3 |
Hashes for gevent-1.1rc4-cp33-cp33m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b2e76671a26a555c4839704c086e422ef1d85059579f58d112160ddb0a4ff6d |
|
MD5 | f35a0f8e190d0b22449be33958af892d |
|
BLAKE2b-256 | 19898004c86b2c6744a752a5c7bd89d53af7302ea6cade3e9680869eae2ee280 |
Hashes for gevent-1.1rc4-cp33-cp33m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04a646cb6a69876166e2a7233dadf680d4687645e3af2ec19d82cb09697f0e7 |
|
MD5 | 2ad18faa903273c2929cf1019f094518 |
|
BLAKE2b-256 | 5bb3a943d9d4a312c645e02ca85bda9cbdf351acc7c67a4e6fe68b9505dd39d6 |
Hashes for gevent-1.1rc4-cp33-cp33m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01127f8297b7efb02a0c63d850d2e52157a8723cdb7553501668411ca78bdb88 |
|
MD5 | de5be33807dd1b7ea8969aae10ba5297 |
|
BLAKE2b-256 | 78df5a327852b9026483d04fa4110dd42e11ce34e785259445ad7312e989ed4b |
Hashes for gevent-1.1rc4-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a55b0146f77292d06ea4e2beabfa7f08590805ffed2202c232b3a4cad4ba8b9 |
|
MD5 | b228d17075a7cd3151e12caef94cc005 |
|
BLAKE2b-256 | d31a6d970109fdf0f6d40346b80b813158d5ef290d3f68c2b854033798c321d9 |
Hashes for gevent-1.1rc4-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50761a178bcbae62b11d5a41e9486147f842314e2ddd94bcd1354029f87d068e |
|
MD5 | 785639cc18aa6157d4ab5eeb7d0fb663 |
|
BLAKE2b-256 | a8ef402a16a2f8467f6471427c33fb2f16a9294a8b2f12aa0bd6d801f87dcb83 |
Hashes for gevent-1.1rc4-cp27-cp27m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8dede295972379774ad3a68447aef313c0ba7d447e345182af8888b81dcb02e |
|
MD5 | b54d6a9286cb753c27516d551c91fe95 |
|
BLAKE2b-256 | 3d1a1728e18977c776613399900f7bec07dec0898b303d7954cd81dbb6dd961e |
Hashes for gevent-1.1rc4-cp26-cp26m-macosx_10_11_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048897b0c5bd9c41d1f513ecc611596b373923864bb19d71c3d8bef623953899 |
|
MD5 | 893b10aabfa763ccfb420cd0b50668a0 |
|
BLAKE2b-256 | c6964feeb382f7f3e68b82e459b63c74b3209e78227dc9e554eef722cdc156c1 |