Skip to main content

Coroutine-based network library (beta release with PyPy and Python 3 support)

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.1b6.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.1b6-cp35-none-win_amd64.whl (368.7 kB view details)

Uploaded CPython 3.5Windows x86-64

gevent-1.1b6-cp35-none-win32.whl (334.1 kB view details)

Uploaded CPython 3.5Windows x86

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

Uploaded CPython 3.4Windows x86-64

gevent-1.1b6-cp34-none-win32.whl (340.9 kB view details)

Uploaded CPython 3.4Windows x86

gevent-1.1b6-cp34-cp34m-macosx_10_11_x86_64.whl (418.0 kB view details)

Uploaded CPython 3.4mmacOS 10.11+ x86-64

gevent-1.1b6-cp33-cp33m-macosx_10_11_x86_64.whl (418.0 kB view details)

Uploaded CPython 3.3mmacOS 10.11+ x86-64

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

Uploaded CPython 2.7Windows x86-64

gevent-1.1b6-cp27-none-win32.whl (339.2 kB view details)

Uploaded CPython 2.7Windows x86

gevent-1.1b6-cp27-none-macosx_10_11_x86_64.whl (414.9 kB view details)

Uploaded CPython 2.7macOS 10.11+ x86-64

gevent-1.1b6-cp26-none-macosx_10_11_intel.whl (647.6 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for gevent-1.1b6.tar.gz
Algorithm Hash digest
SHA256 ada32434242ed3e21a1d6ed7bc7f935aa6122ff8b35c20880787ff9fbd1312e6
MD5 17013e68e6560169c0a5724f475f2187
BLAKE2b-256 c31f3baf4259ee2caf087a20937789f36495cc8fcff9138a46270d56e7e2f406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 8a30eb2d9f799d0056ed12933515dae0d22c1011a9c0b0e31d89cc8f1f8b8425
MD5 f61afeac112f5a9ae5a8c9023320579f
BLAKE2b-256 6833b16aba46c3615e959ff5a1dc7d2011d1462d74a558dc8065e0b4e65713d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp35-none-win32.whl
Algorithm Hash digest
SHA256 1ad11af52bd719aab3750eb767abba886231fdfe22353a8007e93cd3fc011895
MD5 4b75dba84a22806c67d1755d7a9c8099
BLAKE2b-256 090b498ad5693ddc58109b07fb60d04835715b75396bf134bf21039f11a139ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 4b13d317dff40e05fc3888759e31f2d3c622d1f5bfe8923dbcd06f7c4ede138d
MD5 75c493436c3c7f49b9b7ce640dfe93ac
BLAKE2b-256 5b14b026716a8e75188420a91fcb30099eef7eba1e91e76e388effc49a5a254b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp34-none-win32.whl
Algorithm Hash digest
SHA256 9d851f2a489a2506d76b79f56e8ee29a872f58e024436204e86cf97b26b62ecd
MD5 3931b5ee47009de3092fc2e2cf27cb85
BLAKE2b-256 3a4482c62d4a95b80e82ae7997cbe4e7309a4fa132b88fbadfbaf360dd231bd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp34-cp34m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 f8b001a175020914099abe5bf6579d93d13891b7dfbde937fa6318accde9519a
MD5 9f75b34a1948e69bae4b7dcc74f4539e
BLAKE2b-256 3c1a8755d7f221f49db0826c0ff54a7d3233671aa1d136685afdaa46649df7ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp33-cp33m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 fff06ead5dbc1f0217f443ab817d6c8b429019ccd79dc624fc44a964e416e9d0
MD5 cc4c8e300f69f4602acab38235f82c5d
BLAKE2b-256 07927096419bc2209406047fbf81ea8d2ade677b551d967f630a465fb223cf59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 8f7b8f98f939f3528cc7eb64b041966c6cee86b82c9af3a1ca0d7a3c31778de4
MD5 4b58625b0c9d399ccc589ad5f464a8c9
BLAKE2b-256 f1da2b77b5fd41275ef4704a84582de89e49ba9950160b1d95a0a5465f4562b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp27-none-win32.whl
Algorithm Hash digest
SHA256 0de6c2d655330ebb189275dc34e76f01c744eca67d8867a2afb8cea38662bc69
MD5 84c38ac0403a0ac23813e9b514e942bf
BLAKE2b-256 8371b1bfbf0c358ff692ac043eb7d8d3ab1ec022b9b1b562d3f5323c3b1853a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp27-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 51378805d16a6c38586d41f8eb553887d6106284710498fe32845b0b914fdda7
MD5 2b08063e6c146489552b17df2aa60ee9
BLAKE2b-256 1cb07c0fac792b4810bc8abe261d2043510a811568a570a19119657e9bb34ba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b6-cp26-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 6e3d8972e525bd5cf265250d43cca9476f3d90cce620ac08a39aa676f5f401e3
MD5 8c66e93a0da1814311e8de9c0c598d66
BLAKE2b-256 a08691eef0f1243c6c6a7120b62da4624acf9f29a6e1ee07fff16e0361761f94

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