Coroutine-based network library (python 2.6 - 3.5)
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
Note: You need Pip 8.0 or later to install the binary wheels for 1.1.
Important: Version 1.1 will be the last gevent series to support Python 2.6. Future major releases 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.
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.1.2.win-amd64-py3.5.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2feb3fddc0240373bfc0176d7625cb667132beef18009bf7101216baafd136e9 |
|
MD5 | ac86dd8e585088460841390402b295cb |
|
BLAKE2b-256 | 5dffdc62db0c71e3b213f16c3665d659e034cae42f262b7afe9feee7a50e7c0e |
Hashes for gevent-1.1.2.win-amd64-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c43de92658eb4723572cd7e543340943e96bf4666f92a819d36f93653c39d15 |
|
MD5 | 3b0717bcfad6bce660a70de4e9c1bc5e |
|
BLAKE2b-256 | f67a8c6cc3123a0a7a6d35cfdfb104f62a6c5ff0fd0b86a1cd40d6de2da00d5c |
Hashes for gevent-1.1.2.win-amd64-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | f403a6b18b3cdb6de4c0140711de690071783433cd0f325c9e46c585497e580c |
|
MD5 | a65001d74181839080cfc663b2e8595a |
|
BLAKE2b-256 | 84f3100f0d7d46af4e60b12156d02130b846899e525e0a6ad8edb7c549c5e235 |
Hashes for gevent-1.1.2.win-amd64-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 911ebb03dee09e841d0f7ee367b1b8380f8918b3e30c3a822bc41599ae74d2a3 |
|
MD5 | 1c6bea5657193804e6d4b0d3b1d1b5a5 |
|
BLAKE2b-256 | f42cc9db95286dbbb4412fb676379e3274ef061795fc118f32058adfc93ee6e0 |
Hashes for gevent-1.1.2-pp253-pypy_41-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3963faca1c5e175fdcfeec3ee7116f3d8082be2f94e096871e9b08da10fa4c25 |
|
MD5 | 0331c142c72ef002bf431af72d4a1f0c |
|
BLAKE2b-256 | 33bfa5c1045eff8ac185967564060ff281ab452efe802251e86c6cacce242c51 |
Hashes for gevent-1.1.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58bdc8d1ca56e3dab833c2e2098a9afa98d0ff0f738c63e896138289c2a08b5e |
|
MD5 | 99e6c2d0b568c826b1a603a835ed02ce |
|
BLAKE2b-256 | b7340247a22d90de86529a45d1da71179c1038ab1737667e2725580a4f09ea0d |
Hashes for gevent-1.1.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 468bc2aea02aa1963bd0c73803f0378530f60af8fc93a576d0ca79285d60e833 |
|
MD5 | bd36f4cd17c77aee967ea1dc8e1a38be |
|
BLAKE2b-256 | c06bc54935cb16904f7b95ae9f1e35e7343b397a05f85c38d45b3cbf4ef2225e |
Hashes for gevent-1.1.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4552cc8ffefd4c5301ba75ac2720befb0001bc134e4e8c28475e96992e513300 |
|
MD5 | 21418b1a652b8beaff9f5a1aa7b7436d |
|
BLAKE2b-256 | 65ffbf56bd8fcdccb114f808b9add22fe07179f734784b27d0de1ad08f7668e0 |
Hashes for gevent-1.1.2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a622ad8da282b0fea17f3800bfc4eae9be89a53c22ffba5a2b357278b8f8e8 |
|
MD5 | 6b48e406f60409418a741c69bc78b7e3 |
|
BLAKE2b-256 | c1f5e01dea62b42af76fd181beae1912008c1cab1e898dc835b3fb7abea2a90a |
Hashes for gevent-1.1.2-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f86e297b8ffff7e101993980062f053ebda92ed8c40ab3a9c53c50ff9ef408 |
|
MD5 | 7040ffa776080651f161659142c7aed9 |
|
BLAKE2b-256 | b86d6407edc3d0770d4c4aaa55fd95946570b1c3af91f5ba25cdf837c7270867 |
Hashes for gevent-1.1.2-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7188cbec74276e42ea0671ad479e4209f9f12d82bc542d21217a09f759e647e3 |
|
MD5 | d7dd53e7e4a6adc9594f921213dd704c |
|
BLAKE2b-256 | f7a4b194deb2f154b339b5da84a39ab5c2f68010c2a3246c2dd615d03953cc13 |
Hashes for gevent-1.1.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 720574505391b0f0817b092edfcbb97938d6d407ce912444a92267dab763eb8e |
|
MD5 | f22b27d000a718d8acb7afaebb3f3631 |
|
BLAKE2b-256 | 4b2aac2f6cfb4debb3ce3d4d59f08b78fbbdb462d51e9df72b3b2be172ba8758 |
Hashes for gevent-1.1.2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd0c6dcc30ec8014426e61a2cc429c7fcbcc26bd7b682bd590d31fce2d2bd843 |
|
MD5 | 6b744d89b577f81bd17512e3855e6331 |
|
BLAKE2b-256 | ace7feb8b202965c3f1311ee22d43bc0e45eb3945e25c0fb3fd393984f4aa642 |
Hashes for gevent-1.1.2-cp33-cp33m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af2b6eae04ccfa0766a135c31056c92a127ebcb172858880d8309a9e57f52d8 |
|
MD5 | 16f6a33536ca9d465010938687246e2c |
|
BLAKE2b-256 | 1383250e26cd83812fdad9fc9cd33e3b194911f03b82d121c1deb6eb778701bd |
Hashes for gevent-1.1.2-cp33-cp33m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce82526317a1279de2997e5da2744342ff0bd1459a14d75e749350966ae1e17 |
|
MD5 | bd8130c53424eaac47dc2c5f7c90589b |
|
BLAKE2b-256 | ed12586d304577f208e9495a9ec3bacc0fd5730b06242919bcda9f915bc19423 |
Hashes for gevent-1.1.2-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb985038826eb353f5759dda2ec7bca581abf4e5c2e90b95ddb5d976dc785e6 |
|
MD5 | c0406104b66e436249dd2c9ec7b02591 |
|
BLAKE2b-256 | d3375edca7335f0b6899d29dfa5997107f88d93684b6f3d9def7a82386d52c9b |
Hashes for gevent-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d072a29ca28bb84d9433434e2675c44ca29635c0aa0ed51b1eecf216991fd204 |
|
MD5 | 0ea7fcb647ed326be181bc6691c0a7f1 |
|
BLAKE2b-256 | 1a230fec5ea162012f935613c2bec362e31f5695cb35e812cf4c21b835784098 |
Hashes for gevent-1.1.2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ce00048808d3c2ee7e8c83860595b0d2090724770e499056aec1c8947bd2d1 |
|
MD5 | baf86c204540b13b96ece392ea359e5b |
|
BLAKE2b-256 | 33435c322f7d58671a8fb9417a169340bc1933b19adc717db79ec48a79b97492 |
Hashes for gevent-1.1.2-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a51f414f22f31a110823ff0365cb088dc3317a06227c85033d8523dd619ada72 |
|
MD5 | f8542787286e474465aab53f34721459 |
|
BLAKE2b-256 | 68892a390ab2c690ab74bcd6eae43983e801d9654c7eaf4745d49d68be5d6265 |
Hashes for gevent-1.1.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24fb153e3c65d025c065b140e39998d483d4df6887b02503ba66debf32b49d6 |
|
MD5 | 300e55e4370c5e5959b1acfd4b13b685 |
|
BLAKE2b-256 | a6dd8bbbc565f3c98b8892d7acb3336239c3708efc32853f5c05f5db9f521ccc |
Hashes for gevent-1.1.2-cp27-cp27m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42de31de5f29a11f5480f76c05f3afce80e030333295718efd64bfb823e4e82 |
|
MD5 | 1d601d804454cd3552f95b695c464d31 |
|
BLAKE2b-256 | dcc0d16589d7c83ed873b393078dd1da4170962ac507dc65d938088129c8496f |
Hashes for gevent-1.1.2-cp26-cp26m-macosx_10_11_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca934dc30f26e84c79e483db4de433702283ff02344d029635730ff9e7c1d416 |
|
MD5 | 5073143ffdec7743807bd50c2e9c01b1 |
|
BLAKE2b-256 | 5a14f50d2ccd306a8d8612df10374b9ebc106f085f7ded93e9a20c7ebf1ac628 |