Coroutine-based network library
Project description
gevent
gevent is a coroutine -based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libev or libuv event loop.
Features include:
Lightweight execution units based on greenlets.
API that re-uses concepts from the Python standard library (for examples there are events and queues).
Cooperative DNS queries performed through a threadpool, dnspython, or c-ares.
Monkey patching utility to get 3rd party modules to become cooperative
TCP/UDP/HTTP servers
Subprocess support (through gevent.subprocess)
Thread pools
gevent is inspired by eventlet but features a 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 was written by Denis Bilenko.
Since version 1.1, gevent is maintained by Jason Madden for NextThought (through gevent 21) and Institutional Shareholder Services with help from the contributors and is licensed under the MIT license.
See what’s new in the latest major release.
Check out the detailed changelog for this version.
Read the documentation online at http://www.gevent.org.
Post issues on the bug tracker, discuss and ask open ended questions on the mailing list, and find announcements and information on the blog and twitter (@gevent).
Installation and Requirements
Supported Platforms
This version of gevent runs on Python 3.8 and up, (for exact details of tested versions, see the classifiers on the PyPI page or in setup.py). gevent requires the greenlet library and will install the cffi library by default on Windows. The cffi library will become the default on all platforms in a future release of gevent.
This version of gevent is also tested on on PyPy 3.10 (7.3.12); it should run on PyPy 3.9 and above. On PyPy, there are no external dependencies.
gevent is tested on Windows, macOS, and Linux, and should run on most other Unix-like operating systems (e.g., FreeBSD, Solaris, etc.)
Older Versions of Python
Users of older versions of Python 2 or Python 3 may install an older version of gevent. Note that these versions are generally not supported.
Python Version |
Gevent Version |
---|---|
2.5 |
1.0.x |
2.6 |
1.1.x |
<= 2.7.8 |
1.2.x |
3.3 |
1.2.x |
3.4.0 - 3.4.2 |
1.3.x |
3.4.3 |
1.4.x |
3.5.x |
20.9.0 |
2.7.9 - 2.7.18, 3.6, 3.7 |
22.10 |
Installation
gevent and greenlet can both be installed with pip, e.g., pip install gevent. Installation using buildout is also supported.
On Windows, macOS, and Linux, both gevent and greenlet are distributed as binary wheels.
Installing From Source
If you are unable to use the binary wheels (for platforms where no pre-built wheels are available or if wheel installation is disabled), you can build gevent from source. A normal pip install will fall back to doing this if no binary wheel is available. See Installing From Source for more, including common installation issues.
Extra Dependencies
There are a number of additional libraries that extend gevent’s functionality and will be used if they are available. All of these may be installed using setuptools extras, as named below, e.g., pip install gevent[events].
- events
In versions of gevent up to and including 20.5.0, this provided configurable event support using zope.event and was highly recommended.
In versions after that, this extra is empty and does nothing. It will be removed in gevent 21.0.
- dnspython
Enables a pure-Python resolver, backed by dnspython. On Python 2, this also includes idna. They can be installed with the dnspython extra.
- monitor
Enhancements to gevent’s self-monitoring capabilities. This includes the psutil library which is needed to monitor memory usage. (Note that this may not build on all platforms.)
- recommended
A shortcut for installing suggested extras together. This includes the non-test extras defined here, plus additions that improve gevent’s operation on certain platforms (for example, in the past, it has included backports of newer APIs).
- test
Everything needed to run the complete gevent test suite.
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-24.2.1-pp310-pypy310_pp73-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b00f8c9065de3ad226f7979154a7b27f3b9151c8055c162332369262fc025d8 |
|
MD5 | 2ee5d10b6088a5e277f94bae72898208 |
|
BLAKE2b-256 | ae15c1cd1f2005f457028ecde345260fc4ab2197c6b660a8f3729784a6a903ca |
Hashes for gevent-24.2.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94138682e68ec197db42ad7442d3cf9b328069c3ad8e4e5022e6b5cd3e7ffae5 |
|
MD5 | 79d778b34da629f2a39d96aeaf7c0d02 |
|
BLAKE2b-256 | 2e90d9fcdc22864d0cf471630071c264289b9a803892d6f55e895a69c2e3574b |
Hashes for gevent-24.2.1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d8d0642c63d453179058abc4143e30718b19a85cbf58c2744c9a63f06a1d388 |
|
MD5 | ea31ae08dba3d0539322d7279f6a24de |
|
BLAKE2b-256 | 5ffe288ccd562ac20d5e4ae2624313b699ee35c76be1faa9104b414bfe714a67 |
Hashes for gevent-24.2.1-cp312-cp312-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8a04cf0c5b7139bc6368b461257d4a757ea2fe89b3773e494d235b7dd51119f |
|
MD5 | 080e64216305ef32e3e3e7e9e0c6fd2e |
|
BLAKE2b-256 | 0d8b02a07125324e23d64ec342ae7a4cff8dc7271114e787317a5f219027bf1b |
Hashes for gevent-24.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 368a277bd9278ddb0fde308e6a43f544222d76ed0c4166e0d9f6b036586819d9 |
|
MD5 | 7c6351ab4f1dcf9646ebbb35c1b8533c |
|
BLAKE2b-256 | 5beb6b0e902e29283253324fe32317b805df289f05f0ef3e9859a721d403b71e |
Hashes for gevent-24.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4faf846ed132fd7ebfbbf4fde588a62d21faa0faa06e6f468b7faa6f436b661 |
|
MD5 | dd824a4d97bdf6881771c2c5735897e2 |
|
BLAKE2b-256 | d9d3f9d0f62cb6cb0421d0da2cffd10bad13b0f5d641c57ce35927bf8554661e |
Hashes for gevent-24.2.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5de3c676e57177b38857f6e3cdfbe8f38d1cd754b63200c0615eaa31f514b4f |
|
MD5 | ca692b33f8144943581bb049d001cc25 |
|
BLAKE2b-256 | 69e7072dfbf5c534516dcc91367d5dd5806ec8860b66c1df26b9d603493c1adb |
Hashes for gevent-24.2.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf5b9c72b884c6f0c4ed26ef204ee1f768b9437330422492c319470954bc4cc7 |
|
MD5 | da31221808a09eb61cf972f9044a9dee |
|
BLAKE2b-256 | 56ce583d29e524c5666f7d66116e818449bee649bba8088d0ac48bec6c006215 |
Hashes for gevent-24.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7cac622e11b4253ac4536a654fe221249065d9a69feb6cdcd4d9af3503602e0 |
|
MD5 | 5875309748e63c61fb00d4d4f9b75d91 |
|
BLAKE2b-256 | f7144cc83275fcdfa1977224cc266b710dc71b810d6760f575d259ca3be7b4dd |
Hashes for gevent-24.2.1-cp312-cp312-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c47ae7d1174617b3509f5d884935e788f325eb8f1a7efc95d295c68d83cce40 |
|
MD5 | c1369cb1c87b97f7a6bb52328b7bada1 |
|
BLAKE2b-256 | 5072eb98be1cec2a3d0f46d3af49b034deb48a6d6d9a1958ee110bc2e1e600ac |
Hashes for gevent-24.2.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dffb395e500613e0452b9503153f8f7ba587c67dd4a85fc7cd7aa7430cb02cc |
|
MD5 | 809df9b21148865e62767ca8d841dd46 |
|
BLAKE2b-256 | 18b1bbaf6047b13c4b83cd81007298f4f8ddffd8674c130736423e79e7bb8b6a |
Hashes for gevent-24.2.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdf66977a976d6a3cfb006afdf825d1482f84f7b81179db33941f2fc9673bb1d |
|
MD5 | a0d02b3c26a8ecff25ee2d41a1c43d19 |
|
BLAKE2b-256 | 15127c91964af7112b3b435aa836401d8ca212ba9d43bcfea34c770b73515740 |
Hashes for gevent-24.2.1-cp311-cp311-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbfdce91239fe306772faab57597186710d5699213f4df099d1612da7320d682 |
|
MD5 | d71bbf52855297f5bd0bd4a98081d18d |
|
BLAKE2b-256 | 74ee6febc62ddd399b0f060785bea8ae3c994ce47dfe6ec46ece3b1a90cc496b |
Hashes for gevent-24.2.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5e8e8d60e18d5f7fd49983f0c4696deeddaf6e608fbab33397671e2fcc6cc91 |
|
MD5 | 4ffb8aa7b485fb1cd804361ebe59f44f |
|
BLAKE2b-256 | 58b8aaf9ff71ba9a7012e04400726b0e0e6986460030dfae3168482069422305 |
Hashes for gevent-24.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7899a38d0ae7e817e99adb217f586d0a4620e315e4de577444ebeeed2c5729be |
|
MD5 | ac98559f04d2cc0fe3d012c9acb47388 |
|
BLAKE2b-256 | a1bc0f776a3f5a3c57e3f6bbe8abc3d39cc591f58aa03808b50af4f73ae4b238 |
Hashes for gevent-24.2.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968581d1717bbcf170758580f5f97a2925854943c45a19be4d47299507db2eb7 |
|
MD5 | 00732e80d717091efaafb74ad7d6e28b |
|
BLAKE2b-256 | 9c0ebf924a9998137d51e8ba84bd600ff5de17e405284811b26307748c0e0f9b |
Hashes for gevent-24.2.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7f87c2c02e03d99b95cfa6f7a776409083a9e4d468912e18c7680437b29222c |
|
MD5 | 1bf0985bb479a9034e1c7fb5dbaa4361 |
|
BLAKE2b-256 | 409c8880eef385b31f694222f5c94b2b487a8b37b99aceeed3e93cb0cb038511 |
Hashes for gevent-24.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8bb35ce57a63c9a6896c71a285818a3922d8ca05d150fd1fe49a7f57287b836 |
|
MD5 | e8762811dba10e192515e3ee6b847770 |
|
BLAKE2b-256 | 4adb64295bfd9a51874b715e82ba5ab971f2c298cf283297e4cf5bec37db17d9 |
Hashes for gevent-24.2.1-cp311-cp311-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03aa5879acd6b7076f6a2a307410fb1e0d288b84b03cdfd8c74db8b4bc882fc5 |
|
MD5 | e9d03adc21b02da35eb6a0c2dd2b6d48 |
|
BLAKE2b-256 | 6434e561fb53ec80e81a83b76667c004c838a292dde8adf80ff289558b4a4df8 |
Hashes for gevent-24.2.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d5325ccfadfd3dcf72ff88a92fb8fc0b56cacc7225f0f4b6dcf186c1a6eeabc |
|
MD5 | 909a6e0099958366e168b65409c0106d |
|
BLAKE2b-256 | 9e34caad15cb7ca802416c22f0403dd0204013f6f6fbca6d8d252823eadbcaa7 |
Hashes for gevent-24.2.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 918cdf8751b24986f915d743225ad6b702f83e1106e08a63b736e3a4c6ead789 |
|
MD5 | 9088316b7ceadb474904ff98bee9226e |
|
BLAKE2b-256 | 7c27a0eee37ba204411c48744b6cfbb79afd01e50185c3cd91421948f1cc40f1 |
Hashes for gevent-24.2.1-cp310-cp310-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9913c45d1be52d7a5db0c63977eebb51f68a2d5e6fd922d1d9b5e5fd758cc98 |
|
MD5 | 2a0ec564d1b03b0e0b7ec882e85021bd |
|
BLAKE2b-256 | 6bee883de5d784d5ffbb349549be82b805d668a841c2bb2b17bb294af2740d16 |
Hashes for gevent-24.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca80b121bbec76d7794fcb45e65a7eca660a76cc1a104ed439cdbd7df5f0b060 |
|
MD5 | 30ef67b342f0c8f72a716b8f1111d215 |
|
BLAKE2b-256 | 1e0f66b517209682f7ec2863fd6ea13e26cc015d3c7e12c0acbd19d14cc67ac8 |
Hashes for gevent-24.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd23df885318391856415e20acfd51a985cba6919f0be78ed89f5db9ff3a31cb |
|
MD5 | b7c1a338060d5a08db7b219b547eb9ca |
|
BLAKE2b-256 | 8cab348bc172ef72f82c5684764887d4a5751200dad2ce772b164e120dd489ee |
Hashes for gevent-24.2.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14532a67f7cb29fb055a0e9b39f16b88ed22c66b96641df8c04bdc38c26b9ea5 |
|
MD5 | ae21533e654391269621430dbd28fdf7 |
|
BLAKE2b-256 | 6bf514d4085bb7774ed6cb84d9fd2360a9b3a99a502183b4979c8cad253dfba2 |
Hashes for gevent-24.2.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a1df555431f5cd5cc189a6ee3544d24f8c52f2529134685f1e878c4972ab026 |
|
MD5 | 56cf1176f5bc1b529f80aa1eb245c99c |
|
BLAKE2b-256 | ca0d28048ce07ffb9cabf974583092bcb6008b8c55f880609f1515a085adb1f9 |
Hashes for gevent-24.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bde283313daf0b34a8d1bab30325f5cb0f4e11b5869dbe5bc61f8fe09a8f66f3 |
|
MD5 | d7658e342d3416eb714dfecbe35ba880 |
|
BLAKE2b-256 | eb6b396ef229ee05286b957915cb3d96c8ff28793b2f21508ee4b6e51e207bbc |
Hashes for gevent-24.2.1-cp310-cp310-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f947a9abc1a129858391b3d9334c45041c08a0f23d14333d5b844b6e5c17a07 |
|
MD5 | 2a045e7ba18884c627fccb2087a716ee |
|
BLAKE2b-256 | 159ee775a6b261bd871f37a2aae4c335d150f2c64c54c166e8dd8cf63210b445 |
Hashes for gevent-24.2.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3adfb96637f44010be8abd1b5e73b5070f851b817a0b182e601202f20fa06533 |
|
MD5 | 52a51092a508946b141f38190a44b7b1 |
|
BLAKE2b-256 | b29bef3051a551aef8ac5a02a97368f6072df0877f03a031bc0e1bb89bb6ad36 |
Hashes for gevent-24.2.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782a771424fe74bc7e75c228a1da671578c2ba4ddb2ca09b8f959abdf787331e |
|
MD5 | 8a12768b7e6716fb1f075826795abe4e |
|
BLAKE2b-256 | 0c1ccf69f12b20dcca0f4ee1e4e09cb69b315430e5425f585aef3d96fd3a9224 |
Hashes for gevent-24.2.1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90cbac1ec05b305a1b90ede61ef73126afdeb5a804ae04480d6da12c56378df1 |
|
MD5 | bd804033eb145a6b36c3f186e17efc74 |
|
BLAKE2b-256 | 5f67c2e3b6f45f77019a9bec6e594f1abede96fd2cd9292024cc6a334648b5e0 |
Hashes for gevent-24.2.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9ac06f225b696cdedbb22f9e805e2dd87bf82e8fa5e17756f94e88a9d37cf7 |
|
MD5 | 7fa02e6ded444f4a0bca27d4c33c90a4 |
|
BLAKE2b-256 | 7f1fb9b5b38c65e8a69fedb11b43ba3c824b164dde21ffa19491e1e866876c8b |
Hashes for gevent-24.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ceb59986456ce851160867ce4929edaffbd2f069ae25717150199f8e1548b8 |
|
MD5 | 283cbd1692e2602956087ebbfa177c3e |
|
BLAKE2b-256 | 63119f67d737a64217649460b2654b595afd9a2565d20688d92c18b17e522ec5 |
Hashes for gevent-24.2.1-cp39-cp39-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae3a25ecce0a5b0cd0808ab716bfca180230112bb4bc89b46ae0061d62d4afe |
|
MD5 | 4be5168ee71d6f9a965ba34183b5593b |
|
BLAKE2b-256 | 7823328809bc89c21669434fddaa863c33008486a423eb7ea049b2bf82ae154b |
Hashes for gevent-24.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117e5837bc74a1673605fb53f8bfe22feb6e5afa411f524c835b2ddf768db0de |
|
MD5 | 2d17ac3d8d5ccb7d16db19042c09f766 |
|
BLAKE2b-256 | 22e6545cab75f56af4844112f37d2f7e9f5b3e5954be64ab2bcfe048918d7c88 |
Hashes for gevent-24.2.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44098038d5e2749b0784aabb27f1fcbb3f43edebedf64d0af0d26955611be8d6 |
|
MD5 | 50dacd1a875419ef995b474d5effe6ae |
|
BLAKE2b-256 | e7a2ec1f4947eac9b8e199783166e61a696cffa24fad5a5fa950bcd48574edce |
Hashes for gevent-24.2.1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2955eea9c44c842c626feebf4459c42ce168685aa99594e049d03bedf53c2800 |
|
MD5 | 0d9ff5a9f1ec8a189c63dd2b5943aaad |
|
BLAKE2b-256 | 7a1c528238b5460dfcd16a76f4ab7837d6fef899fbf0666c248891efb21b0829 |
Hashes for gevent-24.2.1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9202f22ef811053077d01f43cc02b4aaf4472792f9fd0f5081b0b05c926cca19 |
|
MD5 | 66fec4347375bccc6febee8096be6d99 |
|
BLAKE2b-256 | e726f7349b02cb06c87b2e5eb4547a33b3c5171076460bc45e18ec723d84320d |
Hashes for gevent-24.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141a2b24ad14f7b9576965c0c84927fc85f824a9bb19f6ec1e61e845d87c9cd8 |
|
MD5 | 2072ecebe9fdb2adb8f91e586c0fbff9 |
|
BLAKE2b-256 | 204d0972d1ff47f118aeb32d0b33b50aed73583c31238dc063cb5ba230acbe38 |
Hashes for gevent-24.2.1-cp38-cp38-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f4b8e777d39013595a7740b4463e61b1cfe5f462f1b609b28fbc1e4c4ff01e5 |
|
MD5 | 6c5324fc27bed9fdd20b81620621f242 |
|
BLAKE2b-256 | 075aa0b6c4cdd0917137c587edaba76b6c679181e10d25405247d2f5d8a2751d |