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

https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github

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

Code Health

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.3a1.tar.gz (3.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gevent-1.3a1.win-amd64-py3.6.exe (1.5 MB view details)

Uploaded Source

gevent-1.3a1.win-amd64-py3.5.exe (1.5 MB view details)

Uploaded Source

gevent-1.3a1.win-amd64-py3.4.exe (1.2 MB view details)

Uploaded Source

gevent-1.3a1.win-amd64-py2.7.exe (1.2 MB view details)

Uploaded Source

gevent-1.3a1.win32-py3.6.exe (1.3 MB view details)

Uploaded Source

gevent-1.3a1.win32-py3.5.exe (1.3 MB view details)

Uploaded Source

gevent-1.3a1.win32-py3.4.exe (1.1 MB view details)

Uploaded Source

gevent-1.3a1.win32-py2.7.exe (1.1 MB view details)

Uploaded Source

gevent-1.3a1-pp2510-pypy_41-macosx_10_13_x86_64.whl (763.2 kB view details)

Uploaded PyPymacOS 10.13+ x86-64

gevent-1.3a1-pp259-pypy_41-win32.whl (719.8 kB view details)

Uploaded PyPyWindows x86

gevent-1.3a1-pp259-pypy_41-macosx_10_13_x86_64.whl (744.7 kB view details)

Uploaded PyPymacOS 10.13+ x86-64

gevent-1.3a1-cp37-cp37m-macosx_10_13_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

gevent-1.3a1-cp36-cp36m-win_amd64.whl (916.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

gevent-1.3a1-cp36-cp36m-win32.whl (860.1 kB view details)

Uploaded CPython 3.6mWindows x86

gevent-1.3a1-cp36-cp36m-manylinux1_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.6m

gevent-1.3a1-cp36-cp36m-macosx_10_6_intel.whl (1.4 MB view details)

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

gevent-1.3a1-cp35-cp35m-win_amd64.whl (911.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

gevent-1.3a1-cp35-cp35m-win32.whl (856.0 kB view details)

Uploaded CPython 3.5mWindows x86

gevent-1.3a1-cp35-cp35m-manylinux1_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.5m

gevent-1.3a1-cp35-cp35m-macosx_10_6_intel.whl (1.4 MB view details)

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

gevent-1.3a1-cp34-cp34m-win_amd64.whl (939.7 kB view details)

Uploaded CPython 3.4mWindows x86-64

gevent-1.3a1-cp34-cp34m-win32.whl (888.0 kB view details)

Uploaded CPython 3.4mWindows x86

gevent-1.3a1-cp34-cp34m-manylinux1_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.4m

gevent-1.3a1-cp34-cp34m-macosx_10_6_intel.whl (1.4 MB view details)

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

gevent-1.3a1-cp27-cp27mu-manylinux1_x86_64.whl (2.1 MB view details)

Uploaded CPython 2.7mu

gevent-1.3a1-cp27-cp27m-win_amd64.whl (945.1 kB view details)

Uploaded CPython 2.7mWindows x86-64

gevent-1.3a1-cp27-cp27m-win32.whl (886.7 kB view details)

Uploaded CPython 2.7mWindows x86

gevent-1.3a1-cp27-cp27m-manylinux1_x86_64.whl (2.1 MB view details)

Uploaded CPython 2.7m

gevent-1.3a1-cp27-cp27m-macosx_10_6_intel.whl (1.4 MB view details)

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

File details

Details for the file gevent-1.3a1.tar.gz.

File metadata

  • Download URL: gevent-1.3a1.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gevent-1.3a1.tar.gz
Algorithm Hash digest
SHA256 295351d0cf9a2c2d41bad2baf958461d3ce29a78f50ee48dd880c8063a7faf3c
MD5 48942df95375e22aed7970652c440c4c
BLAKE2b-256 69823b99d84531bc8f38fbcf1e584edc44e153f375dfd419eae5e56e0b1493ea

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win-amd64-py3.6.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win-amd64-py3.6.exe
Algorithm Hash digest
SHA256 6259d3234c16ee17c43580af74daf892366cf841ed7d2c97f52e2090ae8ab25e
MD5 70481d4ec0cfc80b94cf297ff7b603de
BLAKE2b-256 ae006f1e0c6ceda1f06829805a181580ab175967b32ce28fed26e3717ed9a654

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win-amd64-py3.5.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 317bf65f7f23209726bec99de48968a1b7c6074c415500aa2d41cc861c6556d0
MD5 96fbb518fe45678672c0194c1ea40c92
BLAKE2b-256 9ec9e2648169359384e9e75c4b8d6104c866131a646db749d8efce49e8cd4d5e

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win-amd64-py3.4.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 31b843f968719d5fde7b320ca1db2fd35a2b0e8f1f7c7e31fe4c9dc746294264
MD5 36c1c38bacf56ba70dea21896a43ec41
BLAKE2b-256 643c282715ebda4738dac4cc89d0e8d661ed2cc56c375ca70dcd83dd62569767

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 b44ba25d85a64184eed9476b2350c8c08fc53c1d973d13a02615537a1d14e803
MD5 f52701681f4aa6cc3fb5359c65485cc9
BLAKE2b-256 3a9499ef47d7427623d89d842b683c8f0df9c43bbb61b36afe35bf5d7da56e47

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win32-py3.6.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win32-py3.6.exe
Algorithm Hash digest
SHA256 6171066300f71f8d45c9cc8734fa985e4bd410d70144ab828eb8f4fc1c2e3655
MD5 33b64e6d8738a40193b80994f1a969fc
BLAKE2b-256 b259941beb19424c945c1b6a38386b09967a44179ea53180343101e1570d9f69

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win32-py3.5.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win32-py3.5.exe
Algorithm Hash digest
SHA256 7a5716d63580f3e963c81682360efd905482ce2d4cd8fa4dd54c29bb8c256ebb
MD5 ad3725ce12c2fffc4fc3cbd204f6b69c
BLAKE2b-256 2b83b2859e2bcb31454a9b66529f24d46d05ccc3d28aae091db1650a6aed464e

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win32-py3.4.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win32-py3.4.exe
Algorithm Hash digest
SHA256 ac3d34792ab97d82b0cc054c75a13671d7c1e8efb539335e56d39ab95cfc5b58
MD5 314660967446065bf9f0fa67fee87a16
BLAKE2b-256 af13a103fee097f2d3e56973a964b3621179c710a81d5a087244dcb87773e184

See more details on using hashes here.

File details

Details for the file gevent-1.3a1.win32-py2.7.exe.

File metadata

File hashes

Hashes for gevent-1.3a1.win32-py2.7.exe
Algorithm Hash digest
SHA256 48259cbd96e2ee382e3c0d84683f1277d046ed19ccd170be9eb2c25c856cd6c1
MD5 8920d16f5377ae331da08f8700683f99
BLAKE2b-256 b5ee7472fba23558d5bb63e2a50a64279796c8024c29b1fe572a4040c358fcf7

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-pp2510-pypy_41-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-pp2510-pypy_41-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cb54fe8078010731357e02d604c4812898b1b20971aea224d5e6aaea05b9d0f8
MD5 0c93b169cddde88b34cefb8e60b3943a
BLAKE2b-256 2f4e745198f7be109dc727b4d03dc9a3bb436fe0e8439edbdfb5d9ba5c3fe5c6

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-pp259-pypy_41-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-pp259-pypy_41-win32.whl
Algorithm Hash digest
SHA256 8c14e55fe93ab52d300a75eae0482eaad02cd943aebba4c2d5a1500877041e76
MD5 d0c0cd0dcf79950b140e68a61477844f
BLAKE2b-256 4eab3dd5445ae9bde7626c999fb597a760ce41598662a94c1b6c407c6196287b

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-pp259-pypy_41-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-pp259-pypy_41-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 469b5029c6d3282a49a11ff918a128747b77103707ee76d3ea983ca6705abdd8
MD5 83880e5602d57ab94449abc9155d31c0
BLAKE2b-256 2b019f754a3915c72483c5e4e7b4a1305b0d4053fef9b58939d8699bd6dd3e73

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 daa46d7b5d0fc2e25fca3a2dee5f335715775aaa77b7577d9c95d0998d4f72f0
MD5 4be97db59c593b609dbdf2351e050f31
BLAKE2b-256 959fe9924b0b566a82cff0a56a64b61171cd089fd5b7f930da6fe35e57458a9e

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4febac01891944ed48b860e78bf6697e8fde79de6040a6411670cdf3cde076ac
MD5 e52aab4efb55c6e4758bc98e6edbf5b1
BLAKE2b-256 5167a61024e43af7597c49ec8dfbc199c17db1b3cd8273c8df6ae04ce74319b4

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 b0ac9e9aab6e9773ce0870ed8c93f4b9047da5096588a9f241a388b12c64cad4
MD5 68b1659f6389c39c5a930991927b4598
BLAKE2b-256 60425c626e693b87ebbcce266f0b91f9735b1c52053d08f605c986a6ffb6ef83

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 11b05c7922d256692376b744a56b15a5e29693ff2d883d51e7349e749be0a686
MD5 046da42efa0665e59ff27b6c2430f9a9
BLAKE2b-256 92da82b9cc1de77087ebb0ff2e2575e323493e45a36ec0cb0b6b19f5f74b285d

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 83b52221b6d0021bb8061a9816e09a5eb359f529a0501714dc2b861443ba790f
MD5 26a01fb5f9b363251ad95c34edaadb6b
BLAKE2b-256 20ea2a11baf73da4e1baaa303935e3272fc762bcc819909111279af8df2fd06e

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 6c93358811c286c112bffc5db1c45372275caa08f7bccb709034f96953d3ba5d
MD5 4642141be5e20a1c35602a270bdb7f95
BLAKE2b-256 556ea6fb674d5d08e59c87c77406df16c3c693cc47ffc89ae37cc84e493de5fd

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 12b17b201ba4f0bdb222f51c428ca3a03a7e8bb49db2ea90de21069d074f69b7
MD5 cb89e3cb91f64b4cb55aca013bb303b9
BLAKE2b-256 f19b3fc04754a5b3d473cf58bca1d7d7f925666d4781b22428afcdfaf2f4c1f5

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 539567aea4b742450037345a7f5a3c8497212adfd029239ed4986a372935a30e
MD5 20f83e6612337234ea9422ff76d49a51
BLAKE2b-256 d9da7db73a350b95b87a083a9439cf9cf2d11726557026c864f52906e6e6b5ce

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 25ae9d0e159af6265dcbc6b4a128fe6accdb7432483c0ac9c80d8019d07679dc
MD5 9756a4b752093a482c1dc7e94ae1f786
BLAKE2b-256 5f120d8abffb7270b12dece76250cce9326439e5cc4ad7c66f6c3f7d001ef1ba

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 d3189467954c9588bf03fea2be6dcf5bc0ebaa4fdbef4dbf734c1ec63409ac82
MD5 6160e1b61ddd406d4eb2b22bf7218ff2
BLAKE2b-256 0f6255369294b937f39d73f5eba1a2a3152c9de879e2adafd7c7fcc5fc034fd9

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 c1299822a7214f6829ab6d16b31691221199d43af056acce2698121e4c12f71a
MD5 f693e50e7909d48109bf42b3238f1961
BLAKE2b-256 516d7f0cedb0fde054f5bd6c7e17ca749df51442c5b41041dc2a4b5d354b4b9d

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7d4efcd85fa3371d4ed434c82077118580e32f905adabbbf34bcd3bde21f7b1f
MD5 f3654c45087b4d1f5c973cc517a5ff1e
BLAKE2b-256 5bd75b005daf6cf4d6367fa782d29c5684bcd900b68cc7c4bf3a9eb5e4de705f

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 7e84931dd71a4c0e03b9006167855f4b23bf1d1c1f3ac3e819fbe800ea8a8ebb
MD5 bae337410aa36dfda188cbf620175373
BLAKE2b-256 cc9773b23ac8c219cf815cb1f4461050622e444a1e98ce8b500e05639ca7ce82

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 186bbb6735910eaa907ee81508c7791b7cc1eb918824cab833106c620fa986be
MD5 822e1612dd396e8e8616a76a8e89962d
BLAKE2b-256 a7321a0a275d1adec847983186795994e0c0d0ab781f1fa11442bc86c32d1b88

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 ef41dcfef33915d6e61ea0afcdb51553ea9cf57efe849695b12498fc19646702
MD5 ff51ec993d8307cb689fc940b2bb8a54
BLAKE2b-256 17549bb10ba801b4e47ce5e1bc67af0889dfc1e4c9b4fbfc29c091b189b18c42

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 e5b904b2a53cd52bc8b13dd33b53cefda4089d53e7e9dadcc7e4f2ff0a6377fc
MD5 93215a9e2f1a60b7c75c1f835226dee3
BLAKE2b-256 aa7f9a92e3216e2c61218b12d5c2eea8b4f79e2a215ab20613a585f81843bbf9

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1c928b666452af512df364f4159dcd855f2d3efedf6cafc05e3708b551998f1e
MD5 768e116a821ea0a8293f80c590bcfb28
BLAKE2b-256 bae7a5770decbab9d67869dd54a14277e576eaf657568d105880bae823bd5354

See more details on using hashes here.

File details

Details for the file gevent-1.3a1-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.3a1-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 da3420073be6024a8f0ff8d79c97fefb0ed41ad56f4f341dca37e2877edede53
MD5 8c639d44495820e2783b38b5762d570c
BLAKE2b-256 18c90e368d8485fa1570954801a3e4aa775ae9086b1cc2807ccc1bd3fb2c6723

See more details on using hashes here.

Supported by

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