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 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 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

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.1b5.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.1b5-cp35-cp35m-macosx_10_10_x86_64.whl (404.7 kB view details)

Uploaded CPython 3.5mmacOS 10.10+ x86-64

gevent-1.1b5-cp34-none-win_amd64.whl (365.2 kB view details)

Uploaded CPython 3.4Windows x86-64

gevent-1.1b5-cp34-none-win32.whl (337.8 kB view details)

Uploaded CPython 3.4Windows x86

gevent-1.1b5-cp34-cp34m-macosx_10_10_x86_64.whl (416.4 kB view details)

Uploaded CPython 3.4mmacOS 10.10+ x86-64

gevent-1.1b5-cp33-cp33m-macosx_10_10_x86_64.whl (404.2 kB view details)

Uploaded CPython 3.3mmacOS 10.10+ x86-64

gevent-1.1b5-cp27-none-win_amd64.whl (367.7 kB view details)

Uploaded CPython 2.7Windows x86-64

gevent-1.1b5-cp27-none-win32.whl (336.1 kB view details)

Uploaded CPython 2.7Windows x86

gevent-1.1b5-cp27-none-macosx_10_10_x86_64.whl (408.6 kB view details)

Uploaded CPython 2.7macOS 10.10+ x86-64

gevent-1.1b5-cp26-none-macosx_10_10_intel.whl (648.2 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for gevent-1.1b5.tar.gz
Algorithm Hash digest
SHA256 39e5848b4e8bd20846a43772e1ec8f3c4b8b0cff43611e0d73d809b5dc63f6fb
MD5 e120a6672feecbbc38b2fe1757ae6099
BLAKE2b-256 97df5f748f6989901be605b46a27f168bc620c468b164d47f5d29ba445332581

See more details on using hashes here.

File details

Details for the file gevent-1.1b5-cp35-cp35m-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1b5-cp35-cp35m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 af240a7060a7d0f552737fa4e44906d2a89391715bc6b294a1a8722bae149c72
MD5 465e83e6dddd64134e6db6aa0d61844d
BLAKE2b-256 0072c7f524dda173858ff68bfabc996b81e99f067b1faf64bda4a672e9f55876

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b5-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 1255677e7d4cb6b52e1c5aeeba6b743bbab75c6bdd965d06e15ab5ea8a683c22
MD5 66c86dc1885947091fff91a31efe9d63
BLAKE2b-256 23a16719c127a93aee3101a7b04abe41517970f70f653d81e0a5631cd6ca0de8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b5-cp34-none-win32.whl
Algorithm Hash digest
SHA256 a7551adec9c34064d92221b5cd6569859c2cbabcec80861304521eaaad5b09e6
MD5 bdb9ecacfd063f69ba3480031768edde
BLAKE2b-256 e5ccda090ce89f77b1359be0f90d1e884ba569d1803828373fca3bc9657d3369

See more details on using hashes here.

File details

Details for the file gevent-1.1b5-cp34-cp34m-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1b5-cp34-cp34m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 ea0805d11433a829d93bc4ec466a5be25dd44589b0b02f751025645a55ed9d56
MD5 a2f73fdf35f67aabf7aa11b9c04e8a7a
BLAKE2b-256 3e637010145c690374d160c2ddc0c3691ac61692683d632d38b8e0200e7d164f

See more details on using hashes here.

File details

Details for the file gevent-1.1b5-cp33-cp33m-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1b5-cp33-cp33m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 6bec0c40e4d51200d4020fecc01dde4c9ea8b76e7f758fdd0b1bf9ee76ca8f89
MD5 7b9ad5b9017c3d27926926eb40c97365
BLAKE2b-256 ba46f57bb1e419629ed233a71bed43ef517f60f84ad2d0cec74bf91f62eb9aae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b5-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 5ac4c6fcb8039008d6e5414729126610450e35a7f81c837d7404738a79f6c7a8
MD5 42fef52e9d3802f8a252e8dfe57adb3e
BLAKE2b-256 53d91fd9aae2440418d8a57f7dc683ee2f4c522ed1d882d6e259947d28ab9a52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gevent-1.1b5-cp27-none-win32.whl
Algorithm Hash digest
SHA256 9c0c1eea58cbb5a36a694b838ec4c8f0bba604a464f425b6f588698c82473362
MD5 cff3c3301c24741bc1abcb5541bc9f1c
BLAKE2b-256 3e042009453c56f1eb738c5f34848eeded954c57e5d99d54901279096b35681c

See more details on using hashes here.

File details

Details for the file gevent-1.1b5-cp27-none-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.1b5-cp27-none-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 c04c0127e7b34d4f3017111a4f7d88b6a5ea7215a624890c30f2b3fa182ec6df
MD5 cfed2237db866d6d697689b9499cbc45
BLAKE2b-256 60e8efd1e7af72dd96f78176285a93553edf871305e3bc01a7b148462470fd23

See more details on using hashes here.

File details

Details for the file gevent-1.1b5-cp26-none-macosx_10_10_intel.whl.

File metadata

File hashes

Hashes for gevent-1.1b5-cp26-none-macosx_10_10_intel.whl
Algorithm Hash digest
SHA256 0109c4c4c3c631271fa1f87c92ed5f9a81e5abbe9b5463e4531416464efcc691
MD5 475c439122c079f9d4f89044a84a922e
BLAKE2b-256 59725089da8558583f9b0f59ddcf22f37da0c59fc866376b230be1d98f98eba1

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