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 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 4.0.1 or above (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).

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 setuptools cffi tox '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:

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=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.1rc2.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.1rc2.win-amd64-py3.5.exe (507.2 kB view details)

Uploaded Source

gevent-1.1rc2.win-amd64-py3.4.exe (594.3 kB view details)

Uploaded Source

gevent-1.1rc2.win-amd64-py3.3.exe (595.3 kB view details)

Uploaded Source

gevent-1.1rc2.win-amd64-py2.7.exe (598.2 kB view details)

Uploaded Source

gevent-1.1rc2.win32-py3.5.exe (466.7 kB view details)

Uploaded Source

gevent-1.1rc2.win32-py3.4.exe (536.3 kB view details)

Uploaded Source

gevent-1.1rc2.win32-py3.3.exe (536.1 kB view details)

Uploaded Source

gevent-1.1rc2.win32-py2.7.exe (539.8 kB view details)

Uploaded Source

gevent-1.1rc2-py3.5-macosx-10.11-intel.egg (626.1 kB view details)

Uploaded Egg

gevent-1.1rc2-py3.4-macosx-10.6-intel.egg (632.5 kB view details)

Uploaded Egg

gevent-1.1rc2-py2.7-macosx-10.6-intel.egg (615.0 kB view details)

Uploaded Egg

gevent-1.1rc2-py2.6-macosx-10.11-intel.egg (839.5 kB view details)

Uploaded Egg

gevent-1.1rc2-pp27-none-macosx_10_11_x86_64.whl (428.6 kB view details)

Uploaded PyPymacOS 10.11+ x86-64

gevent-1.1rc2-cp35-none-win_amd64.whl (366.9 kB view details)

Uploaded CPython 3.5Windows x86-64

gevent-1.1rc2-cp35-none-win32.whl (333.6 kB view details)

Uploaded CPython 3.5Windows x86

gevent-1.1rc2-cp35-cp35m-macosx_10_11_x86_64.whl (454.6 kB view details)

Uploaded CPython 3.5mmacOS 10.11+ x86-64

gevent-1.1rc2-cp35-cp35m-macosx_10_6_intel.whl (460.3 kB view details)

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

gevent-1.1rc2-cp34-none-win_amd64.whl (368.1 kB view details)

Uploaded CPython 3.4Windows x86-64

gevent-1.1rc2-cp34-none-win32.whl (341.3 kB view details)

Uploaded CPython 3.4Windows x86

gevent-1.1rc2-cp34-cp34m-macosx_10_11_x86_64.whl (456.4 kB view details)

Uploaded CPython 3.4mmacOS 10.11+ x86-64

gevent-1.1rc2-cp34-cp34m-macosx_10_6_intel.whl (461.7 kB view details)

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

gevent-1.1rc2-cp33-none-win_amd64.whl (369.1 kB view details)

Uploaded CPython 3.3Windows x86-64

gevent-1.1rc2-cp33-none-win32.whl (341.1 kB view details)

Uploaded CPython 3.3Windows x86

gevent-1.1rc2-cp33-cp33m-macosx_10_11_x86_64.whl (456.2 kB view details)

Uploaded CPython 3.3mmacOS 10.11+ x86-64

gevent-1.1rc2-cp27-none-win_amd64.whl (370.4 kB view details)

Uploaded CPython 2.7Windows x86-64

gevent-1.1rc2-cp27-none-win32.whl (339.7 kB view details)

Uploaded CPython 2.7Windows x86

gevent-1.1rc2-cp27-none-macosx_10_11_x86_64.whl (453.4 kB view details)

Uploaded CPython 2.7macOS 10.11+ x86-64

gevent-1.1rc2-cp27-none-macosx_10_11_intel.whl (715.7 kB view details)

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

gevent-1.1rc2-cp27-none-macosx_10_6_intel.whl (458.9 kB view details)

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

gevent-1.1rc2-cp26-none-macosx_10_11_intel.whl (715.1 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for gevent-1.1rc2.tar.gz
Algorithm Hash digest
SHA256 e421f43dfcb94a3be49f366c182b5aea56f6a00f15bb4dfcf3ebc68b4566346c
MD5 01237bdf82c0f74fe9b23849220194b0
BLAKE2b-256 9bad76a938b71a40f4802f35cc5cf35313c143a05ee2983dfa5f20f3586d5f2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2.win-amd64-py3.5.exe
Algorithm Hash digest
SHA256 f6226dfbeaff9f3f116fdba849aaf86abd2ddce57fc72bac42bcc0dea02bc64a
MD5 d35bb50256528ce6604a2a1c20105ace
BLAKE2b-256 ea36e686cdda1a84dce6bf7bf49a541709aeea049070c4c31e016c01cf0d99fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 392f85b77a0fdf19b8e5e45306d2e90512f78ae0ab943ad27a64098baab12669
MD5 5500d1b99bf17247aeb29340574d1dd7
BLAKE2b-256 f2ae68e92497f8551e3a43a6db71ebd6ce62a80eea280d11e8a2d65b2ddca4a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 6137b46833c4379439d58dc01c863281389fd73c7ba79d8a973a0897cb7bef0a
MD5 8ee4c8a99776271153883177ba398381
BLAKE2b-256 bb95baae47964b5254ec754a7802b62928d09313ae17998f1479d1e00fa48aa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 c1af259e0f70bc489fefc350d04c315ed97166ca5b864f682b93ae3a8707b1fe
MD5 a9a90774967255ad0c0017e54810f7d4
BLAKE2b-256 7e8b9ef28cf8574082f5f468a84499cc562048c1bffed7ad8d5bd4159f262129

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2.win32-py3.5.exe.

File metadata

File hashes

Hashes for gevent-1.1rc2.win32-py3.5.exe
Algorithm Hash digest
SHA256 4594bd51330011b5a29decff8d73721a9f09b6f31fd491c4a94e71031095a7a4
MD5 5436dbf1382b1179e78c73672d609b7d
BLAKE2b-256 05dac39f900cd61e6069e0ac61b81b85349709d14c1c56b3d840ad87ce5723cb

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2.win32-py3.4.exe.

File metadata

File hashes

Hashes for gevent-1.1rc2.win32-py3.4.exe
Algorithm Hash digest
SHA256 33ee3f24cea75f5850fcc4064ea07f47d4fafdc793561c1c9fbf2869bac4562d
MD5 ffaa626148897552039acf25fcffa2da
BLAKE2b-256 7bb34e77a7ea0b6531c6249988745725b4a9434b6d1552b6b657111cd53579fb

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2.win32-py3.3.exe.

File metadata

File hashes

Hashes for gevent-1.1rc2.win32-py3.3.exe
Algorithm Hash digest
SHA256 8572e4290e8273d840185e1ece52340ae977b803ffd85fbe7dce1b2ff2e7dde7
MD5 5c760b9e1bdee582ddfa293e5131e964
BLAKE2b-256 36f3a3c742900e83dd5ed10e848eebfd848cebcc38dbe65c96ca9cb903fadb53

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2.win32-py2.7.exe.

File metadata

File hashes

Hashes for gevent-1.1rc2.win32-py2.7.exe
Algorithm Hash digest
SHA256 2a6d4a6b35ec8c196ee7c054940b2453c7bb82b6998361e552581df947130815
MD5 c2e07d8afa8ee1a21749fd826b4a6175
BLAKE2b-256 5114329a84c6832a7904331788604267b419b6fd40c8ec6bf7a39001c23e5fe9

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-py3.5-macosx-10.11-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1rc2-py3.5-macosx-10.11-intel.egg
Algorithm Hash digest
SHA256 370c255c9262dafc9958dd9ab317bb99e25b017d90bfffe30b2fe4f42174974a
MD5 12d82123314334acb67ff52136d99f47
BLAKE2b-256 193f7b04052106b6b6dfbcdbd7f51b9a2de58ca4d722a8b128658b98b4ab8dbd

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-py3.4-macosx-10.6-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1rc2-py3.4-macosx-10.6-intel.egg
Algorithm Hash digest
SHA256 929f7a88b9bb89130601b1e71c8d4f0971ec80f16d3de23488a37a8532e74ff9
MD5 e1061644b9a3e580970eb673370581d1
BLAKE2b-256 b04e780b179a8dc53e9eb37c9f28b17538ba167cb28858f01c7ad5ba8fe07f6d

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-py2.7-macosx-10.6-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1rc2-py2.7-macosx-10.6-intel.egg
Algorithm Hash digest
SHA256 19b254ff7d6ad56430bc324a677399ffcb4a4ee2b8f89307e28ac1f8634bd8f9
MD5 7ad7e3caafa9c2d6bd2e6f3ee29e38a3
BLAKE2b-256 6d94a04a8d9ec5dcb8f222ec4fc44749e8c7b0a36f5391b0f2bd2217a1551ffa

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-py2.6-macosx-10.11-intel.egg.

File metadata

File hashes

Hashes for gevent-1.1rc2-py2.6-macosx-10.11-intel.egg
Algorithm Hash digest
SHA256 cf486b7820a70cac57a9e38dbabae4ebd9dff53232fc95ca0d544e95932069e5
MD5 57572464f7b62593f4a212dc14607934
BLAKE2b-256 a7f8c77e830b6e7632d1c257a2052bc2118c39564085fd0c2d398489b8d4e100

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-pp27-none-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc2-pp27-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 8039c3777733c0dd60cb00d60a2a41d71657487b4e6026491fedc305f6546895
MD5 b8cc95497df3407e73340f882917fe52
BLAKE2b-256 29943d4c0140f26aca3099aa586cb845db2d6ad6fd6bfd75ec83d3173bdfacf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 752147e16180a319aa3645900a1fb06b8ad6af9abd694e5240ff18aab01f39cc
MD5 be8875cb51f4633a5d4acc5cf3946d19
BLAKE2b-256 65d5965dd54c6d7d65e44eea9f5503f16413e7c47a971fc0e7d3c938b7e693a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp35-none-win32.whl
Algorithm Hash digest
SHA256 b481c4aa894d15aeb305b74bd9c08a265a44601502c9d5e68a3c9f3310184c7e
MD5 a3378096bce29d8ea4a7e0bd244c2755
BLAKE2b-256 1fa37dea277c9f1d63c44180b0d204e5c50f3a816936ce47024af2bdefaa7b85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 d0c1ef00b2b2907a02f80704e9cb63bc81f42d2c1001c53c92c41095b92981fa
MD5 f559b9f11ce49e33fe1967695b7a4dce
BLAKE2b-256 03422aa469f4ad65b105bdbcf3cfaf619f5aa66087a45bda9a97b3556effb068

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 251258bad661f323a62a90d4ba6bde233585beda72f06d4e6298971b91469270
MD5 8dad2e98f22c8db4455a9b7f68b6e4fc
BLAKE2b-256 f6649a6b8a355b616e7f71932c97a5cfe7aabf52d9a2f2c24428d052d6023a2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 2304645e7324270cdc4fb2639143e51cc8c0b5649d3204c57b607a6a74ac5ce8
MD5 ab2af6c1a38814c43548989015a1d02d
BLAKE2b-256 8eed4674fef43a5496e335695819835a49109e32f1f8172ac5c8aa1114a40d4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp34-none-win32.whl
Algorithm Hash digest
SHA256 630e7112a1ed8d4c68ce3491674f8fbf007598556c7fbe1e98325a8e327ddc87
MD5 a2532951e1b69ad44747ce211d0eb94a
BLAKE2b-256 dfe24f15b3cb19b11959ff46acf7c0b73f3198ba2ce80c002cb7b2914d8a8953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 4d2ec1a77e6d5ff1c2854e2a59c7b694e15decd10b4d6710c9ba0b9e1c84448c
MD5 97c0601582cce64241b6a83c22f3de6d
BLAKE2b-256 170812f392524ed91944367ed590c5456b1c8db6f69e164fe76da6dbb828ba00

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 e3924e6d3248eecbc9ad7bb5bb1c4e518c66d04b245dd09827a675cbb4f4fb78
MD5 6be7d2f78991b2b24b7a0155ecc42ada
BLAKE2b-256 c1d174aa4de4c3c248cd9c650e8e948bf2efcfa02e93c73737d73a42f7402fce

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.1rc2-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 cb91255c430061f89ddcbbcfc6c06182ba84a4e9acaac57689a9caa39a2ba752
MD5 e798533739566a9d38f5aa2d262832ce
BLAKE2b-256 eaed9ccab69d90506a027ef9822f83699d0261a8c6f0cc7cede78a7ff368c6c6

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-cp33-none-win32.whl.

File metadata

File hashes

Hashes for gevent-1.1rc2-cp33-none-win32.whl
Algorithm Hash digest
SHA256 086b5e17b656457dbecc06759edff8750f3775289aa502f7536c9a3f7f112e14
MD5 c5f04681e07c37347652a8470ddc1b8d
BLAKE2b-256 72c187fa766fa8dd9d8f8fcf714d0c40e843ea8d13c7cff474243e74f7982704

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp33-cp33m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 72b3965eaa87d938d422bf32ab6318adf89650bddaf9e1e195e6893a83a72e9a
MD5 0bf0aa6b0934371f89ef143126e305f8
BLAKE2b-256 69f291374f57520c8513ecd1c3a2a3cbef539d37338ad683b021b84afec4ef13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 238c241c18c119edefa0ec6936694a5727419386f8f810539935800987f647fc
MD5 ec5b3ccb8514843741a8a758282b9441
BLAKE2b-256 c6960f893f2593dbb6b3089a9a0fd6e1cd17cf33d7c4bb8bb28d38b83269fe23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp27-none-win32.whl
Algorithm Hash digest
SHA256 8fb07d051f6da33dbcde4b591f87602b2b0a79e6a209f8b06ed448ecaf4ce15b
MD5 d6d7ed8d69e11535c389265791974307
BLAKE2b-256 091ca25fcf63bde3637dace9be34fd33117ad8eb2c2f46ef11db235db3aa8df5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp27-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 7186fd909f9187ace01261b5cd5f953760fbd4cba06076547e108657052199c2
MD5 336076ad8c3ab2f9e0738cea1ead30d3
BLAKE2b-256 8a207ae6173411ebc79f9b274a0f73d5770f8ef53046ff955a639b8929ae0949

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-cp27-none-macosx_10_11_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc2-cp27-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 607c779aae6a787d6094e3c6e0c004658228e556cda906f4577aa38b4357f221
MD5 e6d216695158852389eab5cdfc9f49fd
BLAKE2b-256 784d05ddb0a7df506ce3aee0223c3a98b518c66ab3c7c33554925c8e2764c26c

See more details on using hashes here.

File details

Details for the file gevent-1.1rc2-cp27-none-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1rc2-cp27-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 46fffa654ae45f7dbd8b8a9a9da8d02a40ad0c836da3d0fae5a6eb73bfd62898
MD5 7fe905ce4265a9d4d9421dd278d213ff
BLAKE2b-256 f0eddaf1725be8faaf831b468c76878c2737c232ad104db793f925bb4d17b64b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1rc2-cp26-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 4ce39263608631ac377bf3f7a9d7dd425c69c07eb7946de1e56aa16f5bb18e6e
MD5 264ecd784780d897ab66b59de5e0ad7b
BLAKE2b-256 014b58061a0b7ff12fd5a159c5bf4f1783d1a715c4330547f9b0ebc340c1c7f0

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