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.2a2.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.2a2-pp256-pypy_41-macosx_10_12_x86_64.whl (592.6 kB view details)

Uploaded PyPymacOS 10.12+ x86-64

gevent-1.2a2-cp35-cp35m-win_amd64.whl (629.9 kB view details)

Uploaded CPython 3.5mWindows x86-64

gevent-1.2a2-cp35-cp35m-win32.whl (605.0 kB view details)

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5m

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

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

gevent-1.2a2-cp34-cp34m-win_amd64.whl (631.8 kB view details)

Uploaded CPython 3.4mWindows x86-64

gevent-1.2a2-cp34-cp34m-win32.whl (608.5 kB view details)

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 3.4m

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

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

gevent-1.2a2-cp33-cp33m-win_amd64.whl (631.8 kB view details)

Uploaded CPython 3.3mWindows x86-64

gevent-1.2a2-cp33-cp33m-win32.whl (607.4 kB view details)

Uploaded CPython 3.3mWindows x86

gevent-1.2a2-cp33-cp33m-manylinux1_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.3m

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

Uploaded CPython 2.7mu

gevent-1.2a2-cp27-cp27m-win_amd64.whl (634.6 kB view details)

Uploaded CPython 2.7mWindows x86-64

gevent-1.2a2-cp27-cp27m-win32.whl (607.2 kB view details)

Uploaded CPython 2.7mWindows x86

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

Uploaded CPython 2.7m

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

File metadata

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

File hashes

Hashes for gevent-1.2a2.tar.gz
Algorithm Hash digest
SHA256 24daf4618c1d8b3d94934ae77bcff7f4b04da83789afdb515b2a60972fc18231
MD5 7018130812142dcde622817f33b07502
BLAKE2b-256 60030f5d48cec7c85c1715557d8e41db5cd7661482877cd38a221d42e2cca5c3

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-pp256-pypy_41-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-pp256-pypy_41-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1bdfb57e864ab8065b705a0ca507ba957c3e124594bc02205c249fcebbae1a58
MD5 1640b50773e869858a3f08f67d23b08e
BLAKE2b-256 0ec61a36bb6fb9a054433ca31ac0b94cd84757bf76f6977dd9ab8a9e4d2221d6

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 20a3c91f3f4d4b2970c3f716d88af1d32dece339b151c35dd4ef1c16b5dc369c
MD5 732f8a93aedeebf785c47babbf95982f
BLAKE2b-256 bdf3ab09f49822baf2b0b94207806672f43c852eede8f79eae62ec7d511f0fe1

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 e6f8f91b02f10be3064f519aba18c41beab3e8f2395be3556b356f6708fac555
MD5 b125e0f8f0bfe83869aeabb09afee727
BLAKE2b-256 5e2ae02191be9448a326987b1636461eeccaf735e2892ad152b51a84aae77315

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 22c4deb182b28b1453a2715a1e5ffd0a6c7e13df404cd7aed36873d51b87a020
MD5 39154d5b301a195b2251fa5556a57ee3
BLAKE2b-256 0bf4eec11ed411edf1c337d8047c3f74d18fbd41d4ed4e83123843a0c7b67694

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3657ec80dae7a5a21223e7687c8d97157a66ad0c868b2403bf3be12b6d2a66a6
MD5 d90a7511e3184527c5f881b89bd3726d
BLAKE2b-256 0a62a050cad1a7790c7eef8fc6549b2e91583ed0b036dbee5a8f6ae450370d76

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 7423b62cf9ca212d990235dd3a1117b47636740c20d71c5fc81178751ddb0f52
MD5 d1c9dc69f9c3880dbd7550442e23a24a
BLAKE2b-256 92f1d63e19cac54f01207dc9f461dc1f96e98db1ec8089b07a340b95c13ad439

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 5a959ba116c3c0d15e894dccfc46fb4040134e1ed42e930d764adc84dfb8ef2c
MD5 6623189a14e06bc444bce0f7e8b912f0
BLAKE2b-256 554725bf254973a750e6c349bf7ee5d4d46a53b1f788e3fbabccb767a78b0d47

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d57a978b1311ec8cbabd42b79982a3025a5eafdbbaa0f66038695ff2e2194cc7
MD5 fdc895af5f04a31a35f2627657cde9f0
BLAKE2b-256 d1a223ed439b3b25d89e07b60732ed6dcfeceafe4247ad115b56045743ea9617

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 4bc0982be4585387cf835fe57e6f77d0057fe178e1917969c0af618f5bd76c9c
MD5 7714fcbeb14f5c66964335047fc5a6fc
BLAKE2b-256 1077a34da145cebb044760db30db5f1dc038847ae1c279ebed8c2fdcce9cccf2

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp33-cp33m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 567cb6020298c342686b700670318dc412c0f2e7817ca2f5ac04216e24dd0a0b
MD5 140d90f29561eac69cdb27603bd476e5
BLAKE2b-256 59f527a882e905790c8c18f10fa7f6986ca50a96da5757d48c8a4346f31643b4

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp33-cp33m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 510587fec7ba478d76e56f8270f49d5515c767ad3a09bf5d18463b01197d3b47
MD5 d3506a475ce7e64121066de55bd40685
BLAKE2b-256 f53b93d5db04e5a16c9acfb972675a6e62c1312c78151344cc6898bda7c2eea5

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp33-cp33m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2920634f5ba769c706acec7518b4b19f160cdcdb4c93c844649f4943ba464851
MD5 e6cabaa269268a30272b22cbc5639bca
BLAKE2b-256 3003cc275918c574ecfa37de165edd18879a689b012a0ce21ff40595c856dc50

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 63fc9dfd866c71d9ddd85c26abe6d1fc61712ec395ca9c139c316d20402d3c36
MD5 6d7f35ec339f5457332f8175d685d877
BLAKE2b-256 14176776a198e64530e9859136245bacf71a274055e7cc62d871d1eea50b8a20

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 ed38d33c30952e9a35167fcd1cbf90edac8da2a5a300714ed9a086b8144af8fd
MD5 7cae2eeb3e3a8bc38f344c961c48b135
BLAKE2b-256 e9a9abccfdda742dc3c02c5c9df4d2b5a325ffdbb330bec97e34eda087b5ab97

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 c6c35871b973df469868918d1a29e7f6f3e4cf790f8e5f83f6e41de42f8ad494
MD5 59e54e5a48a6b2b7833cff0c945f0e07
BLAKE2b-256 870ab7f6395f59d5094dc525f66a421e67743f9fc23138b85da94849d66e67b4

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cf4df96c8790023392401ff840de4f718045a439f4c72abf20d359fab99a1fc5
MD5 225c4461e6edb811411c703a188df34a
BLAKE2b-256 f3a30ea056a3771a908ac014434c8d2c4c76af3565f20473a62a283339be9f36

See more details on using hashes here.

File details

Details for the file gevent-1.2a2-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for gevent-1.2a2-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 f511e4b72ddbefec01614d8b44694c598a202acdf9cd00e783e9cf5a62646244
MD5 920fd56ca7bb511a92dabcca21814f2b
BLAKE2b-256 78c7f708aa9514c8dc04fca18b8f0f6db8c49539912207ba7b449fd977602b04

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