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

This version

1.2.2

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

Uploaded Source

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

Uploaded Source

gevent-1.2.2.win-amd64-py3.4.exe (862.7 kB view details)

Uploaded Source

gevent-1.2.2.win-amd64-py2.7.exe (867.5 kB view details)

Uploaded Source

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

Uploaded Source

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

Uploaded Source

gevent-1.2.2.win32-py3.4.exe (808.4 kB view details)

Uploaded Source

gevent-1.2.2.win32-py2.7.exe (812.4 kB view details)

Uploaded Source

gevent-1.2.2-pp257-pypy_41-macosx_10_12_x86_64.whl (591.7 kB view details)

Uploaded PyPymacOS 10.12+ x86-64

gevent-1.2.2-cp36-cp36m-win_amd64.whl (634.9 kB view details)

Uploaded CPython 3.6mWindows x86-64

gevent-1.2.2-cp36-cp36m-win32.whl (608.9 kB view details)

Uploaded CPython 3.6mWindows x86

gevent-1.2.2-cp36-cp36m-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.6m

gevent-1.2.2-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.2-cp35-cp35m-win_amd64.whl (633.7 kB view details)

Uploaded CPython 3.5mWindows x86-64

gevent-1.2.2-cp35-cp35m-win32.whl (607.4 kB view details)

Uploaded CPython 3.5mWindows x86

gevent-1.2.2-cp35-cp35m-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.5m

gevent-1.2.2-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.2-cp34-cp34m-win_amd64.whl (634.2 kB view details)

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

gevent-1.2.2-cp34-cp34m-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.4m

gevent-1.2.2-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.2-cp33-cp33m-manylinux1_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.3m

gevent-1.2.2-cp33-cp33m-macosx_10_12_x86_64.whl (786.9 kB view details)

Uploaded CPython 3.3mmacOS 10.12+ x86-64

gevent-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl (1.6 MB view details)

Uploaded CPython 2.7mu

gevent-1.2.2-cp27-cp27m-win_amd64.whl (637.6 kB view details)

Uploaded CPython 2.7mWindows x86-64

gevent-1.2.2-cp27-cp27m-win32.whl (610.1 kB view details)

Uploaded CPython 2.7mWindows x86

gevent-1.2.2-cp27-cp27m-manylinux1_x86_64.whl (1.6 MB view details)

Uploaded CPython 2.7m

gevent-1.2.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for gevent-1.2.2.tar.gz
Algorithm Hash digest
SHA256 4791c8ae9c57d6f153354736e1ccab1e2baf6c8d9ae5a77a9ac90f41e2966b2d
MD5 7f0baf355384fe5ff2ecf66853422554
BLAKE2b-256 1b92b111f76e54d2be11375b47b213b56687214f258fd9dae703546d30b837be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win-amd64-py3.6.exe
Algorithm Hash digest
SHA256 7f93b67b680f4a921f517294048d05f8f6f0ed5962b78d6685a6cf0fcd7d8202
MD5 8a43b2e732d3dbb49512066afc2ccaa7
BLAKE2b-256 136c582fa43b3a03a203890a080e59bb6663a465cd5a9623159d27e31f79f443

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 33fa6759eabc9176ddbe0d29b66867a82e19a61f06eb7cfabbac35343c0ecf24
MD5 ca75300065ddf4ffae42965a1067c441
BLAKE2b-256 796da156503f75cd863096f931152768933c8fb6a9a04b2833a09a5e317b4a88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 4f098002126ebef7f2907188b6c8b09e5193161ce968847d9e6a8bc832b0db9a
MD5 a77b5da3ca9603decd0767f0c508a74c
BLAKE2b-256 08c52a9efaf5ea339068b9600808f684d40aa3fc71039e8f12fdf3e514f2e423

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 fce894a64db3911897cdad6c37fbb23dfb18b7bf8b9cb8c00a8ea0a7253651c9
MD5 8cbe3182e6402010aaa3b77023a605a8
BLAKE2b-256 fb05b21aa62b220b31d8517b5dc9f27e60dac986c425e02465448fa434b7694e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win32-py3.6.exe
Algorithm Hash digest
SHA256 6892fabc9051e8c0a171d543b6536859aabeb6d169db79b2f45d64dc2a15808c
MD5 9e2aad9fa83443e9f0e03446f751d62c
BLAKE2b-256 2fcb76512c474b0f082cb841048d5b107afcd5b68ab06ffc487fc0a2ce2074cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win32-py3.5.exe
Algorithm Hash digest
SHA256 c35b29de49211014ec66d056fd4f9ba7a04795e2a654697f72879c0cf365d6d4
MD5 5dbc72ebc6667187050bfce0bd5366f7
BLAKE2b-256 d996175915bd55e6684d1c31b403162b4e77f6a4df35cb65a2dd8d727e796bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win32-py3.4.exe
Algorithm Hash digest
SHA256 a0ed8ba787b9c0c1c565c2675d71652e6c1e2d4e91f53530860d0303e867fe85
MD5 eafa5cf3e45696502c2a24fa233c4445
BLAKE2b-256 07541a8bf072b4b45264dac14dcb0dcc1e350d146dc447f9e1983746cf192380

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2.win32-py2.7.exe
Algorithm Hash digest
SHA256 74bce0c30bb2240e3d5d515ba8cb3eadf840c2bde7109a1979c7a26c9d0f5a6a
MD5 89580370d6d2cba81661bd30009d3ee4
BLAKE2b-256 20bd97b0edcbee0b308183f5cd9bc9bf29cc2eb49236a6304ad83589c78b74c6

See more details on using hashes here.

File details

Details for the file gevent-1.2.2-pp257-pypy_41-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2.2-pp257-pypy_41-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a66cf99f08da65c501826a19e30f5a6e7ba942fdd79baba5ce2d51eebaa13444
MD5 374a865499cbf0c5f85e4b20d5c09364
BLAKE2b-256 77f84610995669c6858063f32e98d666dfcecd1102acdd70fb78da78b6a98a1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2ff045a91509c35664c27a849c8cbf742a227f587b7cdbc88301e9c85dcaedff
MD5 d231b41b54d7998a9217ddf516aac889
BLAKE2b-256 ae067274e50d4131dd437b681505672772e52742410347e591a90b1ef49a9627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 1af93825db5753550fa8ff5ab2f2132e8733170b3f8d38347b34fa4a984cb624
MD5 676cb41e5d265115dae16a969e595882
BLAKE2b-256 da78fbb6d73cf5bc46cc71d2288760afe8ef53beec7850739b61c0d291c1e223

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 81cb24e0f7bd9888596364e8d8ed0d65c2547c84884c67bb46d956faeed67396
MD5 9ed91407ebbdd359545eae247644a5f0
BLAKE2b-256 a3af438c505b62f630c203a6a6a5a3b6fec49524c0cda7ab6392be03999537ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 833bebdc36bfeeedefc200ca9aee9b8eddd80f56b63ca1e886e18b97b1240edd
MD5 c68c519ecbd4c67fc9833289fcb84bca
BLAKE2b-256 fe319c9f82877c2db2390c86f283dafe8e8168b3bb4ffa20b8ed465ad5a2d73f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 59e9237af027f8db85e5d78a9da2e328ae96f01d67a0d62abcecad3db7876908
MD5 03a5f0897c87d4aaf190eec41e535620
BLAKE2b-256 dd381d20073e6c9fed8416714f9c3806f5dc0b1361245c991f24c9b00f04d7ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 a16db4f56699ef07f0249b953ff949aae641e50b2bdc4710f11c0d8d9089b296
MD5 42f3ef890c1886eee127f93bac2d9850
BLAKE2b-256 c37245fff74e6861a6c771c02de3555bec789d623ecf99cda8ab201f4157c752

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 552719cec4721673b8c7d2f9de666e3f7591b9b182f801ecaef1c76e638052aa
MD5 38975e030c58499b1f4288ab6aaea740
BLAKE2b-256 13a981166b3ad2d344882ab42eb222e7723f93838fdf641b17b319b3a84821a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 60109741377367eef8ded9283a1bf629621b73acaf3e1e8aac9d1a0f50fa0f05
MD5 89a9680fc29b03099aa2a6822f3d00fd
BLAKE2b-256 875aa85253efa14875e02954eb7bb4c463e3b991b29ebea60534be43ae02f055

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 8a710eddb3e9e5f22bdbd458b5f211b94f59409ecd6896f15b9fee2cba266a59
MD5 107ab3566165a6b553b5a418c1d881ae
BLAKE2b-256 f089fc165dc5c14a834c1b1939ec326af3b050fd2299303a506c0badbf613c17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 70558dd45c7a1f8046ba45792e489dd0f409bd8a3b7a0635ca9d3055223b3dff
MD5 ea1bd4e1b3fc19ad5b81ecd19e9480b5
BLAKE2b-256 3c5f28b721695bc5d0fde0dacadf8066fdede04dc656002d38142f76bfbbd6de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 df52e06a2754c2d905aad75a7dc06a732c804d9edbc87f06f47c8f483ba98bca
MD5 12d0ff3d18b663d185223dd832f2e28f
BLAKE2b-256 72e8cbae9a362d32edf8fe1ba78e8ca4a4f28042c6d69be7f53aec50a7d994c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 0901975628790e8a57fc92bb7062e5b856edea48c8de9caf36cfda14eae07329
MD5 456d8b8b736dbb3679c24972adfa6099
BLAKE2b-256 8bec12a3ff1010a9257a9093d0aeea3e97ea64f62b94a59c0a8e63974b87b42d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b7e0e6400c2f3ce78a9ae1cdd55b53166feedd003d60c033863881227129a4d3
MD5 3fe8f1da683d5e234120fc6b8b38fd41
BLAKE2b-256 2e51d1eaa6d2390a92ffec173c817ee2ed60850ed1ea115dce9244f5dbd224f6

See more details on using hashes here.

File details

Details for the file gevent-1.2.2-cp33-cp33m-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2.2-cp33-cp33m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c9dd6534c46ed782e2d7236767cd07115cb29ce8670c2fc0794f264de9024fe0
MD5 b1b5e9c031dde62bed688d0ff1c2d89f
BLAKE2b-256 3112719a5a88b77b23f5dbd60986cdecc9397f28e0071f3cc4e0bc1a651d4370

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 deafd70d04ab62428d4e291e8e2c0fb22f38690e6a9f23a67ee6c304087634da
MD5 f88e2d3fb68108dfced0602b91694fbf
BLAKE2b-256 74fe1d681dc31f61cb95fcc55e9c3baf7117e52db78270aa1bf169262f86707e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 35790f1a3c8e431ada3471b70bb2105050009ea4beb15cbe41b86bc716a7ffa9
MD5 dab609d02af439f0153341135aeae961
BLAKE2b-256 7e5cdc4692e87dd57811cf97f26f99236dcc6e7e68ed504e0b97fad468db0325

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 b67a10799923f9fed546ca5f8b93a2819c71a60132d7a97b4a13fbdab66b278a
MD5 e495861eb84a686a56fa5bab968b6193
BLAKE2b-256 ce06954e981b15d1dbda354d26324783fa81acbc3f64e9a63fda48f52915262b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 de13a8e378103af84a8bf6015ad1d2761d46f29b8393e8dd6d9bb7cb51bbb713
MD5 794532c727dec7be5043c8183a07d65f
BLAKE2b-256 e4d0f4b148aeabe067bbe1a60cdf1cc2d6e7c49dbabb0b087114267c9ca8eb53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.2.2-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 9b492bb1a043540abb6e54fdb5537531e24962ca49c09f3b47dc4f9c37f6297c
MD5 faa73fc97694bd49398ea839036cc501
BLAKE2b-256 f873d14c8faa8aa3d89d7978fb067043b8369cb28e481a1ab6618ee13ecff899

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