Skip to main content

An alternative Gevent core loop implementation with asyncio

Project description

tulipcore is an alternative gevent core loop. It is based on asyncio a.k.a. tulip, the async library for Python 3. With tulipcore, you can run gevent code on top of asyncio.

tulipcore is written and maintained by Fantix King and is licensed under MIT license.

Install tulipcore

Install Python 3.4 or newer, greenlet extension and gevent library. Note if you are running on Python 3.3, you still need to install the asyncio library.

Please note, at this point (mid 2014) main line gevent is in a progress fully supporting Python 3. So if you want to take a try right now, you can install my gevent fork:

pip install git+git://github.com/fantix/gevent.git

Install tulipcore:

pip install git+git://github.com/decentfox/tulipcore.git

Use tulipcore

Add this environment variable, it will tell gevent to use tulipcore:

GEVENT_LOOP=tulipcore.Loop

For example, you can run the gevent test suite with tulipcore installed:

cd gevent/greentest
GEVENT_LOOP=tulipcore.Loop python testrunner.py

History

This project was originally called gevent3, which was a wrapper of asyncio for Python 3 offering a gevent-compatible API. It was developed in a wrong direction and I decided to abandon it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tulipcore-0.1.0a2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file tulipcore-0.1.0a2.tar.gz.

File metadata

File hashes

Hashes for tulipcore-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 10de1e934e98ec4b3814867e8b05e97bd4ecb49480faca55877ef437aaa4f4ed
MD5 b4032329332ea07d1643fba305421e4e
BLAKE2b-256 792018f4601dcb1047c3cc9178e4c7d4e855023775477b97caa38aabf7e8a837

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page