Coroutine-based network library (python 2.7 - 3.6)
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.7, Python >= 3.4, or PyPy >= 5.5 (including PyPy2 and PyPy3) (Note: PyPy is not supported in Windows). 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 'cython>=0.25' 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 src/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 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 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 to monitor test coverage.
Likewise, builds on Travis CI will automatically submit updates to landscape.io to monitor code health (adherence to PEP8, absence of common code smells, etc).
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
File details
Details for the file gevent-1.2a1.tar.gz
.
File metadata
- Download URL: gevent-1.2a1.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50dbb16d206c36085f49da3a07467c0bf059010da4eabd5f1cae9abd97b87ef9 |
|
MD5 | e012b07e3a9aa48cb507c93d86798e83 |
|
BLAKE2b-256 | 4c852d2b18aa14e5f6cdfc34d6e0882e18948c1be03a725b4f3bf9bfe28e6036 |
File details
Details for the file gevent-1.2a1.win-amd64-py3.5.exe
.
File metadata
- Download URL: gevent-1.2a1.win-amd64-py3.5.exe
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a82957becafcd8303387b1d35c06868f1386be1a1db09ff47222ce51c2f7f851 |
|
MD5 | 47f2defcc89fb033bec6b5813cafae29 |
|
BLAKE2b-256 | f66d84390c6c20abb366ca973c32fc56373fc4d55bc876e2b909def61fc0f40e |
File details
Details for the file gevent-1.2a1.win-amd64-py3.4.exe
.
File metadata
- Download URL: gevent-1.2a1.win-amd64-py3.4.exe
- Upload date:
- Size: 857.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80303b6fe9883a152c1f06191f6e67508334a8370f75b369c21b64915ed8c6d0 |
|
MD5 | 07c8a4a2e0ce4a661d8c0bbbae233469 |
|
BLAKE2b-256 | a16e0e6c85f78179615caab288db168b44a7d5409e0e9d3ca237e0ef8aa14ce7 |
File details
Details for the file gevent-1.2a1.win-amd64-py3.3.exe
.
File metadata
- Download URL: gevent-1.2a1.win-amd64-py3.3.exe
- Upload date:
- Size: 858.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f56da7c85af1cf42143eab089709e798ab402d9d93dc8f375281b241ddd3044b |
|
MD5 | ec71b3a816b3c88c30af46cd1e315da1 |
|
BLAKE2b-256 | de21d75215d22043692b023274fd814b326516947ecb7e9afb1bbf645ed56d86 |
File details
Details for the file gevent-1.2a1.win-amd64-py2.7.exe
.
File metadata
- Download URL: gevent-1.2a1.win-amd64-py2.7.exe
- Upload date:
- Size: 862.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 416687ae9324a08b5ae738e59f1020b35f3cf7cc705b2a3055903e60df6b8847 |
|
MD5 | 0fdc7c7e573431ae309bb955b78da79b |
|
BLAKE2b-256 | cdd46ac29ecf21d7568108d8189361484460161b26bf30770dd4c4b44f3c65d2 |
File details
Details for the file gevent-1.2a1.win32-py3.5.exe
.
File metadata
- Download URL: gevent-1.2a1.win32-py3.5.exe
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8a7fe83fe8c2a191b876053c0630fdd96ca3b1befdb551fbab4f3591482ed1a |
|
MD5 | 85716721b45908814363bf0d1eec55d6 |
|
BLAKE2b-256 | 4e642d16265033df75c52b2a1b6469554fdddbb5f51e674ecba1a212b71a65ea |
File details
Details for the file gevent-1.2a1.win32-py3.4.exe
.
File metadata
- Download URL: gevent-1.2a1.win32-py3.4.exe
- Upload date:
- Size: 803.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 895092a4b907f0e7941cb8cb6cb547222669c8d1a820191b302fbc524b847f07 |
|
MD5 | 620d16c8bf1d8ca67fb508d3f8d279ea |
|
BLAKE2b-256 | 8cfcced6298be547d41370e553c22a0c0444a9ba7ba8967438f9b8ed1aabc7b0 |
File details
Details for the file gevent-1.2a1.win32-py3.3.exe
.
File metadata
- Download URL: gevent-1.2a1.win32-py3.3.exe
- Upload date:
- Size: 803.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38587e00b3f7a7a756b91f458723a2a39ec741a22515c26b3234a96d7561ff5 |
|
MD5 | 896238e5a101e1682797b4e9426abba3 |
|
BLAKE2b-256 | 85185e2f2cd084e6870c3f48b32fe245af1589135f5aa511740c56cd9b00b205 |
File details
Details for the file gevent-1.2a1.win32-py2.7.exe
.
File metadata
- Download URL: gevent-1.2a1.win32-py2.7.exe
- Upload date:
- Size: 807.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f55d26f210f3d22afb288bab24903516e5d27edd68846264818222a556f59d48 |
|
MD5 | 7f67eb1ad84a83dab44231a968828f9e |
|
BLAKE2b-256 | 51a38f674e9608aa46d4b1e4df256513f2788c36b422259366affff2d0489da2 |
File details
Details for the file gevent-1.2a1-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 628.7 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ebecfec4e0d97758f637b6128e2e7135dc24de4a59f1f19d6435527d36194b9 |
|
MD5 | dfe2010a6293a2373c1b915a89f27406 |
|
BLAKE2b-256 | 2cb9c4219eb13c42a6b56a4da005eda997c9fc68ee2f641917b1e1b37c8f2b4d |
File details
Details for the file gevent-1.2a1-cp35-cp35m-win32.whl
.
File metadata
- Download URL: gevent-1.2a1-cp35-cp35m-win32.whl
- Upload date:
- Size: 604.1 kB
- Tags: CPython 3.5m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e62534c6fad2306de22f3cd73d9ca15ed5edefcc7590043028acc985559d306b |
|
MD5 | 46238bec54a7b327dd09a640a47c0c5e |
|
BLAKE2b-256 | 7d57340fb0002247c0be04f4c7c07bce6eca582f0021762fff3cc56853d4ff55 |
File details
Details for the file gevent-1.2a1-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a928868b4445840e6a36b446b3a764005562105527bcf500d2088a556c1e09c4 |
|
MD5 | 859cdc005db1bed545dcb84bcdb985a2 |
|
BLAKE2b-256 | 56a772527380f2c392f855564c610d0950b8b161ea4da294e45e662a5717e799 |
File details
Details for the file gevent-1.2a1-cp35-cp35m-macosx_10_6_intel.whl
.
File metadata
- Download URL: gevent-1.2a1-cp35-cp35m-macosx_10_6_intel.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.5m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5522f7040afe592b23cf78e1c7d5209464a4eb0e51e00f42334dc42d3f143be6 |
|
MD5 | f21279a09e685fa790e32a6c2806372c |
|
BLAKE2b-256 | bdcb084dfade563c92d927dc96bc6121acf92f3d7eb63e1f5d4406387de7eb38 |
File details
Details for the file gevent-1.2a1-cp34-cp34m-win_amd64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp34-cp34m-win_amd64.whl
- Upload date:
- Size: 629.9 kB
- Tags: CPython 3.4m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7624e2610747e8450c807f74dcb490e8f13496acafee99bbe1a7659a76276d |
|
MD5 | ab7e7c17a1e5393de8366c3965c049d5 |
|
BLAKE2b-256 | 7a14e3628e9fc8ae0ea55532c9f2e92f1d4bd8c0a3ec37261b427baba244b236 |
File details
Details for the file gevent-1.2a1-cp34-cp34m-win32.whl
.
File metadata
- Download URL: gevent-1.2a1-cp34-cp34m-win32.whl
- Upload date:
- Size: 606.4 kB
- Tags: CPython 3.4m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 674b6434356765c389733545755b38483d0f7093edf868a9bc4122328d60ee23 |
|
MD5 | fc8706b4bb7412377993cbd467fe2583 |
|
BLAKE2b-256 | 77f5c726a915fbc3c0fd2e54253249498712c9c08e85766cfad3864df6f32363 |
File details
Details for the file gevent-1.2a1-cp34-cp34m-manylinux1_x86_64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2be3322d4b5f038c437ebb04600fb4340ae1c41045298fc539bde4472a9b90f3 |
|
MD5 | 0b87e66834dad0f95da6f757e03f4a4a |
|
BLAKE2b-256 | f42d7de7e2a4c07dad6a2eef5368c62449538fa212b14e012c85e54e3ee0ab54 |
File details
Details for the file gevent-1.2a1-cp34-cp34m-macosx_10_6_intel.whl
.
File metadata
- Download URL: gevent-1.2a1-cp34-cp34m-macosx_10_6_intel.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.4m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed73db940730304da45bf4debc47ccd968fdff9531cdbe834dc89f834dcfc8c6 |
|
MD5 | e47a6bf58eb0fa828f4fb3d7f35509df |
|
BLAKE2b-256 | 6a82ebe638da92643f29e2dfcc2e25a60b76acf12d8087e9e6619ba28e9ced58 |
File details
Details for the file gevent-1.2a1-cp33-cp33m-win_amd64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp33-cp33m-win_amd64.whl
- Upload date:
- Size: 630.5 kB
- Tags: CPython 3.3m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca0db60300f43576f26b90e5cb63aa3698c37372aa5b68499a7c394d48119abb |
|
MD5 | ae0edaa1a58a7877c4f9f242d0247ab0 |
|
BLAKE2b-256 | ad1c1b8bc37512d634e40cdc3a4198537615edf485b6cee4e8bb0103d641fe12 |
File details
Details for the file gevent-1.2a1-cp33-cp33m-win32.whl
.
File metadata
- Download URL: gevent-1.2a1-cp33-cp33m-win32.whl
- Upload date:
- Size: 607.1 kB
- Tags: CPython 3.3m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a7e1345a601defbd7d71e4a26851329ddd066cf8e2bd79787cc3274b13a856 |
|
MD5 | 1cf159db91d2e453eb7d78463abee4c5 |
|
BLAKE2b-256 | 7967ce9d939c8fca95acce67bd2432f9e8370e36da58446092b5debd316469de |
File details
Details for the file gevent-1.2a1-cp33-cp33m-manylinux1_x86_64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp33-cp33m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.3m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3e3f161eb46e809dbfd11cfe9162712ebf6938c35e281a955479ae288ad4ec3 |
|
MD5 | 979c8bb5385b3fc003036bc75905b309 |
|
BLAKE2b-256 | eff1b0885be58345e12a6d15e9a2f735d71d9e0067641666ac2ced76565ed021 |
File details
Details for the file gevent-1.2a1-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16b55168ce4c0cb9e6c290d2e0e547bd79d6cd78ba1609f975325e77e9783b68 |
|
MD5 | 422db53b916c9849c488cf35bef235c9 |
|
BLAKE2b-256 | fb35924be0f6f1405abe57fbf6ef4d67b8747fdc784d6da7bfd1f6f16d6f1c31 |
File details
Details for the file gevent-1.2a1-cp27-cp27m-win_amd64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp27-cp27m-win_amd64.whl
- Upload date:
- Size: 633.4 kB
- Tags: CPython 2.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78bac3be862e7fe04fa699fe79357ce4d48eb151df5d3725dc693c089b6e9e2c |
|
MD5 | 4775c260ec615556f665f9da43a12107 |
|
BLAKE2b-256 | 7cff151d3d68ebf4af02d1b114ef8888659a52fafcbae773a45635652a47e1ff |
File details
Details for the file gevent-1.2a1-cp27-cp27m-win32.whl
.
File metadata
- Download URL: gevent-1.2a1-cp27-cp27m-win32.whl
- Upload date:
- Size: 605.9 kB
- Tags: CPython 2.7m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad884d69a365860c857ca3f06ebd64a126c7a50d2310c891c60e2f51470b1b9 |
|
MD5 | a11618205aa5e764ddb695756dea3c71 |
|
BLAKE2b-256 | 7bf6c45c4ab6e5d5b4fdcf98ad37ecc8dacdd1f84d30ea8829806b9d1bd79684 |
File details
Details for the file gevent-1.2a1-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: gevent-1.2a1-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e055e686049e6efa513075555e78ee207c63d44321f1f3c661797fea4a065e9 |
|
MD5 | b673f41efde080cab80eb0fa0828f559 |
|
BLAKE2b-256 | 68288cb2d64655333c7ca9fac437b4ec5a32542d97ff85bc82067dca38b7baaa |
File details
Details for the file gevent-1.2a1-cp27-cp27m-macosx_10_6_intel.whl
.
File metadata
- Download URL: gevent-1.2a1-cp27-cp27m-macosx_10_6_intel.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 2.7m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428edaa53e8d104a4c0996ce848af5b681ad6a7664104dd356b0436dedd6ca00 |
|
MD5 | 5c90052ee8e1542e55c67a59e3b7900f |
|
BLAKE2b-256 | c9c490b681574442bd9fa6bce758ff2dee658ed41c5b84c1038795057b89eee2 |