Skip to main content

Coroutine-based network library for Python 2, Python 3 and PyPy

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

Get gevent

Install Python 2.6, 2.7, 3.3 or 3.4 along with the greenlet extension (Python 3.5 has preliminary support). Or install PyPy 2.6 or above (but not PyPy3).

Download the latest release from Python Package Index or clone the repository.

Read the documentation online at http://www.gevent.org

Post feedback and issues on the bug tracker, mailing list, blog and twitter (@gevent).

Development

To install the latest development version:

pip install 'cython>=0.23.4' git+git://github.com/gevent/gevent.git#egg=gevent

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:

pip install cython>=0.23.4
python setup.py build
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=master&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=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.1rc1.tar.gz (1.7 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.1rc1-cp35-none-win_amd64.whl (374.3 kB view details)

Uploaded CPython 3.5Windows x86-64

gevent-1.1rc1-cp35-none-win32.whl (339.6 kB view details)

Uploaded CPython 3.5Windows x86

gevent-1.1rc1-cp35-cp35m-macosx_10_11_x86_64.whl (423.7 kB view details)

Uploaded CPython 3.5mmacOS 10.11+ x86-64

gevent-1.1rc1-cp34-none-win_amd64.whl (373.6 kB view details)

Uploaded CPython 3.4Windows x86-64

gevent-1.1rc1-cp34-none-win32.whl (346.5 kB view details)

Uploaded CPython 3.4Windows x86

gevent-1.1rc1-cp34-cp34m-macosx_10_11_x86_64.whl (423.6 kB view details)

Uploaded CPython 3.4mmacOS 10.11+ x86-64

gevent-1.1rc1-cp33-cp33m-macosx_10_11_x86_64.whl (423.6 kB view details)

Uploaded CPython 3.3mmacOS 10.11+ x86-64

gevent-1.1rc1-cp27-none-win_amd64.whl (375.9 kB view details)

Uploaded CPython 2.7Windows x86-64

gevent-1.1rc1-cp27-none-win32.whl (344.8 kB view details)

Uploaded CPython 2.7Windows x86

gevent-1.1rc1-cp27-none-macosx_10_11_x86_64.whl (420.4 kB view details)

Uploaded CPython 2.7macOS 10.11+ x86-64

gevent-1.1rc1-cp26-none-macosx_10_11_intel.whl (653.1 kB view details)

Uploaded CPython 2.6macOS 10.11+ Intel (x86-64, i386)

File details

Details for the file gevent-1.1rc1.tar.gz.

File metadata

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

File hashes

Hashes for gevent-1.1rc1.tar.gz
Algorithm Hash digest
SHA256 663d92d490497fbb094a9468beb1731ffb177ac8c6fff760a7664143051531e7
MD5 15970cc861c99bdc4acbc93c12c8ee03
BLAKE2b-256 8c5f131c057e2f929026fa30e874e25f048375a5db21792fcd1993abaecd8b98

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 20eeea78d7f28f839cbe88bef9aa30f10ea6a5239e40ef8a05d65ec4b3307ed4
MD5 2b5508e64442c9692f09cd78e9ad538d
BLAKE2b-256 82a1a257df59a6551fd4809f0d14160aa36602d5196f76da0ca872ddade0ad1b

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp35-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp35-none-win32.whl
Algorithm Hash digest
SHA256 bb867ee7e6e7715100d5f1d93dcd27bcf4ef6de498ab52714b9e4cd653d4742c
MD5 b9b78281904c81ce8c7dfa984507ea49
BLAKE2b-256 a0d52ff609ecc77af1de6641c92f6393344d57c52585ccaf29a56d7f98205f26

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp35-cp35m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 5c4c4f65c7d668eb8ca8c46283db37d7002206f0c6db8ebefd94e426952ac766
MD5 399e9ab4b7236d38dc1eb15dc44375ef
BLAKE2b-256 adf8d9860e005b641b68e2be18ad142fe89b713d909ad4827e25b640222d1bbc

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 9031c33ee5ff6b6ff5abb19bad735fe11dc2aaebff4f44f6a3dc24006f065924
MD5 df031add8d590f955ea2a3f67affed0c
BLAKE2b-256 024421275dfe4e2f70f2c14696d0d3d5072b4d37486176f6a7843dbcad82c56c

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp34-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp34-none-win32.whl
Algorithm Hash digest
SHA256 e2d6079ac4602cbade8323770410c4d43d246c2e1e6d496c362f2dabb0cd930b
MD5 fe73408d3bad296a82c96a21c6446cc3
BLAKE2b-256 6a9dff9585e6b3bca6e571b63fc14585bb8cc15b349fbd19367c6e2649be378a

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp34-cp34m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 7765a2a98d7387575634e4c6852fbdd79711b179293bc17aef6af5a436798a8f
MD5 0e4f5bb8b29c6faa59d54ba1d61e4c70
BLAKE2b-256 10dd95f5fe74f3996dbdc510c13dd4b5ca954e7a184acd275d0c137ab0d147f1

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp33-cp33m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp33-cp33m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 544f6e541b6bdaa84e45dd7558dc2a4169c30ebcddea46fd808f0381b2deec3a
MD5 69208b08ce9f3757127765158915b1db
BLAKE2b-256 7e27a48996b66c97f94377f7585a15eff7571716139ac09cccf0f26d84f57002

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 03fe4818a55e002c7082ef3ca4da4731446062cf54996996995f85395d9859fb
MD5 8473b70e5ace5725c54bee97c322b4a5
BLAKE2b-256 19c96d5ebb023742c7c534adafae12603f66333d5660cec850fe6c7de31ed71f

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp27-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp27-none-win32.whl
Algorithm Hash digest
SHA256 72403fb2c18130b30e047a2bbe75568c79288b41119ac95a2a38437524120e78
MD5 c696491ecee68d927b9484399c2a74cd
BLAKE2b-256 8587f06ac5a40008fc9f8f7d2ec048913c37a9b400c75f28a4a81d660a15c6f6

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp27-none-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp27-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 73e22d048095c1d0dc10374b0c1d803971a69100e0d0be35ff80230d0dfdbca0
MD5 0fe4eee98c78309028c18a7e3ff482db
BLAKE2b-256 b03f998b4cfc49ffad246a64750c307c2a6720eb7f85d31803002acf37bad0cc

See more details on using hashes here.

File details

Details for the file gevent-1.1rc1-cp26-none-macosx_10_11_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc1-cp26-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 b8899b1971426625ac4aa0e0cf60d30bb21cf04888c99f1c6587f20bcfb41471
MD5 17ae73c37f3eb8b1c77366a78d39fa84
BLAKE2b-256 f02c1dd63b6ce1ba3a8668faf77b0ded7b2132eee98b274ddeba683303e9c538

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