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.2.1.tar.gz (2.8 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.2.1.win-amd64-py3.6.exe (1.2 MB view details)

Uploaded Source

gevent-1.2.1.win-amd64-py3.5.exe (1.2 MB view details)

Uploaded Source

gevent-1.2.1.win-amd64-py3.4.exe (862.0 kB view details)

Uploaded Source

gevent-1.2.1.win-amd64-py2.7.exe (866.5 kB view details)

Uploaded Source

gevent-1.2.1.win32-py3.6.exe (1.1 MB view details)

Uploaded Source

gevent-1.2.1.win32-py3.5.exe (1.1 MB view details)

Uploaded Source

gevent-1.2.1.win32-py3.4.exe (808.1 kB view details)

Uploaded Source

gevent-1.2.1.win32-py2.7.exe (811.4 kB view details)

Uploaded Source

gevent-1.2.1-pp256-pypy_41-macosx_10_12_x86_64.whl (594.5 kB view details)

Uploaded PyPymacOS 10.12+ x86-64

gevent-1.2.1-cp36-cp36m-win_amd64.whl (634.3 kB view details)

Uploaded CPython 3.6mWindows x86-64

gevent-1.2.1-cp36-cp36m-win32.whl (608.1 kB view details)

Uploaded CPython 3.6mWindows x86

gevent-1.2.1-cp36-cp36m-manylinux1_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.6m

gevent-1.2.1-cp36-cp36m-macosx_10_6_intel.whl (1.1 MB view details)

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

gevent-1.2.1-cp35-cp35m-win_amd64.whl (633.1 kB view details)

Uploaded CPython 3.5mWindows x86-64

gevent-1.2.1-cp35-cp35m-win32.whl (607.2 kB view details)

Uploaded CPython 3.5mWindows x86

gevent-1.2.1-cp35-cp35m-manylinux1_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.5m

gevent-1.2.1-cp35-cp35m-macosx_10_6_intel.whl (1.1 MB view details)

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

gevent-1.2.1-cp34-cp34m-win_amd64.whl (633.7 kB view details)

Uploaded CPython 3.4mWindows x86-64

gevent-1.2.1-cp34-cp34m-win32.whl (611.1 kB view details)

Uploaded CPython 3.4mWindows x86

gevent-1.2.1-cp34-cp34m-manylinux1_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.4m

gevent-1.2.1-cp34-cp34m-macosx_10_6_intel.whl (1.1 MB view details)

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

gevent-1.2.1-cp33-cp33m-manylinux1_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.3m

gevent-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl (1.8 MB view details)

Uploaded CPython 2.7mu

gevent-1.2.1-cp27-cp27m-win_amd64.whl (636.8 kB view details)

Uploaded CPython 2.7mWindows x86-64

gevent-1.2.1-cp27-cp27m-win32.whl (609.3 kB view details)

Uploaded CPython 2.7mWindows x86

gevent-1.2.1-cp27-cp27m-manylinux1_x86_64.whl (1.8 MB view details)

Uploaded CPython 2.7m

gevent-1.2.1-cp27-cp27m-macosx_10_6_intel.whl (1.1 MB view details)

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

File details

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

File metadata

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

File hashes

Hashes for gevent-1.2.1.tar.gz
Algorithm Hash digest
SHA256 3de300d0e32c31311e426e4d5d73b36777ed99c2bac3f8fbad939eeb2c29fa7c
MD5 6700a2433c8e0635425e6798760efc81
BLAKE2b-256 54dd17dc7e899ac7c1de2d19b367b29d90fdb4cfe83bda8c2581464906c9399d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1.win-amd64-py3.6.exe
Algorithm Hash digest
SHA256 5e10fb0b97eb749a77b07bc240afc5239e8e34f244033ca3814898213c587ae5
MD5 e7214f2f15e85ec754f18c6e29040cc3
BLAKE2b-256 f4f26b1ae9fa04c42aacf0c74c800127e59a6005597f1090f33c77c95f528e1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 68120aad39b2c02e105f1672b14b68a4fbd14fd1df5ff2b4539141568b9d82d4
MD5 cc4cc66610e55c34e90fbbece2573ce4
BLAKE2b-256 c38abb82f32e61146146ca7870792a8dda48c2cf17cce12a14d372251a8f172c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 5d11e02f5fc06f759bc123e05644c82efa1bd729913fc6e77e83c0f8faa7f892
MD5 099b5656425fad9a8aec591f8fe0d376
BLAKE2b-256 1407711383c97acddc3f55660ec81a61eef26b1ee4177df6b780471345ecb42d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 10f9559d95d2e104d38b3259732fbe6e2132b0657a2f0cb42d8303b7a0de19f2
MD5 a2b8c76f010dd0efdc3f3cbb487d15e1
BLAKE2b-256 752d099169d2108b9091eef58d2d4b25a562812844542e663a0e6d996a5e051c

See more details on using hashes here.

File details

Details for the file gevent-1.2.1.win32-py3.6.exe.

File metadata

File hashes

Hashes for gevent-1.2.1.win32-py3.6.exe
Algorithm Hash digest
SHA256 0df5f8e95e65c21d4b451874e209c8b016d0f0bd325d0dcce071a95b73e84f43
MD5 c2a302e18ecc912a64f2a33c46809dfb
BLAKE2b-256 29f09230323a406b4e8e0f169e6d94afad85c9100e0b984fbd5e7cb829172c01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1.win32-py3.5.exe
Algorithm Hash digest
SHA256 fb0108d88cb836800610af67d6df729354595816f2d85eeb6ccd1ff29b7de2d0
MD5 4b8e90db7a80a36d5dda56049a36aac3
BLAKE2b-256 55f5f3f44e902d3a74d073263b245512d6e2ac17cfa8c1247726a9d149b861b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1.win32-py3.4.exe
Algorithm Hash digest
SHA256 2a5c1489248186ef649b8e5aeee01fb26822793a356da9d8bbf8e87b907d067d
MD5 c6b27a963018b93d01fb03606a663539
BLAKE2b-256 2c2120eef7991da13df6d81d841559bb1a5cc75df002969553538a863d68903e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1.win32-py2.7.exe
Algorithm Hash digest
SHA256 d5bde8b2844ba0d3e0cbca929a3d5823e77356591972efc3d8150d83332bba3b
MD5 c2203f1acf6b770438ec4b7609ede5a6
BLAKE2b-256 9cb63e0fd635c1c074876bf087f6cdef7ea02c56965ea7c8098a80786c1a26ee

See more details on using hashes here.

File details

Details for the file gevent-1.2.1-pp256-pypy_41-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2.1-pp256-pypy_41-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b49aaf58b0da1c3f62a90f39f125f15fce7825d0fc74313447d392d055c90a3c
MD5 d08d522617a883a2fabb9e3ae7770750
BLAKE2b-256 e38e71be0586aca933ef4a3702c7676a6dd69bc92155e97ab6d5133181b40b0a

See more details on using hashes here.

File details

Details for the file gevent-1.2.1-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.2.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6b80ee2d4e72521cf600ab5457d4f3269c0c4773305a49571378bfce81098a35
MD5 6b120d9b2388f7accb6e89c73e50d7e8
BLAKE2b-256 92a75f126b61317a8fd7e78af5b8d40b68a5571d88f750dd77151c56d3fb9ec7

See more details on using hashes here.

File details

Details for the file gevent-1.2.1-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.2.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 c3e414820dca7fa7c14cf002f8d8ea0e41f600bedb2e00146fdd4b3998c6411f
MD5 d8e3617f924f2eed655e199c0a7680ab
BLAKE2b-256 4f7fa18e9c2445edfe5f569b623bc9bb1d8fc75618c959f118e3035c635a9603

See more details on using hashes here.

File details

Details for the file gevent-1.2.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b81ff56d2b3287157f6b0bc8eef3cddb87ee955ae8f7953cf0052b8ef8236ee9
MD5 22219afcbf9b090480601b4e3e7fcdce
BLAKE2b-256 1f64c264ec0e19cc907b1ce77db17ed2ae0281dcf6c2e7e27a03169f5cd9f21a

See more details on using hashes here.

File details

Details for the file gevent-1.2.1-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.2.1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 fa493697197912937cd4a0038a495421dcb066b622294fd95bcd77afa3c8b9ca
MD5 10da780557b65c5cc82511aa940307ba
BLAKE2b-256 654e09b2e8e72fbfa66f4e09f086df89a814a2c86ad699edee62f79ffd973f19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 c97105b89e0001383d73f6db4e4fa9db18fe102ff2ba78ba0c946221cab10989
MD5 4da52ece8a1a21ca243480471ad2db47
BLAKE2b-256 0a2ef6a37a6cfcda8b9b13466349734759860dd52d7ba294dd212f1d8c460fcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 14bce42dba2c4d4d97e4d0871747335ba5e1c4ec605fa9e0baefca30a48bd95a
MD5 109f924798c8d03a7766cf99e4926f53
BLAKE2b-256 f31e256b0e61173a35db42a20077eda0b9c6aa05dfa74389ce45c26d873bd332

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d471ba8095dadfb7b555e65b521a1aa4c4276a4cd21d5b8c1ae8b05a65f83c8f
MD5 5304675740a6ef4931f011285a9a105d
BLAKE2b-256 c730967f7e051d5b9fccf33d5386abd11a5ce6d7048712567b6a5e63a942311d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 5ccdffc10dee991eb2e375c7cf6dc9d920ad52afcdf3f3cb2e413ec0f76a79dc
MD5 7b0a9e867d2f2040dbaca2abaf2b66d0
BLAKE2b-256 070e41dacb39f87ede4c6fad14c8b405db35f111c9892f9dd0ca1b3b62470a72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 1f5d8faac43959badc7ee12a4fe6150ab3121fddf02c401f98d5feb114fb7d8a
MD5 71b9e96de29e537562cddb3d83315f12
BLAKE2b-256 a33dd34a553dfa819c14454ea9d39892e44e24d73b1d82dfd122b40247f57ded

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 dec4c2ce618c3d4fe381bb61c185c14970f43ad7a605b9e8712965dd7715fde4
MD5 e2db15a22d7d3d43edac87dc37653369
BLAKE2b-256 842e45745a352721168fb9e257ad4e4517e7a2073cfb0fa0223295851f9b3fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ae2f1f1c1c4f419369642d57f4d6ed5f1ad07302c013d02a2c5eccdc559f880a
MD5 ee66691650653566a5bd766b55745d28
BLAKE2b-256 1d17c57dd76402a5151d7687963fb794b9e3f2d06cfb05b84752596f11e22a35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 bc2d7e9e74d5327ae3fa2f7585ca4219d9cbcdc86b41c24ff16fa68aa5b06be8
MD5 92f7eec13604ad5b834610e990344e4a
BLAKE2b-256 cc177a261e7511386f1b87f91a32e9cb315583ef4aa314c1ef0fb628b100b15f

See more details on using hashes here.

File details

Details for the file gevent-1.2.1-cp33-cp33m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2.1-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ab390dbcdcb453e02237255a31ce4c49bfc98ec48415fe54ba13a893eb7e7605
MD5 fb3a3d48cc113441d42ebfe54763d72a
BLAKE2b-256 312b7f3c9315cd8efc7bd485335d67a47b4a48acef0403caaa4219c2f131574e

See more details on using hashes here.

File details

Details for the file gevent-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5b9ba1abd75ed7e3d667dd52baba60e902ab0de583aa92d5f80c6fecdae06a28
MD5 8b09f79ffb73bfa47806f2719d0b34f1
BLAKE2b-256 a14165eee925d5fe1e1a83ab75e2e83952515f6789aaf561a8183e4c515b49a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 427f57cee797ee1f3964d495b1544031879031308723acd1081c84f7af7b2ee4
MD5 1ee8854feb2e3dc7fa589a243118b653
BLAKE2b-256 7db861496b26f83167b669497569b040b1bf71078f184e180241811b55e8ec02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 99829c5dc64d6967eecdb04d1cfda3a485ed61d8fddf79253ce0e42a418534bc
MD5 98bdd644c958f485425f74f3f7910494
BLAKE2b-256 47d405532c6d474218be358ea99e5c3245ad6495da09082daf2e71e27ac48970

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 297125d084acaa9a09627cf41657faf65305dd97bba9e24d6924929d1c86f392
MD5 b5f520a8d63d32cf75518e6f6e832d3c
BLAKE2b-256 ebda27f2b596abe0cdc42c8bd97ececfa0875f18c2ab99103420447dce36dfe5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.1-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 f68fa3b23e518ce12f8b14264ba567eb2f8a22923f85257d5043fb81e78dbc43
MD5 79cbaa1672933c59cab6ea46201acc26
BLAKE2b-256 32c7ce0dde7de3ce1ed56946d1bce2bc010ad24b36110044bf35db798540b3f2

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