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

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

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=maint%2F1.1.x https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur/branch/maint%2F1.1.x?svg=true

Project details


Release history Release notifications | RSS feed

This version

1.1.1

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.1.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distributions

gevent-1.1.1.win-amd64-py3.5.exe (523.8 kB view details)

Uploaded Source

gevent-1.1.1.win-amd64-py3.4.exe (611.0 kB view details)

Uploaded Source

gevent-1.1.1.win-amd64-py3.3.exe (611.8 kB view details)

Uploaded Source

gevent-1.1.1.win-amd64-py2.7.exe (614.8 kB view details)

Uploaded Source

gevent-1.1.1.win32-py3.5.exe (483.0 kB view details)

Uploaded Source

gevent-1.1.1.win32-py3.4.exe (552.8 kB view details)

Uploaded Source

gevent-1.1.1.win32-py3.3.exe (552.6 kB view details)

Uploaded Source

gevent-1.1.1.win32-py2.7.exe (556.3 kB view details)

Uploaded Source

gevent-1.1.1-pp253-pypy_41-macosx_10_11_x86_64.whl (583.9 kB view details)

Uploaded PyPymacOS 10.11+ x86-64

gevent-1.1.1-pp250-pypy_41-macosx_10_11_x86_64.whl (378.9 kB view details)

Uploaded PyPymacOS 10.11+ x86-64

gevent-1.1.1-cp35-cp35m-win_amd64.whl (382.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

gevent-1.1.1-cp35-cp35m-win32.whl (348.9 kB view details)

Uploaded CPython 3.5mWindows x86

gevent-1.1.1-cp35-cp35m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.5m

gevent-1.1.1-cp35-cp35m-macosx_10_6_intel.whl (473.2 kB view details)

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

gevent-1.1.1-cp34-cp34m-win_amd64.whl (383.8 kB view details)

Uploaded CPython 3.4mWindows x86-64

gevent-1.1.1-cp34-cp34m-win32.whl (356.7 kB view details)

Uploaded CPython 3.4mWindows x86

gevent-1.1.1-cp34-cp34m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.4m

gevent-1.1.1-cp34-cp34m-macosx_10_6_intel.whl (473.6 kB view details)

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

gevent-1.1.1-cp33-cp33m-win_amd64.whl (384.5 kB view details)

Uploaded CPython 3.3mWindows x86-64

gevent-1.1.1-cp33-cp33m-win32.whl (356.5 kB view details)

Uploaded CPython 3.3mWindows x86

gevent-1.1.1-cp27-cp27m-win_amd64.whl (386.1 kB view details)

Uploaded CPython 2.7mWindows x86-64

gevent-1.1.1-cp27-cp27m-win32.whl (355.1 kB view details)

Uploaded CPython 2.7mWindows x86

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

Uploaded CPython 2.7m

gevent-1.1.1-cp27-cp27m-macosx_10_6_intel.whl (471.7 kB view details)

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

File details

Details for the file gevent-1.1.1.tar.gz.

File metadata

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

File hashes

Hashes for gevent-1.1.1.tar.gz
Algorithm Hash digest
SHA256 6ee5b9851b2acde08df7ab9b9a2903f58b4b0e555405c444f4b1dd16f71caeea
MD5 1532f5396ab4d07a231f1935483be7c3
BLAKE2b-256 12dc0b2e57823225de86f6e111a65d212c9e3b64847dddaa19691a6cb94b0b2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1.1.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 13e420557adfade46681fb210d39a6b1e98a392d0f739db81deb8653a04d2093
MD5 4ad90568fe19c372c86c621c17fb44b2
BLAKE2b-256 4fbbf3f44f2e8a76065d4a9c782156466c5512efefdccba8d1d5a54dd53e2cea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1.1.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 63cdad5907cf7638b1750150cb0ccdd9bb5ed55568e08a14ecb6446429d76b09
MD5 431100088de90b6c2ffcc110656e7112
BLAKE2b-256 c163fbff3e6d01cfead6f9ceed608dd6eb9d678ec09677b10c603870b8baa5dd

See more details on using hashes here.

File details

Details for the file gevent-1.1.1.win-amd64-py3.3.exe.

File metadata

File hashes

Hashes for gevent-1.1.1.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 cfcd12fd7b30308bdc9cf0b942a31093235def02d40561b509ff2ead27ca7475
MD5 cf627fa14726f768118620b71cc3fb48
BLAKE2b-256 18ec5d9ad1ed6bb885dcb9ce57d410648c64c29966ed6ec661be7e7490f827f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1.1.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 034488dcc2de4a6b8b86667d42e7685e10ccd2ef5c382c35c5d39fa55a098609
MD5 5136da7035a96beb686b92932c4ceac7
BLAKE2b-256 a67d288ad220d4ff8ee1d65a909ec319bf1f3f4b04cbc93823f87d1e027bcfce

See more details on using hashes here.

File details

Details for the file gevent-1.1.1.win32-py3.5.exe.

File metadata

File hashes

Hashes for gevent-1.1.1.win32-py3.5.exe
Algorithm Hash digest
SHA256 baa1964683a92841ba7c2255a578939c705240d541e45c2651cf10c9351bcd99
MD5 0a1c1063b4e53b3417caa9baa6b11472
BLAKE2b-256 bf09c4a86d13996cf52bb022d3e9fac57253b192a44610dd91c2716c5792181c

See more details on using hashes here.

File details

Details for the file gevent-1.1.1.win32-py3.4.exe.

File metadata

File hashes

Hashes for gevent-1.1.1.win32-py3.4.exe
Algorithm Hash digest
SHA256 da26b17a3a2844b06fed9a911263fb15f2287700e1ab5ab047bd264d70cbd7b3
MD5 ec7b5418a99262c0882c4e4fb2a57aba
BLAKE2b-256 da25bf0436ccacbe9029730d6af8b61d67285a886a073fd7a5d64277d2fe09fb

See more details on using hashes here.

File details

Details for the file gevent-1.1.1.win32-py3.3.exe.

File metadata

File hashes

Hashes for gevent-1.1.1.win32-py3.3.exe
Algorithm Hash digest
SHA256 d43231806d36360bd13b2f8da6894216834cd5039cf3dc3d5030e5d83820b13a
MD5 1c6b7c06b464ff68151ec89493895d95
BLAKE2b-256 6b86106d749853a1f387cf7cd406e22deb8179194de3684187b808da6cc47c40

See more details on using hashes here.

File details

Details for the file gevent-1.1.1.win32-py2.7.exe.

File metadata

File hashes

Hashes for gevent-1.1.1.win32-py2.7.exe
Algorithm Hash digest
SHA256 3ebe92c15e4afdf5eedd0eb7334b8ceb4f394a9ac41a8f4ee111e072d95a910f
MD5 fb4e1106274eec12496ec361bc2b5311
BLAKE2b-256 dfc0d273df4d75487293a956b3bd53482dd2d59bf0badcdd13d29c53ec26872a

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-pp253-pypy_41-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-pp253-pypy_41-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 a2df5b4b954c71a8d45d9dfa3f0458cd1ae8ad4f1f93119e0954e05aadabde91
MD5 b5104a0159702bd47f21eaf2a256db9f
BLAKE2b-256 f2d8eb2f4c33f7f8c03a366e869c22a1ce63a8a2cad96f658202e2fd3fbf1d15

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-pp250-pypy_41-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-pp250-pypy_41-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 952dc2ec9d1ac3d20171b174c9b9cb6555b7d090d22b29a8aeeaa9cf34be2345
MD5 77ae80cd729027550c0ccf2248305eb8
BLAKE2b-256 afd2a9ee588d72c54cec4e9d91b152c82b4fb0dc6b7da70f3018dbdd6cce2a63

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 787627432d325bfeb5a09f199799ce8795dc16e48ffa7a9471d7f61c68951596
MD5 79b8a19d4fcf2629c8d0729a29065aa3
BLAKE2b-256 ebc8495e88fe52008b0d424343bb73418e46bb8d6e58e581498f610aa2b8cafe

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 fdbe8324495a5676869a376496fab28506c07d3895e213e9f723359d25e63838
MD5 44a14abe71a46023144f52e560d12bd9
BLAKE2b-256 8793c7a1ee56d4bc0bc8833188f4d131cd1e26e2090ef58371dff6a7402188f9

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 47fe7b2c05f20c1b64f0232c1b695182174127703f9a050497941c24bf482723
MD5 18cc16071b74859aeb6003cdf02e55c1
BLAKE2b-256 ecf130f35e45e217bc53d5d9a1827e73be58226308067fee08727038e2ad746f

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 b2755a0cd89278d60b48fde995a6e641549ce65b68618000437da3d4284b3b14
MD5 35909d971c36b6734dbbaf86195a3e34
BLAKE2b-256 923250ef3d48c89e1833906898bc3b323956cdd4fcb6050831746cd1583c62e8

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 7caaa026176d31207b09259fd013e3da9be0b35dd6ac9bb5526a0a449593ea97
MD5 ad068c7a99ce23594ee9d81dc8940d92
BLAKE2b-256 eca92a01c709f66223a157da245ef7950dd280201976164042a97ffa22a07af0

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 2b5d67fc93819d6d003b493c2c98849d10af06fee321e2ba10c4bbf93b2c8fab
MD5 c601cdd567e1f33ac2ea1d78dd3b5b06
BLAKE2b-256 1d6d7c74fcce62f2b9f986f697007e08ba688869995afbe83402824303bd79fc

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 343c62d4042f2833f5f459a4f1c1e2fed628ca2d75ffb582829e7d46effbf036
MD5 4e41da2554156e44195dd52fbe888a69
BLAKE2b-256 c81075262939e7085db7051d3c57ebfdca60cbed345fea846a3f9abe9921daef

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 acd1c956a42e6a6968bb75f8f1e7385f20b06281ff0f5390c4f6a26b01613d70
MD5 b6992fd9e7729785c8d6bd871e050534
BLAKE2b-256 c941ae62538161ba2caea8a7c6089400fa1f7283e154bbe3a6e3d68d0651fec5

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp33-cp33m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 129dedb82a9b0d9a3e32656ee74c9f338ae379a6c9178792e4c23bee8418a648
MD5 f99f9d99b69970f796abaabed44543b3
BLAKE2b-256 b5880162c5daeba92859417dd4944a002fba93b6a484ad98987a7f8e4a618ffb

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp33-cp33m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 f83fb1dc357b762b0d277561ce90cc6616158e4bdf100cb7948a3101fb8f31dd
MD5 5ac366d9a83afc6db4a3d64187dc97b3
BLAKE2b-256 5a6a439a64b652515aac619188057a177e84a4dd54f851df8a42604c3eb01735

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 51d2893311e899d9582981602452919aa39998d72e0dc721e9e5655f191bc819
MD5 eae09bac0ebc7b08353ef18a1c1576d5
BLAKE2b-256 101066b41a7a2bef73094b9fb65a6a13aaae7c272f760666ac6bca8101078438

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 b8e3e01aa324b54d7b430a58453b3ac24810bfc88c441216a71619b6a1dc709e
MD5 7a2f72068c1e9ffaf9835fb38b12112c
BLAKE2b-256 1d21ccea78a5565f9e1aba9df10bddeb607641fd1b2ac132c23021c94148ddbd

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 39fb642270e8c1a244d61f21a97c09e230e295c82facb562ce821ef891fa084a
MD5 676aba25e46930c085c2a682a2704506
BLAKE2b-256 40f14f696a1dcdb5f21b7e31a5900e5b5144326348ce278636695bd159f2a2cd

See more details on using hashes here.

File details

Details for the file gevent-1.1.1-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1.1-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 327913740250934b826df6f9603feabfe224a1e40fd424c12e74aab1755ba179
MD5 6b8036a49e7f4800b409b472ced4f441
BLAKE2b-256 0b780095a71dd391563d0e625ad9377b7374e35b8df50a99667b2585a64f3703

See more details on using hashes here.

Supported by

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